Collaboration workspaces
Collaboration workspaces are full-screen mail and chat areas for work that needs more room than a dashboard page provides. They live at the standalone /mail and /chat routes, while the dashboard keeps lighter preview pages that open these areas when a user needs the complete workspace.
Workspace boundary
The collaboration area has two separate workspaces with similar goals but different work patterns. Mail centers on messages and mailbox folders. Chat centers on active conversations and contact context.
| Workspace | Standalone route | Main work pattern |
|---|---|---|
/mail | Find a message, read its detail, and prepare a reply. | |
| Chat | /chat | Select a conversation, follow its thread, and work with contact details. |
The two routes use their own full-height shells instead of the dashboard shell. This gives each workspace control of its navigation and content layout without changing the broader dashboard experience.
Workspace flow
The route relationship moves a user from a dashboard preview to the matching standalone workspace.
flowchart LR
D[Dashboard page] -->|Open full screen| M[/mail workspace]
D -->|Open full screen| C[/chat workspace]
M --> MI[Mailbox and message work]
C --> CI[Conversation and contact work]
Dashboard preview relationship
The dashboard navigation exposes Email and Chat as dashboard destinations. Each destination presents an embedded preview of its standalone route and offers a link that opens the same route in a new tab. The preview is therefore an access point, not a second collaboration system. The dashboard content and communication views page explains the surrounding dashboard experience. src/…/page.tsx and src/…/page.tsx define this relationship, while src/…/sidebar-items.ts places the destinations in dashboard navigation.
References: src/…/page.tsx• L7-25 src/…/page.tsx• L7-25 src/…/sidebar-items.ts• L141-155
Workspace roles
Each standalone area owns the flow for its type of communication. The shared idea is a list on one side and a focused work view beside it. The details differ so that mail supports message review and chat supports conversation handling.
Mail workspace
The Mail workspace provides a mailbox for selecting and reviewing email. Its full-screen area combines account switching and folder navigation with inbox search, grouped message lists, message details, attachments, and a reply entry point. The standalone route also restores the user's saved layout choice before it opens the workspace. The message list shows read state and time context, while the detail view provides message actions and recipient context.
The workspace keeps the selected message as the link between the inbox and the detail view. On smaller screens the message view can close and return to the list, so the same review flow remains usable without a side-by-side layout.
References: src/…/mail-sidebar.tsx• L39-131 src/…/mail-inbox.tsx• L18-72 src/…/mail-list.tsx• L23-101 src/…/mail-view.tsx• L48-64 src/…/mail-view.tsx• L163-264 src/…/mail.tsx• L26-86
Chat workspace
The Chat workspace provides a conversation workbench for active customer or team exchanges across communication channels. The standalone route starts it with the available conversation set and exposes conversation search, channel and view navigation, message threads, internal notes, and contact details. Its conversation list supports status views and grouped conversations, with unread and pinned context to help users find active work. The main area shows the selected thread and offers contact actions and profile context.
The thread supports two kinds of written response: a reply and an internal note. It also keeps conversation actions and message history in the same focused work surface. On smaller screens the conversation list, thread, and contact details become focused views so the user can move through the same conversation without needing a three-column layout.
References: src/…/chat-header.tsx• L6-31 src/…/chat-sidebar.tsx• L40-154 src/…/chat-conversation-list.tsx• L24-168 src/…/chat-thread.tsx• L59-221 src/…/chat-profile-details.tsx• L34-150 src/…/page.tsx• L3-16
Collaboration mental model
The standalone routes are best understood as focused work surfaces rather than alternate dashboard pages. The dashboard helps a user reach them and preview them. The standalone routes then own the space, navigation, selection, and responsive presentation needed for mail or chat work.
| Concern | Dashboard route family | Standalone collaboration route |
|---|---|---|
| Purpose | Provide a page-level preview and entry point. | Provide the complete mail or chat work surface. |
| Navigation | Uses the main dashboard sidebar. | Uses a mail or chat specific navigation area. |
| Content frame | Renders inside the dashboard content area. | Uses the available screen as the workspace. |
| User focus | Move between many dashboard features. | Stay within one communication task. |
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the dashboard preview route and its standalone target aligned. A changed standalone path can leave both the iframe and the new-tab link pointing to the wrong place.
- Preserve the distinction between dashboard navigation labels and standalone workspace navigation. A sidebar change in one route family does not automatically update the other.
- Keep the selected-item contract aligned between each list and its detail view. A list can still render while the detail view shows no selected mail or conversation if their state and data identifiers drift.
- Keep saved mail layout values compatible with the workspace layout contract. The standalone mail route restores this value before it renders the workspace.
- Review wide-screen and small-screen behavior together when changing either workspace shell. Mail changes its detail presentation on small screens. Chat changes its list, thread, and contact presentation.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The dashboard preview points to a stale standalone path. | The dashboard can show a blank or unrelated embedded page, and its full-screen action can open the wrong destination. | Treat the iframe source and new-tab link as one route contract in each dashboard preview page. |
| A selected mail or conversation ID does not match the supplied data. | The list can show a selection while the detail or thread view falls back to an empty state or the first conversation. | Keep the workspace state identifiers compatible with the corresponding mail and conversation data. |
| A saved mail layout value no longer matches the workspace layout contract. | The mail route can fail while restoring the layout instead of opening the workspace. | Keep the persisted layout shape compatible with the mail workspace configuration. |
| A standalone layout loses its full-height boundary. | The list, message view, or thread can clip or stop scrolling because the workspace relies on a bounded screen area. | Preserve the full-screen layout contract when changing route layouts or page wrappers. |
| The three-column chat assumptions are applied to small screens. | Users can lose access to the conversation list or contact panel on narrow devices. | Keep the mobile transitions and contact sheet behavior coupled to chat layout changes. |
Key files
| File | Why to read it |
|---|---|
| src/…/page.tsx | Shows the standalone mail entry point, full-screen boundary, and saved layout restoration. |
| src/…/layout.tsx | Shows how the mail-specific shell surrounds the page. |
| src/…/mail.tsx | Shows the mail list/detail relationship across screen sizes. |
| src/…/mail-sidebar.tsx | Shows account selection and mailbox navigation in the mail workspace. |
| src/…/mail-list.tsx | Shows how grouped messages connect to selected mail. |
| src/…/mail-view.tsx | Shows the message review, action, attachment, and reply surface. |
| src/…/page.tsx | Shows the standalone chat entry point and the conversation set passed into the workspace. |
| src/…/layout.tsx | Shows the chat header and navigation shell. |
| src/…/chat.tsx | Shows how the conversation, thread, and contact areas form one workspace. |
| src/…/chat-conversation-list.tsx | Shows conversation grouping, status views, and selection. |
| src/…/chat-thread.tsx | Shows the thread history and reply or internal-note surface. |
| src/…/page.tsx | Shows how the dashboard reaches the full mail workspace. |
| src/…/page.tsx | Shows how the dashboard reaches the full chat workspace. |
| src/…/sidebar-items.ts | Shows the dashboard navigation entries that lead to the previews. |