Skip to content

feat(color-picker): migrate to @simonwep/pickr - #3151

Merged
deadlyjack merged 3 commits into
mainfrom
feat/pickr-color-picker
Dec 4, 2026
Merged

deadlyjack merged 3 commits into
mainfrom
feat/pickr-color-picker

Conversation

@deadlyjack

Copy link
Copy Markdown
Member

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.

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.
@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The reviewed changes appear safe to merge; no new blocking issue was found.

Summary

Replaces vanilla-picker with an inline Pickr dialog.

  • The color dialog shows an inline picker with a button to cycle formats.
  • The color dialog shows recent colors as clickable swatches.
  • RGB-to-hex conversion rounds fractional alpha to a whole channel.
  • Color checks accept fractional HSL hues throughout the supported range.

No new actionable issues were found in the changes since the previous review. Tests and visual checks were not run.

Reviews (4) · Last reviewed commit: "fix(color-picker): harden seeding, focus..." · Reviewed by Greptile

greptile-apps[bot]

This comment was marked as outdated.

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.
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

bajrangCoder

This comment was marked as outdated.

- 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>
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

@deadlyjack
deadlyjack added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit f25b3b8 Dec 4, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Dec 4, 2026
@deadlyjack
deadlyjack deleted the feat/pickr-color-picker branch December 4, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants