gsxdsm
03161adfb9
FN-7659: paginate and sort the Archived column newest-first
Adds server-side pagination for the Archived task column, sorted by most-recently-archived first, with a Show more control on the dashboard.
- Add ArchiveDatabase.listPage and TaskStore.listArchivedTasks for a bounded SQL LIMIT/OFFSET read ordered by archivedAt DESC
- Add GET /tasks/archived route for paged archive fetches, leaving the legacy merged listTasks({includeArchived}) path unchanged
- Wire useTasks.loadArchivedTasks to fetch page 1 on first Archived-column expand and loadMoreArchivedTasks for subsequent pages
- Add a "Show more" affordance in Column.tsx/Board.tsx/MainContent.tsx to trigger loading additional archived pages
- Extend taskSorting.ts to keep archived task ordering stable with the new paged data
- Add core and dashboard tests covering archive pagination and store/route behavior
- Add changeset for @runfusion/fusion (minor) and update docs/storage.md and docs/dashboard-guide.md
Files changed:
.changeset/FN-7659-archived-pagination.md | 7 +
docs/dashboard-guide.md | 4 +-
docs/storage.md | 7 +
packages/core/src/__tests__/archive-db-pagination.test.ts | 94 ++++++++
packages/core/src/__tests__/store-archive-search.test.ts | 63 ++++++
packages/core/src/archive-db.ts | 18 ++
packages/core/src/store.ts | 32 +++
packages/dashboard/app/App.tsx | 5 +-
packages/dashboard/app/api/legacy.ts | 19 ++
packages/dashboard/app/components/Board.tsx | 19 +-
packages/dashboard/app/components/Column.tsx | 48 ++++-
packages/dashboard/app/components/__tests__/Column.test.tsx | 41 ++++
packages/dashboard/app/components/__tests__/taskSorting.test.ts | 27 +++
packages/dashboard/app/components/dashboard/MainContent.tsx | 9 +
packages/dashboard/app/components/dashboard/types.ts | 6 +
packages/dashboard/app/components/taskSorting.ts | 16 ++
packages/dashboard/app/hooks/__tests__/useTasks.test.ts | 236 ++++++++++++++++++++-
packages/dashboard/app/hooks/useTasks.ts | 173 ++++++++++++++-
packages/dashboard/app/test/mockApi.ts | 3 +
packages/dashboard/src/routes/__tests__/tasks-archived-pagination.test.ts | 94 ++++++++
packages/dashboard/src/routes/register-task-workflow-routes.ts | 32 +++
21 files changed, 930 insertions(+), 23 deletions(-)
Fusion-Task-Id: FN-7659
Fusion-Task-Lineage: 7a5a1f62-277c-4f29-883c-62e75b269bc5
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-08 01:29:56 -07:00
..
2026-07-08 01:29:56 -07:00
2026-06-22 03:48:08 -07:00
2026-07-08 00:50:11 -07:00
2026-07-08 01:29:56 -07:00
2026-07-05 11:31:48 -07:00
2026-07-08 00:23:32 -07:00
2026-06-19 04:27:01 -07:00
2026-07-06 19:03:06 -07:00
2026-06-20 05:04:25 -07:00
2026-06-22 19:48:50 -07:00
2026-06-22 04:18:35 -07:00
2026-06-20 05:04:25 -07:00
2026-07-02 11:38:31 -07:00
2026-07-08 00:27:52 -07:00
2026-06-30 01:50:52 -07:00
2026-06-20 05:04:25 -07:00
2026-06-03 17:14:42 -07:00
2026-06-20 05:04:25 -07:00
2026-06-27 17:11:13 -07:00
2026-07-04 10:42:21 -07:00
2026-07-04 10:42:21 -07:00
2026-06-25 08:34:44 -07:00
2026-06-03 19:06:53 -07:00
2026-06-20 05:04:25 -07:00
2026-07-01 09:45:30 -07:00
2026-07-01 09:45:30 -07:00
2026-06-20 05:04:25 -07:00
2026-06-03 20:52:44 -07:00
2026-06-19 04:27:01 -07:00
2026-06-17 21:37:18 -07:00
2026-06-20 05:04:25 -07:00
2026-06-20 05:04:25 -07:00
2026-06-23 00:15:38 -07:00
2026-06-27 17:11:13 -07:00
2026-06-27 17:11:13 -07:00
2026-06-03 19:06:53 -07:00
2026-07-05 11:31:47 -07:00
2026-06-03 19:06:53 -07:00
2026-06-21 23:07:55 -07:00
2026-06-29 15:34:06 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 19:06:53 -07:00
2026-06-10 06:02:12 -07:00
2026-06-05 01:16:13 -07:00
2026-06-22 16:21:03 -07:00
2026-07-08 01:29:56 -07:00
2026-06-08 13:32:58 -07:00
2026-07-02 13:07:16 -07:00
2026-07-02 13:07:16 -07:00
2026-06-03 19:06:53 -07:00
2026-06-04 08:00:33 -07:00
2026-07-06 19:03:06 -07:00
2026-07-06 19:03:06 -07:00
2026-07-07 23:15:53 -07:00
2026-07-07 23:15:53 -07:00
2026-06-15 12:43:08 -07:00
2026-06-19 04:27:01 -07:00
2026-07-02 23:49:43 -07:00
2026-06-19 04:27:01 -07:00
2026-06-20 05:04:25 -07:00
2026-06-05 02:38:38 -07:00
2026-07-08 01:29:56 -07:00
2026-06-21 03:53:43 -07:00
2026-06-03 01:08:09 -07:00
2026-06-22 10:26:14 -07:00
2026-06-03 19:06:53 -07:00
2026-06-19 04:27:01 -07:00
2026-06-19 22:14:57 -07:00
2026-06-21 03:53:43 -07:00
2026-07-02 11:38:33 -07:00
2026-07-02 11:38:33 -07:00
2026-06-23 16:47:38 -07:00
2026-07-01 15:39:34 -07:00
2026-06-03 20:52:44 -07:00
2026-06-30 01:23:09 -07:00
2026-06-30 01:23:09 -07:00
2026-06-19 04:27:01 -07:00
2026-07-02 23:53:26 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 19:48:40 -07:00
2026-06-03 20:52:44 -07:00
2026-06-19 04:27:01 -07:00
2026-07-02 20:57:25 -07:00
2026-06-03 20:52:44 -07:00
2026-06-25 14:37:52 -07:00
2026-06-23 16:47:38 -07:00
2026-06-19 04:27:01 -07:00
2026-07-03 21:45:20 -07:00
2026-06-19 22:14:57 -07:00
2026-06-03 19:48:40 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 19:06:53 -07:00
2026-06-26 00:43:55 -07:00
2026-07-02 13:44:41 -07:00
2026-06-28 21:10:28 -07:00
2026-06-28 21:10:28 -07:00
2026-07-02 12:00:58 -07:00
2026-07-02 12:00:58 -07:00
2026-06-03 20:52:44 -07:00
2026-06-22 23:42:45 -07:00
2026-06-22 23:42:45 -07:00
2026-07-01 09:30:00 -07:00
2026-06-30 23:45:02 -07:00
2026-06-29 19:29:36 -07:00
2026-06-25 08:35:44 -07:00
2026-06-25 08:35:44 -07:00
2026-06-20 23:57:37 -07:00
2026-06-21 02:15:24 -07:00
2026-06-19 01:33:13 -07:00
2026-06-20 05:04:25 -07:00
2026-06-22 11:47:52 -07:00
2026-06-22 11:47:52 -07:00
2026-06-24 23:32:52 -07:00
2026-06-27 22:02:59 -07:00
2026-06-22 03:48:08 -07:00
2026-07-02 13:44:41 -07:00
2026-07-02 13:44:41 -07:00
2026-07-02 13:44:41 -07:00
2026-06-22 15:23:43 -07:00
2026-06-25 08:34:44 -07:00
2026-06-03 19:06:53 -07:00
2026-06-29 23:12:56 -07:00
2026-07-04 10:42:19 -07:00
2026-07-04 10:42:19 -07:00
2026-07-06 19:03:06 -07:00
2026-07-06 19:03:06 -07:00
2026-06-27 23:47:21 -07:00
2026-06-22 03:57:10 -07:00
2026-07-02 11:38:34 -07:00
2026-07-08 00:14:52 -07:00
2026-06-03 22:35:28 -07:00
2026-06-20 05:04:25 -07:00
2026-07-02 11:38:34 -07:00
2026-06-29 20:24:24 -07:00
2026-06-27 20:02:33 -07:00
2026-06-30 21:59:03 -07:00
2026-07-01 07:33:56 -07:00
2026-06-19 04:27:01 -07:00
2026-06-30 18:15:10 -07:00
2026-06-25 08:34:44 -07:00
2026-07-01 23:58:55 -07:00
2026-07-01 07:33:56 -07:00
2026-07-07 22:04:53 -07:00
2026-06-21 00:22:34 -07:00
2026-07-05 13:15:56 -07:00
2026-06-22 19:48:50 -07:00
2026-06-22 23:58:38 -07:00
2026-06-25 08:34:44 -07:00
2026-06-20 05:04:25 -07:00
2026-06-20 23:43:13 -07:00
2026-07-05 11:31:47 -07:00
2026-06-19 04:27:01 -07:00
2026-06-03 17:33:16 -07:00
2026-06-22 23:58:38 -07:00
2026-07-06 19:03:06 -07:00
2026-06-30 01:57:09 -07:00
2026-07-05 11:31:47 -07:00
2026-06-03 20:52:44 -07:00
2026-06-21 03:53:43 -07:00
2026-06-21 03:53:43 -07:00
2026-06-22 11:15:46 -07:00
2026-06-22 15:23:43 -07:00
2026-06-23 12:17:04 -07:00
2026-07-06 19:03:06 -07:00
2026-06-22 11:15:46 -07:00
2026-06-22 12:07:20 -07:00
2026-06-22 12:07:20 -07:00
2026-06-19 04:27:01 -07:00
2026-06-03 20:52:44 -07:00
2026-06-03 19:06:53 -07:00
2026-06-22 11:08:25 -07:00
2026-06-03 19:06:53 -07:00
2026-06-22 15:23:43 -07:00
2026-06-26 21:31:42 -07:00
2026-06-02 23:47:32 -07:00
2026-06-25 16:31:10 -07:00
2026-06-26 21:31:42 -07:00
2026-06-22 18:21:06 -07:00
2026-06-27 20:27:09 -07:00
2026-07-06 19:03:06 -07:00
2026-07-06 19:03:06 -07:00
2026-06-19 04:27:01 -07:00
2026-06-17 03:12:16 -07:00
2026-06-22 04:39:35 -07:00
2026-07-03 21:46:59 -07:00
2026-07-07 22:04:50 -07:00
2026-06-21 03:53:43 -07:00
2026-07-01 23:01:45 -07:00
2026-07-03 21:47:00 -07:00
2026-07-03 21:47:00 -07:00
2026-06-03 19:06:53 -07:00
2026-06-22 23:58:38 -07:00
2026-06-22 23:58:38 -07:00
2026-06-30 14:03:50 -07:00
2026-07-05 13:15:56 -07:00
2026-06-03 20:52:44 -07:00
2026-07-01 16:43:08 -07:00
2026-06-03 19:06:53 -07:00
2026-06-25 08:34:44 -07:00
2026-06-19 23:16:19 -07:00
2026-05-27 21:31:12 -07:00
2026-07-02 12:10:13 -07:00
2026-06-19 04:27:01 -07:00
2026-06-03 19:48:40 -07:00
2026-06-03 19:06:53 -07:00
2026-07-07 22:04:53 -07:00
2026-06-28 20:11:43 -07:00
2026-07-07 22:04:53 -07:00
2026-06-21 03:53:43 -07:00
2026-07-04 21:28:17 -07:00
2026-07-05 11:31:44 -07:00
2026-07-01 09:24:50 -07:00
2026-07-06 19:03:07 -07:00
2026-07-01 07:33:56 -07:00
2026-07-07 22:04:53 -07:00
2026-07-07 22:04:53 -07:00
2026-06-28 12:10:10 -07:00
2026-06-03 19:06:53 -07:00
2026-06-19 04:27:01 -07:00
2026-06-03 20:52:44 -07:00
2026-06-03 01:08:09 -07:00
2026-06-17 21:37:18 -07:00
2026-06-28 01:17:22 -07:00
2026-06-28 01:17:22 -07:00
2026-06-03 19:06:53 -07:00
2026-06-27 19:54:22 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 20:52:44 -07:00
2026-06-22 19:48:50 -07:00
2026-06-22 18:21:06 -07:00
2026-07-04 10:42:21 -07:00
2026-06-20 21:23:17 -07:00
2026-06-29 18:32:36 -07:00
2026-06-27 23:37:24 -07:00
2026-06-27 23:37:24 -07:00
2026-06-27 23:08:10 -07:00
2026-06-27 23:08:10 -07:00
2026-06-22 15:23:43 -07:00
2026-06-22 15:23:43 -07:00
2026-06-30 14:42:45 -07:00
2026-07-05 13:15:56 -07:00
2026-06-19 08:06:38 -07:00
2026-06-19 08:06:38 -07:00
2026-06-03 19:06:53 -07:00
2026-06-22 03:34:16 -07:00
2026-06-22 03:34:16 -07:00
2026-06-27 22:55:40 -07:00
2026-07-03 00:12:10 -07:00
2026-06-22 19:35:26 -07:00
2026-06-26 02:45:29 -07:00
2026-07-08 00:27:52 -07:00
2026-07-01 16:43:08 -07:00
2026-06-03 19:06:53 -07:00
2026-06-20 05:04:25 -07:00
2026-07-07 23:35:05 -07:00
2026-07-08 00:27:52 -07:00
2026-07-08 00:27:52 -07:00
2026-06-29 20:24:24 -07:00
2026-06-20 05:04:25 -07:00
2026-06-22 19:48:50 -07:00
2026-06-22 11:36:20 -07:00
2026-06-17 03:29:39 -07:00
2026-06-17 03:29:39 -07:00
2026-06-25 19:35:05 -07:00
2026-06-15 02:29:08 -07:00
2026-07-03 07:47:03 -07:00
2026-07-05 19:42:16 -07:00
2026-07-07 22:04:49 -07:00
2026-07-07 22:04:49 -07:00
2026-06-03 19:06:53 -07:00
2026-06-09 18:49:02 -07:00
2026-06-21 03:53:43 -07:00
2026-07-03 21:45:20 -07:00
2026-07-03 21:45:21 -07:00
2026-07-03 21:45:21 -07:00
2026-07-02 11:38:34 -07:00
2026-07-03 21:45:20 -07:00
2026-06-30 10:26:23 -07:00
2026-06-30 10:26:23 -07:00
2026-06-21 16:13:54 -07:00
2026-06-19 04:27:01 -07:00
2026-06-21 03:53:43 -07:00
2026-06-26 13:51:32 -07:00
2026-06-25 19:35:47 -07:00
2026-07-01 00:28:25 -07:00
2026-06-03 20:52:44 -07:00
2026-07-07 23:26:55 -07:00
2026-06-21 03:40:56 -07:00
2026-06-20 01:52:26 -07:00
2026-06-21 03:53:43 -07:00
2026-06-03 19:06:53 -07:00
2026-06-20 18:04:02 -07:00
2026-07-05 13:11:15 -07:00
2026-07-05 13:11:15 -07:00
2026-07-02 11:38:34 -07:00
2026-06-24 23:32:52 -07:00
2026-06-24 19:05:11 -07:00
2026-07-04 10:42:21 -07:00
2026-07-04 10:42:21 -07:00
2026-06-20 10:35:40 -07:00
2026-06-30 01:57:09 -07:00
2026-07-01 11:18:57 -07:00
2026-07-07 22:04:54 -07:00
2026-07-05 19:51:35 -07:00
2026-06-21 23:07:55 -07:00
2026-06-30 00:18:04 +00:00
2026-06-19 04:27:01 -07:00
2026-06-04 16:16:50 -07:00
2026-07-04 14:26:46 -07:00
2026-06-03 19:48:40 -07:00
2026-06-03 20:52:44 -07:00
2026-07-07 22:04:54 -07:00
2026-07-07 23:26:55 -07:00
2026-06-28 00:02:24 -07:00
2026-06-28 02:04:31 -07:00
2026-07-08 01:29:56 -07:00
2026-06-27 17:56:32 -07:00
2026-07-06 19:03:06 -07:00
2026-06-25 14:37:52 -07:00
2026-06-21 22:43:34 -07:00
2026-07-07 22:04:49 -07:00
2026-07-07 22:04:48 -07:00
2026-06-03 19:06:53 -07:00
2026-06-22 19:48:50 -07:00
2026-06-21 16:13:54 -07:00
2026-07-01 18:01:17 -07:00
2026-07-01 18:01:17 -07:00
2026-07-03 07:47:03 -07:00
2026-06-25 14:37:52 -07:00
2026-07-05 13:15:56 -07:00
2026-06-03 19:06:53 -07:00
2026-06-03 19:06:53 -07:00
2026-06-13 16:30:28 -07:00
2026-06-13 16:30:28 -07:00
2026-06-22 03:34:15 -07:00
2026-06-22 03:34:15 -07:00
2026-07-05 11:31:47 -07:00
2026-06-22 18:21:06 -07:00
2026-06-22 03:34:15 -07:00
2026-06-27 15:39:01 -07:00
2026-07-05 11:31:48 -07:00
2026-06-29 23:41:51 -07:00
2026-06-28 09:09:03 -07:00
2026-06-28 09:09:03 -07:00
2026-07-04 14:26:46 -07:00
2026-06-22 19:48:50 -07:00
2026-06-19 05:31:47 -07:00
2026-06-04 12:44:43 -07:00
2026-06-30 12:21:25 -07:00
2026-06-30 12:21:25 -07:00
2026-06-30 12:21:25 -07:00
2026-07-05 11:31:48 -07:00
2026-06-28 09:09:03 -07:00
2026-06-25 20:28:38 -07:00
2026-06-28 09:09:03 -07:00
2026-06-29 01:48:27 -07:00
2026-06-09 09:16:59 -07:00
2026-06-20 10:35:40 -07:00
2026-06-19 05:31:47 -07:00
2026-07-02 14:18:08 -07:00
2026-07-01 07:33:56 -07:00
2026-06-30 12:21:25 -07:00
2026-06-30 12:21:25 -07:00
2026-06-19 04:27:01 -07:00
2026-06-03 19:06:53 -07:00
2026-06-21 21:07:20 -07:00
2026-07-05 11:31:47 -07:00
2026-06-03 19:06:53 -07:00