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:
1 parent
c6b5a870c6
commit
a7e4ed8dd7
8 files changed
+553
-103
No files matched your search
@@ -3,6 +3,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../state.dart';
|
||||
import 'archived_sessions_screen.dart';
|
||||
import 'scheduled_tasks_screen.dart';
|
||||
import 'stats_screen.dart';
|
||||
import '../l10n.dart';
|
||||
@@ -46,6 +47,14 @@ class FeaturesScreen extends StatelessWidget {
|
||||
builder: (_) => StatsScreen(app: app),
|
||||
)),
|
||||
),
|
||||
_FeatureTile(
|
||||
icon: Icons.archive_outlined,
|
||||
title: 'Archive',
|
||||
caption: 'Browse archived sessions and restore them',
|
||||
onTap: () => Navigator.of(context).push(MaterialPageRoute(
|
||||
builder: (_) => ArchivedSessionsScreen(app: app),
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user