forked from dust-tt/dust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[front] - chore: upgrade
Checkbox
(dust-tt#8005)
* [front/components] - refactor: standardize checkbox component integration - Replace string literals for checkbox states with a structured CheckboxStatus object to improve code clarity and consistency - Update Checkbox component usage across various components to align with the new CheckboxStatus implementation [front/package] - fix: update @dust-tt/sparkle dependency to latest version - Ensure compatibility with new CheckboxStatus structure by updating the @dust-tt/sparkle dependency to the latest RC version - Include updates to related checkbox components from @radix-ui/react-checkbox to maintain alignment with dependency changes * [front] - refactor: replace PokeCheckbox with Checkbox from sparkle library - PokeCheckbox has been replaced with Checkbox across different components for consistency - Import of PokeCheckbox has been removed as it's no longer used * [front/components/poke/plans] - refactor: reorder imports in createPlan component - Adjust the order of component imports to follow convention [misc] - remove: delete obsolete checkbox component - Remove the PokeCheckbox component as it's no longer in use * [front] - fix: correct event handler for Checkbox component in form - Replace `onChange` with `onCheckedChange` to correctly handle state changes when checkboxes are toggled in the editing plan form * [front] - fix: ensure proper state update on selection change in tree - Replace direct state manipulation with controlled component behavior when a tree item is checked - Resolve issue with partial selection state not updating correctly upon user interaction * [front] - refactor: streamline checkbox component interface and usage - Replaced individual checked and onChange props with defaultChecked and onCheckedChange for Checkbox components across various modules - Simplified getCheckedState function in ContentNodeTree.tsx by returning a string state instead of an object with boolean flags - Adjusted logic handling the checked state of tree items to accommodate the new return type of getCheckedState function - Ensured consistent behavior of checkbox components and their interaction within the application's various features * [front/components] - refactor: standardize checkbox checked state representation - Replace the mixed usage of "checked", "unchecked", and "partial" string literals with booleans and a "partial" string where necessary - Simplify the logic in various components to work with the standardized state representation [front] - fix: correct spacing in import statement in createPlan.tsx - Ensure consistent code style by fixing the spacing between imported components [front] - devops: update @dust-tt/sparkle package to version 0.2.266-rc-2 - Bump the version of @dust-tt/sparkle to incorporate the latest changes and fixes in the project dependencies * [front] - fix: use controlled component pattern for checkboxes - Changed Checkbox components from uncontrolled to controlled by using the `checked` prop instead of `defaultChecked` - Ensures the Checkbox components properly react to state changes for consistent user experience across the application * [front] - feature: upgrade @dust-tt/sparkle to version 0.2.267 - Update the @dust-tt/sparkle package from a release candidate to the stable version - Resolve package-lock.json to point to the new version with updated integrity checksums --------- Co-authored-by: Jules <[email protected]>
- Loading branch information
1 parent
a752b4d
commit edb7592
Showing
11 changed files
with
216 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.