fix(desktop): use Tailwind 500 colors for dev dock icon border#1520
Conversation
Instead of generating arbitrary HSL colors, pick from the full set of Tailwind CSS 500-level colors deterministically based on workspace name. This gives more recognizable, consistent colors across worktrees.
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThe dock icon color generation logic is refactored to select from a predefined Tailwind 500 color palette using a deterministic integer hash instead of computing HSL values. OKLCH color space parsing and conversion to sRGB replaces the previous HSL-to-RGB pipeline, with new utility functions supporting hash generation and color space transformations. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
hash(workspaceName) % colors.length) instead of generating arbitrary HSL huesTest plan
bun run lint:fix— cleanbun run typecheck— passes (18/18)bun test— 1218 pass, 0 failSummary by CodeRabbit