Skip to content

fix: use palette icon for session-row and server-tile color pickers#288

Merged
sahil-noon merged 1 commit into
mainfrom
palette-icon-server-pane
Jun 25, 2026
Merged

fix: use palette icon for session-row and server-tile color pickers#288
sahil-noon merged 1 commit into
mainfrom
palette-icon-server-pane

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #287, which replaced the color-picker's U+25A0 "stop square" with a palette icon on window rows. The same glyph was still used by two other color triggers, so they read as stop buttons too. This propagates the palette icon to them and shares a single icon component.

  • Server tiles (server-panel.tsx) — the server blocks in the server pane (the explicitly-requested spot). Rendered at size={12} to fit the compact tile's action cluster.
  • Session rows (session-row.tsx) — included for consistency, so no stop-square color trigger remains anywhere in the sidebar. (Happy to drop this if you only wanted the server pane.)
  • Extracted PaletteIcon (previously local to window-row.tsx) into the shared sidebar/icons.tsx, with an optional size prop (default 13). Window-row now imports it instead of defining its own copy — no behavior change there.
  • Consolidated the pre-existing sidebar/icons.ts (the ICON_CLASS constant used by host-panel/status-panel) into icons.tsx, removing the .ts. Two icons.* files in one directory is a resolution footgun — TS resolves ./icons to the .ts and silently ignores the .tsx. Importers of ./icons are unaffected.

All triggers keep their existing aria-label ("Set color for …") and hover/coarse:/focus-visible: reveal behavior — purely a visual swap.

Verified: just check (tsc) clean; full frontend unit suite 794/794 pass (includes window-row, session-row, server-panel, host-panel, status-panel). Frontend-only, presentational — no Go or API surface touched.

@sahil-noon sahil-noon marked this pull request as ready for review June 25, 2026 08:32
@sahil-noon sahil-noon merged commit 68f6437 into main Jun 25, 2026
5 checks passed
@sahil-noon sahil-noon deleted the palette-icon-server-pane branch June 25, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants