Repository navigation
feat(color-picker): migrate to @simonwep/pickr - #3151
Merged
Merged
Conversation
Replace vanilla-picker with an inline Pickr dialog, add recent color swatches with format cycling, validate and migrate stored colors, and round fractional alpha in Hex.fromRgb. Add unit tests for swatch storage/migration and hex alpha rounding.
Contributor
Confidence Score: 5/5
[Medium impact] The reviewed changes appear safe to merge; no new blocking issue was found. SummaryReplaces
No new actionable issues were found. The earlier alpha-precision finding is addressed. The migration-test thread was manually resolved without explanation; neither supplied thread has a comment number. Tests and visual checks were not run. Reviews (3) · Last reviewed commit: "fix(color-picker): harden seeding, focus..." · Reviewed by Greptile |
Move Pickr color formatting into a pure module, quantize alpha through the 8-bit channel so faint colors stay translucent, and reuse the formatter for stored hex colors. Add focused tests for every format and the alpha round-trip.
Member
Author
- Normalize seed colors (trim, leading-dot numbers) and fall back when Pickr can't parse them - Keep the format label, output and saved format in sync with typed input - Ignore OK before Pickr is ready and end active drags before destroy - Move keyboard dismissal into dismissKeyboard and skip focus restore when another dialog is open - Keep one decimal in HSL output and use top/right/bottom/left for Chrome 67 - Accept fractional hues from 300 to 359 in the shared color regex - Read stored colors through helpers.parseJSON Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
This file contains hidden or 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
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.
Replace vanilla-picker with an inline Pickr dialog, add recent color swatches with format cycling, validate and migrate stored colors, and round fractional alpha in Hex.fromRgb. Add unit tests for swatch storage/migration and hex alpha rounding.