feat(FN-1957): add inbox/outbox sub-tabs to agent mailbox views

- Split agent mailbox responses into inbox and outbox arrays while keeping messages as an inbox alias
- Add Inbox/Outbox sub-tabs in MailboxView and MailboxModal with unread badge and agent-switch reset behavior
- Render tab-specific empty states and sent-message metadata in the outbox list
- Add dashboard styles and mobile overrides for agent mailbox sub-tabs
- Expand MailboxModal and MailboxView tests to cover sub-tab visibility, switching, reset, and unread badge behavior
This commit is contained in:
Fusion
2026-04-18 09:02:22 -07:00
committed by gsxdsm
parent 9974cc7019
commit d7c165715e
8 changed files with 648 additions and 13 deletions

View File

@@ -17272,7 +17272,8 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
const agentId = req.params.id;
const mailbox = await msgStore.getMailbox(agentId, "agent");
const inbox = await msgStore.getInbox(agentId, "agent");
res.json({ ...mailbox, messages: inbox });
const outbox = await msgStore.getOutbox(agentId, "agent");
res.json({ ...mailbox, messages: inbox, inbox, outbox });
} catch (err: unknown) {
if (err instanceof ApiError) {
throw err;