The CRM dashboard
What the Closeline dashboard holds: its pages, workspaces, the Admin, Manager and Member roles, the permission matrix, the team and the users pages.
For the Full Stack package
Pages
Every page exists in English under /en and in Arabic under /ar. The dashboard opens at /en/dashboard after the sign-in at /en/auth/signin; sign-up, password recovery and accepting an invitation have their own pages.
| Sidebar item | Path | What it does |
|---|---|---|
| Overview | /en/dashboard | The open pipeline, the forecast against a month ago, revenue won, the win rate, revenue by month, the deals that need attention, the deals closing soon and today's activities. |
| Pipeline | /en/dashboard/pipeline | Every open deal by stage, on a board or in a list, and the won, lost and archived deals. Each deal opens on its own page. |
| Contacts | /en/dashboard/contacts | Contacts and companies, with CSV import and export. |
| Activities | /en/dashboard/activities | Calls, meetings, tasks and emails, by week or in a list. |
| Reports | /en/dashboard/reports | The forecast, revenue, open value by stage and each owner's figures, with CSV export. |
| AI assistant | /en/dashboard/ai-assistant | A chat about the workspace's pipeline, forecast and follow-ups. |
| Team | /en/dashboard/admins-management | Members and invitations, and the Roles page with the permission matrix. |
| Settings | /en/dashboard/settings | Workspace details and pipeline stages, your preferences, integrations and billing. |
| Help | The website's /blog | Opens the website's guides, at NEXT_PUBLIC_WEBSITE_URL. |
The workspace menu in the top bar switches between your workspaces and opens the pages that have no sidebar row: Projects (delivery projects started from won deals), Users (the installation's accounts, for platform staff) and UI components (the component library). The top bar also holds the search, which finds deals, contacts and companies as you type, and the bell, which shows what changed in the workspace since you last looked.
The dashboard is never indexed by search engines.
Workspaces
- Every CRM record belongs to one workspace. A new account made on the sign-up page creates a workspace of its own, on a 14-day trial of the plan chosen on the website (Starter when none was chosen), where it is the Admin.
- An account joins another workspace through an invitation, and can belong to several. The next sign-in opens the workspace it used last.
- Each workspace has its own currency label, timezone, pipeline stages, roles and plan.
- The sample workspace, Studio Sales, is read on a fixed clock, Monday 21 September 2026 at 08:00 UTC, so "today", "this month" and "idle 6 days" give the same figures on any day. A workspace you create runs on the real clock.
Admin, Manager and Member
| Role | What it can do | Sample account |
|---|---|---|
| Admin | Everything: every deal, contact, activity, report and project, the assistant, the team and invitations, roles, workspace settings and billing. Cannot be edited. | demo@closeline.example |
| Manager | Every deal, contact, activity and project, the reports and the assistant; reads the team, the workspace settings and billing | manager@closeline.example |
| Member | Their own deals, contacts, activities and projects, their own figures in the reports, the assistant and their own preferences; no team, workspace settings or billing | member@closeline.example |
- A permission is a resource and an action, such as
deals.view. The resources are deals, contacts, activities, reports, the assistant, team members, workspace settings, roles, projects and billing; the actions are view, create, edit and delete, plus view own and edit own, which narrow a resource to the records a person owns. Billing offers view and edit only. - With an own-records grant, lists, totals, reports and search hold only that person's records, and anyone else's record answers as if it did not exist.
- The sidebar and the search leave out what a role cannot use, and a page opened by its address says "This action needs a different role." The API checks every permission on every request, whatever the screen shows.
- A person grants only what their own role holds, and the last Admin of a workspace cannot be moved to another role or removed.
The team and the roles matrix
- Members lists the workspace's people with their role and status; each opens on their open deals, pipeline, forecast and what is coming up. Change role and remove are in each row.
- Invite member takes an email and a role, and shows what that role can do. The invitation link works for seven days and is mailed to the address (or written to the API's log without mail). Invitations has its own tab, with resend and cancel.
- Roles shows the matrix of every role against every permission. On the Team and Scale plans an Admin edits the Manager, the Member and any role they add, and on Scale an Admin adds roles of their own; a new role starts with the Member's grants. Recent role changes lists who was added or moved, and by whom.
- A change of role reaches an open dashboard at once, without a reload.
What the plan decides
Four features depend on the workspace's plan, and the dashboard says so before anyone tries one: where the plan lacks it, a notice names the plan that has it, such as "Custom roles are on the Scale plan.", with See plans in Billing for a role that sees billing and "An Admin can change the plan." for anyone else.
| Feature | Plans | Where the plan lacks it |
|---|---|---|
| The AI assistant | Team, Scale | The assistant page shows the notice instead of the chat |
| The weighted forecast | Team, Scale | The overview's Forecast figure, the reports' Weighted forecast tile and a member's forecast show the notice; the reports' team table has no forecast column |
| Editing a role's permissions | Team, Scale | The Roles matrix is read-only under the notice |
| Custom roles | Scale | The notice takes the place of New role |
Roles made on a larger plan, and their grants, keep working after a move to a smaller one: they stay listed, assigned and deletable. The Billing tab lists what the plan includes and what the next plan adds.
Settings
| Tab | What it holds | Who sees it |
|---|---|---|
| Workspace | The workspace's name, website, currency label, timezone, monthly revenue target and description, and the pipeline stages | Admin edits; Manager reads |
| Preferences | Your name, email and phone, your password, the theme (light, dark or system) and the language | Everyone |
| Integrations | Six cards that say what is built: CSV import opens the importer; Email, Calendar, Webhooks, API and Notifications show Not connected, and their Details say what works today instead | Admin and Manager |
| Billing | The plan, the trial, the users, the next charge, what the plan includes and what the next plan adds, and the invoices | Admin manages; Manager reads; Member has no tab |
The currency is a label: amounts already saved are never converted, and money is always formatted as US dollars.
The Monthly revenue target is a whole amount, typed without commas or decimals. It draws the dashed target line on the overview's revenue chart; empty or 0, as a new workspace starts, draws none.
| Integrations card | What this version does |
|---|---|
| CSV import | Built: imports contacts, with their companies, from a CSV file |
| Sending works: invitations, password resets and billing notices go out through the mail server in the API's SMTP settings. Inbox sync is not built: no mailbox is read | |
| Calendar | Calendar sync is not built. A meeting added as an activity on its deal shows on the Activities calendar |
| Webhooks | Outgoing webhooks are not built. The API takes one webhook, Stripe's, which records renewals and failed payments |
| API | The API serves the dashboard and the website for people who sign in. Access tokens for another app are not built |
| Notifications | The bell lists the workspace's latest changes your role may see. Alerts to email or a chat app are not built |
The users pages and platform staff
Beside the workspace roles, an account may hold a platform role, which belongs to the installation rather than to a workspace. The seed gives Lena Stone (demo@closeline.example) the Platform admin role.
| Platform role | What it can do |
|---|---|
| Platform admin | Every platform permission: the users pages, and the API's staff, platform roles and platform settings routes |
| Support | Reads every account, staff member, role and setting |
- Users (
/en/dashboard/users) lists every account on the installation with its workspaces, its platform role and its status. A Platform admin creates, edits, changes the password of, deletes and restores accounts; deleted ones have their own tab. The only Admin of a workspace cannot be deleted. - An account's page shows its platform access and the API route that sets it,
PATCH /api/admins/<id>/roleswith that account's id. Open Team opens the Team page of the workspace you are in, where its Admin changes workspace roles. - Platform roles, the staff and the platform settings have no page in the dashboard. A Platform admin changes them through the API with their sign-in token, and each route needs the platform permission named below.
| To | Route and body |
|---|---|
| Add a staff account | POST /api/admins (admins.create): first_name, last_name, email, password and password_confirmation, 6 characters or more |
| Give an account a platform role | PATCH /api/admins/<id>/roles (admins.assign_roles) with {"role_ids": [2]}, the ids from GET /api/roles/select. {"role_ids": []} makes it a plain account again |
| Add a platform role | POST /api/roles (roles.create) with {"name": "Billing desk"} |
| Choose a role's permissions | POST /api/roles/<id>/permissions (roles.assign_permissions) with the full list it holds afterwards, such as {"permissions": ["users.view", "settings.view"]}. GET /api/roles/permissions lists them all |
| Rename or remove a role | PUT /api/roles/<id> (roles.edit) with a new name; DELETE /api/roles/<id> (roles.delete) for a role no account holds |
- You can grant only roles and permissions you hold yourself.
- Running
yarn seedagain gives the two built-in roles, Platform admin and Support, their original permissions back; a role you add keeps its own.
How the dashboard's code fits together
Included with your purchase. Sign in to read, or open it in your download.
The dashboard's folders, how a screen gets its data, how permissions are checked in the code, and how to add a page.