Dashboard experiences
The dashboard route family provides focused administrative and operational views. Each named destination answers a different work question, while the shared dashboard shell keeps navigation, search, account access, and display preferences consistent across the family.
Dashboard route family
The dashboard route family groups summary views and hands-on work surfaces under /dashboard. The dashboard index redirects to the explicit default dashboard rather than rendering an empty overview. Unknown dashboard paths use the framework's not-found handling.
The available destinations fall into related work areas:
| Work area | Destinations | Purpose |
|---|---|---|
| Analytics and commerce | Default, Analytics, Finance, Ecommerce, Invoice | Review business signals, money, store activity, and billing documents |
| Operations and work management | Logistics, Productivity, Kanban, Tasks, Calendar | Follow work, shipments, projects, tasks, and time |
| People and customer management | CRM, Users, Roles, Profile | Review customer work and manage people and access |
| Content and communication | Academy, File Manager, Mail, Chat | Support learning, files, email, and conversations |
| Specialized monitoring | Infrastructure, Patient Monitoring | Watch technical environments and patient status |
| Product catalog management | Products | Manage catalog details, inventory, pricing, and availability |
| Cryptocurrency portfolio monitoring | Crypto | Review holdings, market prices, exchange balances, profit and loss, and account activity |
| Human-resources operations | HR | Review workforce size, attendance, overtime, tenure, and hiring activity |
The detailed pages explain each group: analytics and commerce, operations and work management, people and customer management, content and communication views, specialized monitoring, product catalog management, cryptocurrency portfolio monitoring, and human-resources operations.
References: src/…/page.tsx• L1-5 src/…/page.tsx• L1-5 src/…/sidebar-items.ts• L65-172
Shared dashboard shell
The dashboard shell gives every dashboard page the same application frame. It places a navigation sidebar beside a header and a page content region, so users can change work areas without leaving the dashboard context. The frame also carries shared account actions, search, display controls, and links to project resources.
The shell also supports pages with different space needs. Full-bleed pages such as Kanban, Patient Monitoring, and Profile opt out when the work surface needs the full available area.
This diagram shows how the shared frame turns a dashboard URL into a focused work surface.
flowchart LR
A[Dashboard URL] --> B[Shared dashboard layout]
B --> C[Sidebar navigation]
B --> D[Header controls]
B --> E[Content region]
E --> F[Focused dashboard view]
F --> G[Inset page]
F --> H[Full-bleed page]
References: src/…/layout.tsx• L19-77 src/…/page.tsx• L12-17 src/…/page.tsx• L19-27 src/…/page.tsx• L29-32
Sidebar navigation
The sidebar is the primary map of the dashboard family. It groups destinations into Dashboards, Pages, Legacy, and Misc, and marks active paths so the current work area remains visible while users move between views. It keeps quick creation and inbox access near the top, then places support and the signed-in user menu in the footer.
The navigation includes direct links for current dashboards and grouped links for authentication and older versioned dashboard views. Parent groups open when a nested path is active. On smaller or collapsed layouts, grouped items change to a menu presentation without changing their destinations. The footer user menu provides account, billing, notification, and sign-out actions, while the support card provides a route to product feedback and custom-work contact details. The app sidebar applies the saved sidebar shape and collapse mode after preferences sync; before that point, it uses the layout defaults supplied by the shell.
References: src/…/app-sidebar.tsx• L26-59 src/…/nav-main.tsx• L85-175 src/…/nav-user.tsx• L18-92 src/…/support-card.tsx• L8-37 src/…/sidebar-items.ts• L140-241
Header controls
The header provides controls that apply across dashboard destinations. Users can open the sidebar, search available destinations, change layout preferences, switch theme mode, inspect repository links, and select the active user view. The account control also exposes account, billing, notifications, and sign-out actions.
Search uses the same navigation definitions as the sidebar. It groups destinations by their navigation area and excludes disabled or coming-soon entries from its initial recommendations. A selected internal item changes the dashboard route, while an explicitly external item opens in a new tab. The search dialog also supports the Ctrl/Cmd+J shortcut.
References: src/…/layout.tsx• L47-70 src/…/search-dialog.tsx• L33-70 src/…/search-dialog.tsx• L80-109 src/…/account-switcher.tsx• L19-94
Display preferences
Display preferences let each user shape the dashboard frame without changing the meaning of a page. The available choices cover theme preset, font, light or dark mode, centered or full-width content, sticky or scrolling header behavior, sidebar style, and sidebar collapse mode. Each control accepts only a supported preference value.
The shell restores sidebar state and reads saved display preferences when it loads. The sidebar uses its saved shape and collapse mode after the preference state is synchronized, while it keeps the shell's supplied defaults during initial loading. A reset action returns the preference set to its defaults, while the theme button offers a quick cycle through light, dark, and system modes. Sidebar shape and page width therefore remain user choices across dashboard destinations.
References: src/…/layout.tsx• L19-45 src/…/app-sidebar.tsx• L26-39 src/…/layout-controls.tsx• L16-76 src/…/layout-controls.tsx• L78-241 src/…/theme-switcher.tsx• L9-36
Dashboard view behavior
Named dashboard pages share the shell but keep their own work model. Some pages present a scan-friendly summary with cards and charts. Others provide tables, document review, a resizable work surface, or a live-looking monitoring screen.
The page entrypoint owns local view choices. Analytics and Finance expose tab groups whose later sections are marked as coming soon. File Manager supports grid and list views, while the invoice and monitoring pages focus on document actions and a full-screen operational surface. These choices refine one destination and do not replace the shared dashboard navigation.
When a requested dashboard path has no named page, the dashboard catch-all invokes the framework's not-found handling. This makes an unavailable section an explicit missing route instead of a blank work area.
References: src/…/page.tsx• L21-89 src/…/page.tsx• L23-102 src/…/page.tsx• L24-70 src/…/page.tsx• L14-38 src/…/page.tsx• L19-76 src/…/page.tsx• L1-5
Dashboard work areas
The dashboard family is best understood by the decision each area supports. Use the child pages for the full view of each group.
Analytics and commerce views
These views connect business measures to the activity behind them. Analytics follows traffic and conversion signals through an overview plus planned audience, acquisition, engagement, and conversion sections. Default provides a broad business snapshot. Ecommerce follows store demand, products, stock, reviews, and orders. Finance follows money position and movement, while Invoice turns billing inputs into a document that can be saved or sent.
Read Analytics, finance, and commerce dashboards for these views.
References: src/…/sidebar-items.ts• L70-105 src/…/page.tsx• L13-19 src/…/page.tsx• L21-89 src/…/page.tsx• L23-95 src/…/page.tsx• L23-102 src/…/page.tsx• L14-38
Operations and work management views
These views support work that changes over time. Logistics follows shipments from origin to destination and lets a selected shipment drive a route and detail view. Productivity brings projects, tasks, notes, focus, and calendar context together. Kanban organizes work across movable board columns and task cards. Tasks provides a searchable, filterable, selectable task list with paging. Calendar places shared events on a time view.
Read Operations and work management dashboards for these views.
References: src/…/sidebar-items.ts• L95-117 src/…/page.tsx• L1-15 src/…/page.tsx• L19-45 src/…/page.tsx• L12-17 src/…/page.tsx• L12-21 src/…/page.tsx• L1-12
People and customer management views
These views center on people, customer relationships, and access. CRM follows opportunities, pipeline activity, reminders, meetings, and proposal progress. Users supports search and review of identity, team, workspace, status, and activity information. Roles groups access records by role group and supports paging. Profile gives an individual record a focused place for personal and work details, with restricted compensation information for authorized roles.
Read People and customer management dashboards for these views.
References: src/…/sidebar-items.ts• L76-81 src/…/sidebar-items.ts• L181-197 src/…/page.tsx• L14-21 src/…/page.tsx• L1-13 src/…/page.tsx• L1-13 src/…/page.tsx• L29-113
Content and communication views
These views support shared knowledge and direct contact. Academy summarizes teaching activity and learner progress through class performance and student achievement. File Manager organizes workspace files in grid or list form and lets users mark files as starred. Mail and Chat appear inside the dashboard as preview surfaces for their fuller standalone workspaces.
Read Content and communication dashboard views for these views.
References: src/…/sidebar-items.ts• L107-111 src/…/sidebar-items.ts• L125-159 src/…/page.tsx• L18-65 src/…/page.tsx• L28-71 src/…/page.tsx• L15-33 src/…/page.tsx• L15-33
Specialized monitoring views
These views serve focused monitoring work that does not fit a general summary. Infrastructure groups project environments for technical review, including health, latency, uptime, resource use, and actions such as logs, console access, sync, and alerts. Patient Monitoring presents patient selection, alarms, vital values, waveforms, event review, and trends in a full-bleed surface.
Read Specialized monitoring dashboards for these views and for the behavior of legacy dashboard variants and the dashboard fallback.
References: src/…/sidebar-items.ts• L113-136 src/…/page.tsx• L16-27 src/…/page.tsx• L19-76 src/…/layout.tsx• L1-14
Product catalog management views
The Products view supports day-to-day catalog work in one focused surface. It presents products with their SKU, category, status, stock, price, and sales, then lets users search, filter, select, page through, edit, or duplicate entries.
The view also supports product creation. A new product can include descriptive details, pricing, stock, availability, and optional images, while validation keeps the catalog data within the supported business rules. These changes are session-local demo changes rather than a persistent catalog update.
Read Product catalog management for this view.
References: src/…/page.tsx• L6-27 src/…/products.tsx• L19-140 src/…/products-table.tsx• L35-199 src/…/product-form.tsx• L21-170 src/…/add-product-drawer.tsx• L27-275 src/…/product-images-field.tsx• L22-141
Cryptocurrency portfolio monitoring views
The Crypto view gives portfolio owners one place to review holdings and market movement. It combines asset balances with a selectable price view so a user can compare current prices with average buy prices across several time ranges.
The view also supports operational review of the portfolio. Exchange allocation shows where value is held, the exchange panel estimates asset swaps with a fee and balance check, monthly profit and loss summarizes realized results, and account activity supports time-range filtering, search, and paging. The page offers USD as the active display currency and presents wallet connection as the main account action.
Read Cryptocurrency portfolio monitoring for this view.
References: src/…/page.tsx• L23-60 src/…/portfolio-holdings.tsx• L14-71 src/…/price-chart.tsx• L154-287 src/…/exchange-allocation.tsx• L15-94 src/…/exchange-card.tsx• L121-210 src/…/monthly-pnl.tsx• L22-76 src/…/account-activity.tsx• L33-215
Human-resources operations views
The HR view supports a workforce snapshot for administrative review. It brings together employee totals, hiring and leave signals, attendance, overtime, tenure, age-group distribution, and the active hiring pipeline in one work surface.
The page also provides department and time-period controls for focused review. An add-employee action connects the overview to day-to-day workforce administration, while the charts show the current staffing and hiring picture at a glance.
Read Human-resources operations for this view.
References: src/…/page.tsx• L24-63 src/…/data.ts• L3-112 src/…/kpi-cards.tsx• L5-27 src/…/attendance-overview.tsx• L36-115 src/…/overtime-overview.tsx• L36-145 src/…/employee-tenure.tsx• L17-53 src/…/gender-distribution.tsx• L22-77 src/…/hiring-pipeline.tsx• L19-74
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the shared sidebar destination definitions aligned with route entrypoints. Search derives its destinations from the same definitions, so a route added outside that source becomes harder to find or cannot be reached by search.
- Keep dashboard links aligned with named page entrypoints and the external root redirect. The dashboard index is not the default work view.
- Keep full-bleed page behavior aligned with the content region contract. Changes to padding or header height affect Kanban, Patient Monitoring, and Profile directly.
- Keep active-path matching aligned with grouped navigation. A nested route must keep its parent group open and its current item marked active.
- Keep the sidebar's fallback props aligned with the saved preference values. The initial frame must remain usable before preference synchronization completes.
- Keep preference names and allowed values aligned between the shared shell, preference controls, and saved preference state. A control that accepts a value outside the preference registry can make the frame load inconsistently.
- Keep local view controls aligned with the data they describe. File views must preserve the same file actions, and task filters must reset paging when their result set changes.
- Keep product fields aligned across the product table, edit form, and add-product flow. Category, status, SKU, price, stock, and image rules must not drift between entry points.
- Keep product edits, duplication, and filters aligned with the session-local catalog state. A changed row must remain visible under the current table and filter rules.
- Keep monitoring selection, alarm acknowledgement, waveform, and trend views aligned around the same patient record.
- Keep crypto asset symbols, balances, prices, and average buy prices aligned across holdings, price charts, exchange estimates, and activity labels.
- Keep crypto portfolio totals aligned with exchange allocation values and the percentages shown in the allocation view.
- Keep crypto chart ranges and selected assets aligned with the generated market series and its latest-price and average-buy-price markers.
- Keep crypto activity filters aligned with pagination state. Search and time-range changes must return the user to a valid result page.
- Keep HR route, navigation, and child-page links aligned when the workforce view changes its URL or work area.
- Keep HR summary metrics and workforce charts aligned with the same department and time scope.
- Keep child-page links aligned with the dashboard groups when a destination changes its route or work area.
- Keep legacy dashboard metadata and unknown-route handling aligned with the intended indexing and not-found behavior.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
The root entry points to /dashboard instead of /dashboard/default | Users reach the dashboard redirect path instead of the general snapshot | Keep the external entry pointed at the named default destination |
| A dashboard route is added without a matching sidebar or search item | Users may reach the page only through a direct URL | Update the shared navigation source when a dashboard destination becomes available |
| A page needs edge-to-edge space but does not opt out of content padding | The work surface has an unwanted inset and can lose usable space | Preserve the full-bleed content contract for pages such as Kanban and Patient Monitoring |
| A navigation item uses a stale or overlapping path | Active state and submenu state can point to the wrong destination | Match each item to one named route and review parent-prefix matching |
| A search result remains enabled for an unavailable destination | Search offers a route that only shows a disabled or coming-soon surface | Keep disabled and coming-soon entries out of available recommendations |
| The sidebar applies saved shape or collapse values before preference synchronization completes | The frame can switch layout during initial load or use an invalid value | Use the shell defaults until the preference state is synced |
| A saved layout preference no longer matches the allowed preference values | The shell can load with an invalid display mode or fall back inconsistently | Keep stored preference values and control options under the same contract |
| A task filter changes the result set without resetting the current page | The task view can show an empty page even when matching rows exist | Reset task paging when search, status, or priority filters change |
| File grid and list views update separate local file state | A star change can appear in one view but not the other | Keep both representations under the same file-state contract |
| A product form accepts fields that the table or duplicate flow cannot represent | Catalog rows can lose data or show inconsistent values after an edit | Keep product shape and field rules shared across all product entry points |
| A product SKU is duplicated or a price or stock value is invalid | The catalog can contain ambiguous records or unusable inventory data | Validate unique SKU, non-negative price, and whole-number stock before saving |
| A patient alarm is acknowledged without the selected patient state changing with it | The alarm badge and detail view can disagree | Keep patient selection and acknowledgement keyed by the patient record |
| A crypto asset is removed or renamed in the shared asset set but remains in a holding, chart, exchange, or activity record | A portfolio card, selector, or activity row can show incomplete data | Keep every crypto view keyed to the same supported asset symbols |
| Portfolio holdings and exchange allocation use different balances | The total portfolio value and exchange percentages do not describe the same portfolio | Reconcile portfolio totals and exchange values before presenting allocation data |
| A crypto activity filter changes without resetting its page | The table can show no rows even when matching activity exists | Reset activity pagination when the search text or time range changes |
| An exchange estimate accepts an invalid amount or an amount above the selected balance | The displayed receive amount or fee estimate is not usable | Keep amount validation and balance checks in the exchange flow |
| HR summary cards and charts use different workforce scopes | Staff totals and workforce trends can tell different stories on one page | Apply the same department and period scope to all HR views |
| An unknown dashboard path bypasses the dashboard catch-all | The route may not use the intended framework not-found experience | Keep the dashboard fallback route in the dashboard route family |
Key files
| File | Why to read it |
|---|---|
| src/…/layout.tsx | Defines the shared shell, header, content region, sidebar state, and display preference boundary. |
| src/…/app-sidebar.tsx | Assembles the sidebar frame and applies saved sidebar layout values after preference synchronization. |
| src/…/sidebar-items.ts | Defines the dashboard destinations and their visible navigation groups. |
| src/…/nav-main.tsx | Shows active-path handling and the responsive behavior of grouped navigation. |
| src/…/nav-user.tsx | Shows the user menu shared by the sidebar footer. |
| src/…/support-card.tsx | Shows the support and product-feedback entry point in the sidebar footer. |
| src/…/search-dialog.tsx | Shows how shared navigation becomes a searchable destination list. |
| src/…/account-switcher.tsx | Shows the account menu that applies across dashboard work areas. |
| src/…/layout-controls.tsx | Shows the user-facing display preferences that shape the shared frame. |
| src/…/page.tsx | Shows that the dashboard index redirects to the default view. |
| src/…/page.tsx | Illustrates the broad snapshot style used by one dashboard destination. |
| src/…/page.tsx | Defines framework not-found handling for unknown dashboard paths. |
| src/…/layout.tsx | Defines the indexing policy for legacy dashboard routes. |
| src/…/page.tsx | Illustrates a focused dashboard with local tabs and an overview flow. |
| src/…/page.tsx | Illustrates shipment tracking as an operations dashboard entry point. |
| src/…/page.tsx | Illustrates the full-bleed board model for moving work across columns. |
| src/…/page.tsx | Illustrates a task work list with local table controls. |
| src/…/page.tsx | Illustrates the customer opportunity dashboard entry point. |
| src/…/page.tsx | Illustrates file browsing with grid and list views. |
| src/…/page.tsx | Illustrates environment health review and technical actions. |
| src/…/page.tsx | Illustrates patient selection, alarm controls, and full-screen review. |
| src/…/page.tsx | Defines the catalog management entry point and its create-product action. |
| src/…/products.tsx | Shows product search, filters, local edits, duplication, and table state. |
| src/…/product-form.tsx | Shows the product edit and save flow for catalog records. |
| src/…/add-product-drawer.tsx | Shows the product creation fields and validation boundary. |
| src/…/page.tsx | Defines the cryptocurrency portfolio overview and its major work areas. |
| src/…/data.ts | Defines the shared assets, portfolio values, exchange allocations, activity records, and chart ranges used by the Crypto view. |
| src/…/portfolio-holdings.tsx | Shows the portfolio balance and per-asset holding summaries. |
| src/…/price-chart.tsx | Shows asset and time-range selection with current and average-buy price context. |
| src/…/exchange-card.tsx | Shows the asset exchange estimate, fee, and balance validation flow. |
| src/…/exchange-allocation.tsx | Shows how portfolio value is distributed across exchanges. |
| src/…/monthly-pnl.tsx | Shows monthly realized profit and loss. |
| src/…/account-activity.tsx | Shows searchable and time-filtered account activity with paging. |
| src/…/page.tsx | Defines the human-resources overview and its workforce review actions. |
| src/…/data.ts | Defines the workforce measures and periods shown by the HR view. |
| src/…/kpi-cards.tsx | Shows the top-level workforce summary presented to HR users. |
| src/…/attendance-overview.tsx | Shows attendance trends with a time-period choice. |
| src/…/overtime-overview.tsx | Shows overtime totals by approval state and period. |
| src/…/hiring-pipeline.tsx | Shows candidates across the hiring stages. |