-
Notifications
You must be signed in to change notification settings - Fork 5
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
WRR-14756: Publish ColorPicker component #1803
Open
adrian-cocoara-lgp
wants to merge
37
commits into
develop
Choose a base branch
from
feature/ColorPickerPOC
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
* Created component skeleton for ColorPickerPOC * Added propTypes * Fixed lint warnings
* added color picker grid component * added logic for new color picker grid component * fixed story name * adjueste component size * fixed color array values * updated cell size * unified colorpickerpoc and colorpickergrid * removed unwanted story * lint fixes * renamed util function
* Created component skeleton for ColorPickerPOC * Added propTypes * Fixed lint warnings * Added option to remove favorite color on long press * Applied design changes for the Favorite Colors section * Added shake animation for delete action
* added opposite color for focus on colorpickergrid * added box shadow for focused color
* Added ColorPickerSlider functionality to ColorPickerPOC. * Small fix for ColorPickerSlider. * Transparent knob with border. * Merge with main branch. * Lint fix. * Review fix. * Review fix.
* *WIP* implement spectrum color picker * added positionPointer, wrapped ColorPicker in Spottable, code cleanup * fixed spottable div * *WIP* added 5-way navigation to indicator * color selection via 5-way, code cleanup, fix lint * code review fixes --------- Co-authored-by: Daniel Stoian <daniel.stoian@lgepartner.com>
* *WIP* implement spectrum color picker * added positionPointer, wrapped ColorPicker in Spottable, code cleanup * fixed spottable div * *WIP* added 5-way navigation to indicator * color selection via 5-way, code cleanup, fix lint * added accelerator to spectrum color picker * fixed review issues --------- Co-authored-by: Adrian Cocoara <adrian.cocoara@lgepartner.com> Co-authored-by: Daniel Stoian <daniel.stoian@lgepartner.com>
…favorite color is removed (#1660) * Created component skeleton for ColorPickerPOC * Added propTypes * Fixed lint warnings * Added option to remove favorite color on long press * Applied design changes for the Favorite Colors section * Added shake animation for delete action * Added shake animation for delete action * Added handler to display colors state in actions log when favorite color is removed * Added pointer events * Review fixes * Changed alignment for favorite colors * Fixed spotlight navigation on favorite colors
* Fixed problem with knob size and added a version of HSL for ColorPickerSlider. * Small fix * Review fixes
* handle resize of canvas * code cleanup * sorted props --------- Co-authored-by: Stanca <stanca.pop@lgepartner.com>
* Added useEffect, so the sliders change when selecting a new color from favorites. * Added a switch to chose between HSL or RGB format. * Revert npm-shrinkwrap override * style improvements * spacing adjustments --------- Co-authored-by: Stanca <stanca.pop@lgepartner.com>
* fixed deletion of favorite colors for ColorPicker * save component state when props change * removed unnecessary code * added back useEffect * changed outputText color to be more visible * added handler for Enter key to edit favorite colors * code review fix --------- Co-authored-by: Stanca <stanca.pop@lgepartner.com>
* Added a dropdown to chose between HSL or RGB format and an input for hex values. * styling fixes --------- Co-authored-by: Stanca <stanca.pop@lgepartner.com>
…eature/ColorPickerPOC
…eature/ColorPickerPOC
…eature/ColorPickerPOC
* added JS Docs * removed @module and indented code * fixed JS docs * fixed `too many doclets` error * fixed js docs warning * fixed JS docs * fixed js docs * added JD docs for SpectrumIndicator.js * refactored rgbStringToHex function and added `willReadFrequently: true` parameter in ColorPickerSpectrum for optimization * made ColorPicker main component public and ColorPickerGrid component props private * fixed qa sampler * removed forgotten console.log * removed transform as it conflicted with 5-way navigation * review fixes * modified example in JS docs * modified JS docs for ColorPicker example * JS docs fix * fixed JS docs * added default colors * fixed typo * fixed JS docs * changed slider names and adjusted tabLayout width * updated deprecated max-width value * moved max-width properties to target tabs class * corrected selector * fixed typo * added `type` and `disabled` props * changed type prop to public * added disabled style and behavior for each subcomponent of ColorPicker * added missing dependency * review fixes * added missing dependency * review fix * WRR-3979: Updated storybook to 8.4 (#1739) * updated storybook to 8.4 * updated to latest storybook * updated storybook-utils * review fix * dummy commit to fix cla license * revert dummy commit * removed spotlightDisabled from Dropdown as it is not recognized as a custom prop * undo spotlightDisabled removal - warning has different cause --------- Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
* added JS Docs * removed @module and indented code * fixed JS docs * fixed `too many doclets` error * fixed js docs warning * fixed JS docs * fixed js docs * added JD docs for SpectrumIndicator.js * refactored rgbStringToHex function and added `willReadFrequently: true` parameter in ColorPickerSpectrum for optimization * made ColorPicker main component public and ColorPickerGrid component props private * fixed qa sampler * removed forgotten console.log * added unit tests for Grid and Sliders ColorPickers * removed transform as it conflicted with 5-way navigation * review fixes * modified example in JS docs * modified JS docs for ColorPicker example * JS docs fix * fixed JS docs * *WIP* add ui tests for ColorPicker * added default colors * fixed typo * fixed JS docs * changed slider names and adjusted tabLayout width * updated deprecated max-width value * added ui tests for sliders color picker and one extra unit test * moved max-width properties to target tabs class * corrected selector * fixed typo * added screenshot tests for ColorPicker * fix lint * added `type` and `disabled` props * changed type prop to public * added unit tests for Spectrum * added disabled style and behavior for each subcomponent of ColorPicker * added missing dependency * review fixes * added missing dependency * merge with WRR-12000 and update tests * updated ui/ss tests * review fix * removed spotlightDisabled from Dropdown as it is not recognized as a custom prop * added type to SliderColorPicker and extra unit tests * added extra unit tests * restore unit tests file * added extra tests for FavoriteColors * added utils unit tests and fix lint * fix travis * fix docs * Update tests/ui/specs/ColorPicker/ColorPickerPage.js * Apply suggestions from code review * lint warning fixes --------- Co-authored-by: Stanca <stanca.pop@lgepartner.com> Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com> Co-authored-by: Daniel Stoian <daniel.stoian@lgepartner.com>
…ture/ColorPickerPOC
… into feature/ColorPickerPOC
…ut` (#1801) * refactor ColorPicker to use `TabGroup` instead of `TabLayout` * fix lint * layout fixes * layout fixes * layout fixes and minor refactoring * updated ui-tests for the new layout * added CSS variables * add missing variables file * fix import typo * refactoring of css variables and styles * added css variables and fixed failed unit tests * minor fix in hex value --------- Co-authored-by: Stanca <stanca.pop@lgepartner.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1803 +/- ##
===========================================
+ Coverage 80.95% 81.16% +0.20%
===========================================
Files 148 154 +6
Lines 6695 7124 +429
Branches 2006 2100 +94
===========================================
+ Hits 5420 5782 +362
- Misses 969 1023 +54
- Partials 306 319 +13 ☔ View full report in Codecov by Sentry. |
daniel-stoian-lgp
approved these changes
Jan 17, 2025
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.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
Issue Resolved / Feature Added
Publish new ColorPicker component
Resolution
Additional Considerations
Renamed previous
ColorPicker
withColorPickerSettingsApp
. AfterColorPicker
is published,ColorPickerSettingsApp
can be deleted.Links
WRR-14756
Comments
Enact-DCO-1.0-Signed-off-by: Adrian Cocoara adrian.cocoara@lgepartner.com