Back to Playbook
Act 1: First Contact

5. First Dashboard & Company Context

First Dashboard & Company Context screen
See it live

Story

Sarah is now logged in. Since she is the owner of exactly one company, the system skips the company selector and sends her straight to the admin dashboard.

She sees an overview: employee count, pending leaves, today's attendance, upcoming holidays, and quick-action buttons to add employees, configure settings, and run payroll. A banner reminds her that she is on a 14-day trial.

Getting Around

Ways to move through the app, and all respect what her role and plan allow:

Because the launcher, sidebar, pins and recents are all built from the same RBAC-filtered menu, they never show a page the user cannot actually open — a pin to a page a user later loses access to simply stops appearing.

  • Search and page launcher. The magnifier in the top bar — or ⌘K / Ctrl+K — opens a launcher of every page Sarah can reach, with a search box inside it. She types a page name and jumps straight there without hunting through menus. The rest of the top bar is small: the lightbulb opens help (with the Tour and Shortcuts at the foot of that panel), her account menu holds the light/dark theme switch, and the bell shows notifications.
  • Sidebar. The full menu is still there, but groups now stay collapsed until opened and remember that choice per person, so a busy admin sees only the sections they use. Larger areas like Payroll are organised into nested submenus rather than one long flat list.
  • Guide. Right under Dashboard in the HRM menu sits a Guide row. It opens the full HRM manual inside the app (/admin/guides/hrm), so Sarah can read how a screen works without leaving her work.
  • Pinned & Recent. Hovering any page — in the sidebar or the launcher — reveals a pin; pinned pages sit in a Pinned list at the top of the sidebar, and a collapsed Recent list remembers the last handful of pages visited. Both are saved per person on the device, so each user shapes the nav around their own ~10 daily routes without changing anyone else's.

Happy Path

  • Single company: auto-redirect to role-appropriate dashboard
  • Multiple companies: show the company selection page, user picks one, context is set, redirect to dashboard
  • Context cookie stores the active company ID, roles, and permissions for all subsequent requests

Failure Modes

FailureWhat the user seesWhat happens next
No companies found for userError page with contact supportAdmin must assign user to a company
Company subscription expired"Subscription expired, renew to continue"User is directed to billing page
User role not foundFallback to base access or errorAdmin must assign a role

Edge Cases

ScenarioBehaviorWhy
Same role in multiple companiesSelect company, then same dashboard typeConsistent experience per role
Different roles across companiesDashboard adapts to the role in the selected companyAccess is scoped per company context