Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

GrabowskiM
Copy link
Contributor

🎫 Issue IBX-7999

Description:

For QA:

Documentation:

Copy link

@Copilot Copilot AI left a 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 {
Copy link
Preview

Copilot AI Aug 22, 2025

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;

Copy link
Preview

Copilot AI Aug 22, 2025

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.

Suggested change

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant