-
Notifications
You must be signed in to change notification settings - Fork 0
IBX-7999: Checkbox and ThreeStateCheckbox #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces checkbox component implementations for the Ibexa design system, including both standard checkbox and three-state checkbox components with corresponding TypeScript functionality.
- Adds PHP Twig components for Checkbox and ThreeStateCheckbox with proper inheritance structure
- Implements TypeScript classes for checkbox behavior with indeterminate state support
- Creates Twig templates for rendering checkbox HTML markup
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/lib/Twig/Components/inputs/AbstractCheckbox.php | Base abstract class providing common checkbox properties and validation |
src/lib/Twig/Components/inputs/Checkbox.php | Standard checkbox component extending AbstractCheckbox |
src/lib/Twig/Components/inputs/ThreeStateCheckbox.php | Three-state checkbox component with indeterminate property |
src/bundle/Resources/views/themes/standard/design_system/components/inputs/Checkbox.html.twig | Twig template for standard checkbox rendering |
src/bundle/Resources/views/themes/standard/design_system/components/inputs/ThreeStateCheckbox.html.twig | Twig template for three-state checkbox with indeterminate styling |
src/bundle/Resources/public/ts/shared/BaseCheckbox.ts | Base TypeScript class for checkbox components |
src/bundle/Resources/public/ts/components/inputs/Checkbox.ts | Standard checkbox TypeScript implementation |
src/bundle/Resources/public/ts/components/inputs/ThreeStateCheckbox.ts | Three-state checkbox with indeterminate state handling |
src/bundle/Resources/public/ts/components/inputs/InputText.ts | Fixed class name typo from InpuText to InputText |
src/bundle/Resources/public/ts/init_components.ts | Added initialization for both checkbox components |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@@ -1,6 +1,6 @@ | |||
import Base from '../../shared/Base'; | |||
|
|||
export default class InpuText extends Base { | |||
export default class InputText extends Base { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class name 'InpuText' was misspelled and has been correctly fixed to 'InputText'.
Copilot uses AI. Check for mistakes.
use Symfony\Component\OptionsResolver\OptionsResolver; | ||
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; | ||
use Symfony\UX\TwigComponent\Attribute\PreMount; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PreMount import is unused in this class. Consider removing it to clean up the imports.
Copilot uses AI. Check for mistakes.
Description:
For QA:
Documentation: