feat(sidebar): add per-folder color swatch with picker and neutral conversation rail

- Add `color` column to folder table with migration backfill and hash-based assignment on folder creation
- Expose `update_folder_color` via Tauri command and `/update_folder_color` HTTP route
- Render a color swatch before each folder name in the sidebar header; offer a 10-color palette (9 hues plus a theme-aware foreground sentinel) through the folder context menu
- Show the folder header "new conversation" button only on hover
- Drop the expanded-state tint on folder name and count badge; use a fixed neutral rail color for conversation items
This commit is contained in:
xintaofei
2026-04-23 23:02:58 +08:00
parent b7eeeb0be4
commit 1eeb5041a8
23 changed files with 300 additions and 31 deletions

View File

@@ -782,7 +782,8 @@
"folderRemoved": "フォルダ {name} を削除しました",
"openFolderFailed": "フォルダを開けませんでした",
"removeFolderFailed": "フォルダの削除に失敗しました: {message}",
"reorderFoldersFailed": "フォルダの並べ替えに失敗しました: {message}"
"reorderFoldersFailed": "フォルダの並べ替えに失敗しました: {message}",
"changeFolderColorFailed": "色の変更に失敗しました: {message}"
},
"statsLabel": "{folders} フォルダ · {convos} 会話",
"reorderHandle": "ドラッグして並べ替え",
@@ -802,6 +803,7 @@
"removeFolderConfirmDescription": "\"{name}\" をワークスペースから削除しますか?関連するタブとターミナルが閉じられます。",
"folderHeaderMenu": {
"manageConversations": "会話の管理…",
"changeColor": "色を変更",
"removeFromWorkspace": "ワークスペースから削除"
},
"manageConversations": {