feat: an archive page, and the sidebar drops archived sessions

- 全部功能 gains an 归档 entry: the new page lists every archived session
  with a count, search over title / id / project, project chips (all plus
  each project with its count), and a row that opens the chat; each row
  restores the session or opens a menu to open, restore, copy the id or
  delete it
- the sidebar's 显示已归档 button and archived list are gone; the sidebar
  now lists only active sessions, while the archive page owns the archived
  ones (matching OpenChamber's archive page)
- version 0.6.0+600
- tests cover the archive list, project chips, search and restore
This commit is contained in:
blumia committed 2026-11-27 11:10:51 +08:00
1 parent c6b5a870c6
commit a7e4ed8dd7
8 files changed
+553 -103

No files matched your search

+10
View File
@@ -611,4 +611,14 @@ const Map<String, String> chineseStrings = {
'calls: {0} · median: {1}': '调用 {0} · 中位耗时 {1}',
'calls: {0}': '调用 {0}',
'OpenChamber mobile client': 'OpenChamber 移动客户端',
// archive
'All': '全部',
'Open': '打开',
'1 archived session': '1 个已归档会话',
'{0} archived sessions': '{0} 个已归档会话',
'Search archived sessions': '搜索已归档会话',
'No matching archived sessions': '没有匹配的已归档会话',
'Browse archived sessions and restore them': '浏览已归档的会话并恢复',
'Session restored': '会话已恢复',
};