You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add custom connection colours and show the current one as selected #834
Severity: P2 (FR-1.2.5 says "eight presets and a custom colour" are built; the custom colour is not)
What happens
Open ?mock=connected, right-click "Local dev" → Edit Connection.
The Color row shows the eight presets with none selected, but a "Clear" link is shown. The profile's colour is #22c55e, which is not a preset, so the user cannot see or re-pick it.
Staging's colour #f59e0b will not show as selected either, although it is the amber preset #F59E0B: the comparison is case-sensitive.
There is no way to enter a colour outside the presets.
Cause
src/components/connection/tabs/GeneralTab.tsx:83-106: presets only, form.color === c (case-sensitive), and swatches named only by a hex title.
Fix
Add a "Custom" swatch backed by <input type="color"> that shows the current non-preset value as selected. Compare colours case-insensitively, give the swatches aria-pressed and human names, and make the selected ring visible.
Activity
feat: custom connection colours and visible selection