feat(desktop): restore per-project color in v2 sidebar

Closed
AV
5mo ago
+102-3

Summary

  • Adds a Set Color submenu to the v2 project context menu in the dashboard sidebar, restoring the v1 affordance
  • Color is stored locally in the v2-project-local-meta Zustand store (per-machine, persisted), not on the synced v2_projects table
  • Reuses the existing ColorSelector component and color palette from v1

Test plan

  • Right-click a project in the v2 sidebar → Set Color → pick a color, verify the thumbnail border/tint updates
  • Reload the app, verify color persists
  • Verify color is per-machine (does not appear on another device for the same account)
  • Verify the rest of the context menu actions (rename, settings, new group, remove) still work

Summary by cubic

Restores per-project color in the v2 dashboard sidebar via a Set Color submenu (using ColorSelector) and applies the color to project thumbnails in both collapsed and expanded views. Colors are stored per machine in v2-project-local-meta (persist v1) so the optional color field doesn’t wipe existing prefs; projects without a custom color use the default styling.

Summary by CodeRabbit

  • New Features
    • Projects in the dashboard sidebar can now be assigned custom colors.
    • Access the color selector from each project's context menu to choose or change colors.
    • Custom project colors persist locally and are shown in both collapsed and expanded sidebar views.
    • Projects without a custom color continue to use the default styling.

Review Change Stack