Docs/Structure
Structure
Where the routes, components, providers and data live, so you know which file to open for any change.
Folders
Routes
Pages live under src/app. The app screens share one shell through the (crm) route group; sign-in screens share the (auth) group.
| Route | Screen |
|---|---|
| / | Agents |
| /customers, /customers/[id] | Customer table, list, kanban and profile |
| /contracts, /contracts/[id] | Contracts by status and the contract page |
| /messages | Inbox and threads |
| /balances, /transactions | Receivables and payments |
| /workflows/[id] | Workflow builder |
| /login, /register, /forgot | Sign in, sign up and password reset |
State and data
Seed data lives in src/lib/data. Each module has a provider in components/providers that holds its records and exposes actions like reply, createContract or updateProfile. Components only read from providers, which makes them the one place to call your API.