gsxdsm
fc56161c9d
FN-9014: add chat and mailbox message archiving
Add archived-message lifecycle support across chat and mailbox views.
- Persist archive state with a PostgreSQL migration and message-store APIs.
- Expose archive, restore, and permanent-delete messaging endpoints.
- Add archived-message views and archive-by-default actions with regression coverage.
- Document storage behavior and add a release changeset.
Files changed:
.changeset/fn-9014-message-archive.md | 7 ++
docs/dashboard-guide.md | 7 +-
docs/storage.md | 2 +-
.../__tests__/postgres/message-store.pg.test.ts | 34 +++++++
.../src/__tests__/postgres/schema-applier.test.ts | 9 +-
.../core/src/async-stores/async-message-store.ts | 73 +++++++++++---
.../migrations/0058_fn_9014_message_archive.sql | 13 +++
packages/core/src/postgres/schema-applier.ts | 14 ++-
packages/core/src/postgres/schema/project.ts | 2 +
packages/core/src/stores/message-store.ts | 68 ++++++++++---
packages/core/src/types/messaging/messages.ts | 9 ++
packages/dashboard/app/api/chat/messaging.ts | 37 +++++--
packages/dashboard/app/api/legacy.ts | 2 +
packages/dashboard/app/components/ChatView.tsx | 21 +++-
packages/dashboard/app/components/MailboxModal.tsx | 74 ++++++++++++--
packages/dashboard/app/components/MailboxView.tsx | 108 +++++++++++++++++++--
.../__tests__/ChatView.core-contracts.test.tsx | 24 +++++
.../components/__tests__/ChatView.test-harness.tsx | 3 +
.../app/components/__tests__/MailboxModal.test.tsx | 6 +-
.../app/components/__tests__/MailboxView.test.tsx | 10 +-
.../dashboard/app/hooks/__tests__/useChat.test.ts | 35 ++++++-
packages/dashboard/app/hooks/useChat.ts | 38 +++++++-
.../__tests__/messaging-archive-routes.test.ts | 86 ++++++++++++++++
.../src/routes/register-messaging-scripts.ts | 33 ++++++-
24 files changed, 635 insertions(+), 80 deletions(-)
Fusion-Task-Id: FN-9014
Fusion-Task-Lineage: 1dbd02c3-1180-4d72-8cbc-9594e5f355dc
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-12 16:03:30 -07:00
..
2026-08-12 16:03:30 -07:00
2026-08-09 17:10:49 -07:00
2026-06-27 15:56:42 -07:00
2026-06-22 15:23:43 -07:00
2026-07-01 07:50:52 -07:00
2026-07-26 11:17:52 -07:00
2026-08-09 16:27:51 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 11:17:52 -07:00
2026-08-09 17:10:49 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 10:13:39 -07:00
2026-05-20 03:19:44 -07:00
2026-07-14 18:47:53 -07:00
2026-07-26 11:17:52 -07:00
2026-08-03 09:04:45 -07:00
2026-07-26 10:13:39 -07:00
2026-07-02 20:16:43 -07:00
2026-07-18 11:02:45 -07:00
2026-07-12 12:49:37 -07:00
2026-05-15 22:24:12 -07:00
2026-07-17 14:25:30 -07:00
2026-05-13 15:05:05 -07:00
2026-04-23 23:02:36 -07:00
2026-08-03 00:20:53 -07:00
2026-07-26 09:50:44 -07:00
2026-08-03 00:20:53 -07:00
2026-06-23 19:52:52 -07:00
2026-06-23 20:14:14 -07:00
2026-08-12 16:03:30 -07:00
2026-08-09 23:21:02 -07:00
2026-05-15 15:19:56 -07:00
2026-07-26 10:13:39 -07:00
2026-06-13 19:40:15 -07:00
2026-07-26 08:48:36 -07:00
2026-07-25 05:15:02 -07:00
2026-07-18 00:33:14 -07:00
2026-07-02 11:38:31 -07:00
2026-07-26 09:50:44 -07:00
2026-07-16 03:17:35 -07:00
2026-07-25 09:07:09 -07:00
2026-07-26 09:50:44 -07:00
2026-04-20 12:59:58 -07:00
2026-05-21 18:15:26 -07:00
2026-05-20 03:19:44 -07:00
2026-05-03 14:10:11 -07:00
2026-05-03 07:47:45 -07:00
2026-07-19 16:29:39 -07:00
2026-07-26 19:52:32 -07:00
2026-07-26 09:50:44 -07:00
2026-07-26 09:50:44 -07:00
2026-08-03 00:20:53 -07:00
2026-08-01 04:03:26 -07:00
2026-04-23 23:02:36 -07:00
2026-06-03 19:06:53 -07:00
2026-05-20 04:12:40 -07:00
2026-03-26 00:10:53 -04:00
2026-07-03 21:45:21 -07:00
2026-06-03 22:35:28 -07:00
2026-07-28 23:23:13 -07:00
2026-07-12 19:39:42 -07:00
2026-05-16 09:21:06 -07:00
2026-06-03 13:02:23 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 11:17:52 -07:00
2026-06-27 09:28:29 -07:00
2026-06-27 12:15:42 -07:00
2026-06-10 09:21:48 -07:00
2026-04-25 18:22:37 -07:00
2026-07-11 17:16:49 -07:00
2026-07-26 09:50:44 -07:00
2026-07-13 19:07:58 -07:00
2026-07-26 11:17:52 -07:00
2026-07-02 18:28:06 -07:00
2026-06-21 13:25:40 -07:00
2026-08-09 07:06:06 -07:00
2026-07-26 19:52:32 -07:00
2026-08-01 04:03:26 -07:00
2026-07-26 11:17:52 -07:00
2026-07-20 23:28:49 -07:00
2026-04-09 13:01:19 -07:00
2026-07-26 11:17:52 -07:00
2026-07-26 09:50:44 -07:00
2026-06-30 01:50:52 -07:00
2026-07-19 18:00:47 -07:00
2026-05-06 02:14:05 -07:00
2026-04-16 10:04:44 -07:00
2026-07-23 22:53:04 -07:00
2026-05-21 18:15:26 -07:00
2026-04-23 23:02:35 -07:00
2026-07-23 21:29:54 -07:00
2026-06-07 02:26:00 +07:00
2026-07-19 16:29:39 -07:00
2026-04-23 23:02:36 -07:00
2026-06-03 19:06:53 -07:00
2026-08-01 09:53:36 -07:00
2026-04-24 08:55:02 -07:00
2026-07-26 11:17:52 -07:00
2026-08-09 17:10:49 -07:00
2026-04-10 02:59:38 -07:00
2026-07-26 10:13:39 -07:00
2026-07-26 09:50:44 -07:00
2026-07-26 09:50:44 -07:00
2026-06-23 20:03:44 -07:00
2026-06-17 03:29:39 -07:00
2026-05-01 13:08:07 -07:00
2026-07-30 10:35:31 -07:00
2026-04-20 10:16:13 -07:00
2026-05-08 08:37:26 -07:00
2026-05-07 23:21:05 -07:00
2026-07-26 09:50:44 -07:00
2026-07-30 14:12:14 -07:00
2026-07-05 13:15:56 -07:00
2026-08-11 14:22:14 -07:00
2026-07-11 18:52:28 -07:00
2026-08-03 00:20:53 -07:00
2026-07-17 00:00:46 -07:00
2026-07-16 16:01:29 -07:00
2026-07-14 17:18:06 -07:00
2026-07-29 09:04:58 -07:00
2026-04-27 01:40:07 -07:00
2026-07-26 09:50:44 -07:00
2026-08-02 17:27:31 -07:00
2026-08-03 09:04:45 -07:00
2026-07-25 05:48:35 -07:00
2026-08-04 01:24:30 -07:00
2026-06-29 23:17:49 -07:00
2026-07-12 12:49:37 -07:00
2026-07-26 09:50:44 -07:00
2026-07-26 10:13:39 -07:00
2026-07-26 11:17:52 -07:00