Knowledge Base updated: 2026-11-22
Knowledge Base
Orientation
This repository is a Next.js admin-dashboard application built around route groups for a public/external landing experience and authenticated main application experiences.
Dashboard routes provide focused operational views, with reusable layout, navigation, UI primitives, preferences, and configuration services shared across the application.
Client-side preference state governs theme and layout behavior. Route composition and navigation definitions provide the main structural boundaries between experiences.
Architecture
flowchart TD
App[Next.js app]
External[External route group]
Main[Main route group]
Shell[Global layout and styles]
Dashboard[Dashboard layout]
Auth[Authentication entrypoints]
Dashboards[Dashboard experiences]
Workspaces[Collaboration workspaces]
Preferences[Personalization system]
Services[Shared application services]
UI[UI foundation]
Navigation[Sidebar navigation]
App --> Shell
App --> External
App --> Main
Main --> Dashboard
Main --> Auth
Main --> Workspaces
Dashboard --> Dashboards
Dashboard --> Navigation
Dashboards --> UI
Workspaces --> UI
Dashboard --> Preferences
Preferences --> Services
Navigation --> Services
UI --> Services
Glossary
- External route group: The route-group boundary used for the landing experience outside the main application shell.
- Main route group: The application route-group boundary containing dashboard, authentication, and standalone workspace destinations.
- Dashboard experiences: The family of administrative and operational routes rendered within the dashboard layout.
- Preferences store: Client-side state and persistence machinery for theme and layout selections.
- Sidebar navigation definitions: Shared navigation metadata used to expose application destinations in the dashboard sidebar.
Invariants
- External and main experiences remain separated through Next.js route groups under
src/app/(external)/**andsrc/app/(main)/**. - Dashboard destinations use the shared dashboard layout and navigation composition under
src/app/(main)/dashboard/**. - Sidebar-visible routes are represented in src/…/sidebar-items.ts and rendered through the dashboard sidebar components.
- Theme and layout choices are managed through the personalization system rather than being independently owned by individual dashboard pages.
- Reusable visual building blocks belong in shared UI/component layers (
src/components/**and UI primitive paths), not duplicated per route.
Routing table
- src/…/layout.tsx, src/…/globals.css,
src/app/(external)/**,src/app/(main)/**-> docs/application-shell.md src/app/(external)/**, src/…/layout.tsx, src/…/layout.tsx, src/…/page.tsx -> docs/route-composition.mdsrc/app/(main)/auth/**,src/app/(main)/unauthorized/**-> docs/authentication-entrypoints.mdsrc/app/(main)/dashboard/**,src/app/(main)/dashboard/_components/sidebar/**, src/…/sidebar-items.ts -> docs/dashboard-experiences.mdsrc/app/(main)/dashboard/analytics/**,src/app/(main)/dashboard/default/**,src/app/(main)/dashboard/ecommerce/**,src/app/(main)/dashboard/finance/**,src/app/(main)/dashboard/invoice/**-> docs/dashboard-analytics-and-commerce.mdsrc/app/(main)/dashboard/tasks/**,src/app/(main)/dashboard/kanban/**,src/app/(main)/dashboard/logistics/**,src/app/(main)/dashboard/infrastructure/**,src/app/(main)/dashboard/file-manager/**,src/app/(main)/dashboard/productivity/**-> docs/dashboard-operations-and-work-management.mdsrc/app/(main)/dashboard/users/**,src/app/(main)/dashboard/roles/**,src/app/(main)/dashboard/profile/**,src/app/(main)/dashboard/crm/**-> docs/dashboard-people-and-customer-management.mdsrc/app/(main)/dashboard/academy/**,src/app/(main)/dashboard/calendar/**,src/app/(main)/dashboard/chat/**,src/app/(main)/dashboard/mail/**,src/app/(main)/dashboard/coming-soon/**-> docs/dashboard-content-and-communication-views.mdsrc/app/(main)/dashboard/patient-monitoring/**, src/…/not-found.tsx,src/app/(main)/dashboard/legacy/**-> docs/dashboard-specialized-monitoring.mdsrc/app/(main)/dashboard/products/**-> docs/dashboard-product-catalog.mdsrc/app/(main)/dashboard/crypto/**-> docs/dashboard-crypto.mdsrc/app/(main)/dashboard/hr/**-> docs/dashboard-human-resources.mdsrc/app/(main)/mail/**,src/app/(main)/chat/**-> docs/collaboration-workspaces.mdsrc/app/(main)/mail/**-> docs/mail-workspace.mdsrc/app/(main)/chat/**-> docs/chat-workspace.mdsrc/store/**,src/providers/**,src/hooks/**,src/lib/theme/**-> docs/personalization-system.mdsrc/store/**,src/lib/theme/**,src/lib/preferences/**,src/styles/**-> docs/preferences-and-theme-runtime.mdsrc/components/**,src/components/ui/**-> docs/ui-foundation.mdsrc/components/ui/**,src/components/date-range-picker/**,src/hooks/**,src/components/calendar/**-> docs/ui-components-and-display-helpers.mdsrc/lib/**,src/navigation/**,src/data/**,src/actions/**,src/fonts/**-> docs/shared-application-services.md- src/…/app-icon.tsx,
src/navigation/sidebar/**,src/config/**,src/data/**,src/actions/**,src/fonts/**-> docs/shared-configuration-and-utilities.md