Navigation and layout
The signed-in app shell, including the sidebar, topbar, global search, profile menu, theme, app tour and error page.
Where it lives
| Piece | File | Access |
|---|---|---|
| Shell around every agent and landlord page | src/layouts/RootLayout.tsx, src/components/app-shell.tsx | signed-in, agent or landlord |
| Sidebar and mobile drawer | src/components/sidebar.tsx, src/hooks/use-sidebar-collapsed.ts | signed-in |
| Topbar and profile menu | src/components/topbar.tsx | signed-in |
| Global search | src/components/global-search.tsx, src/hooks/use-global-search-items.ts, src/lib/global-search.ts | signed-in, agent or landlord |
| Theme | src/components/theme-provider.tsx, src/components/theme-toggle.tsx | everyone |
| App tour | src/components/tour/app-tour.tsx, src/components/tour/tours.ts | signed-in |
| Error page | src/error-page.tsx | everyone |
The shell wraps every route listed under appRoutes in src/routes/protected.routes.tsx. /onboarding and the /auth/* pages do not use it.
Before you start
- Signed in as an agent or landlord. A lawyer who opens any of these routes is redirected to
/legal, which uses the same shell in "lawyer mode" with a different menu.
Flow
Page structure
From top to bottom, a page in the shell is made of:
- The sidebar (fixed on the left from the
lgbreakpoint; a drawer behind a hamburger button below it). - The onboarding banner, for agents who are not KYC verified. See Onboarding and KYC.
- The topbar, which sticks to the top while scrolling.
- The page itself.
Sidebar
Agents and landlords get the same menu.
| Group | Label | Goes to |
|---|---|---|
| Menu | Dashboard | / |
| Menu | Listings | /listings |
| Menu | Legal | /legal-team |
| Menu | Bookings | /bookings |
| Menu | Requests | /requests |
| Menu | Messages | /messages |
| Menu | Analytics | /analytics |
| Menu | Earnings | /earnings |
| General | Settings | /settings |
| General | Help | /help |
| General | Logout | /auth/signin |
- The current section is highlighted. Dashboard only highlights on exactly
/; the others also highlight on their sub-pages (for example Listings on/listings/create). - The chevron at the top of the panel collapses the sidebar to icons ("Collapse sidebar" / "Expand sidebar"). The choice is saved in
localStorageunderhl_sidebar_collapsed. Collapsed items show their label as a tooltip. - Below
lgthe sidebar is hidden. A header with a hamburger button ("Open navigation") and the logo appears instead, and the menu opens as a left drawer. Picking an item, or any other route change, closes the drawer. The drawer always shows full labels.
Sidebar Logout is only a link
/auth/signin without calling the API or clearing the session. The profile menu's Logout is the one that signs out. See Sign in and password reset.Topbar
Left side: a greeting, "Good Morning" before 12:00, "Good Afternoon" before 17:00, otherwise "Good Evening", followed by the user's first name (or "there").
The engagement line is static
topbar.tsx; it is not read from the API.Right side, in order:
| Control | Behaviour |
|---|---|
| Search box (or a search icon on small screens) | Global search, described below |
| Sun or moon icon | Switches between light and dark mode |
| Bell | Marks every stored notification as read, clears the badge and opens /notifications. The red badge shows the unread count, or "99+" |
| Add Property (a plus icon only on small screens) | Opens /listings/create |
| Avatar, name and email | Opens the profile menu |
The topbar is hidden on exactly /help, where the help hero takes its place. It is shown on help category and article pages.
Profile menu
| Item | Action |
|---|---|
| Name and email | Display only, read from the stored user |
| Account | /settings |
| Contact Support | /help |
| Replay App Tour | Goes to / and runs the tour again |
| Logout | POST /api/v1/auth/signout, clear the session, go to /auth/signin |
The avatar shows the user's photo, or their initials on an orange tile.
Global search
- Click the box or press Ctrl+K (Cmd+K on a Mac). On small screens tap the search icon, which opens the same search in a dialog.
- On first focus the app loads the user's own data, once:
GET /api/v1/property/me?page=1&limit=100GET /api/v1/inspection/agent/requestsGET /api/v1/booking/landlord/payment-requestsGET /api/v1/chat/roomsGET /api/v1/legal/partners
- With nothing typed, the list is headed "Quick links": Add property, Listings, Requests, Messages, Earnings, Withdraw to bank.
- Typing filters everything, grouped as Pages, Actions, Listings, Clients & requests, Messages, Legal team, Settings and Help, with at most five results per group. Matched text is highlighted.
- Up and Down move the highlight, Enter opens it, Escape clears the query and then closes the list.
| Result type | Opens |
|---|---|
| A listing | /listings/:id |
| An inspection or payment request | /requests/:id or /payment-requests/:id |
| A conversation | /messages?room=ROOM_ID |
| A partner lawyer | /legal-team/:id |
| A settings section | /settings?section=NAME |
| A help topic, article or FAQ | /help/category/:categorySlug or /help/article/:articleSlug |
| "Switch theme" | Toggles light and dark |
| "Replay app tour" | Restarts the tour |
| "Log out" | Signs out through the API |
While the data loads a line reads "Searching your listings and clients…". With no result it reads "No matches for" followed by the query. The two agent-only settings entries (Inspection availability, Inspection fee) are hidden from landlords.
Theme
The default is light. The toggle writes light or dark to localStorage under vite-ui-theme and applies it as a class on the page root. It is per browser; it is not saved to the account.
App tour
A first-visit walkthrough that spotlights parts of the shell.
- It starts about a second after the user first reaches
/, once the agent intro dialog (if any) has been closed. - Each card shows "Step N of M", a title and a sentence, with Skip tour, Back and Next (the last card says Get started). Escape skips; the Left and Right arrow keys move between steps. Nothing underneath can be clicked while it runs.
- Steps whose target is not on screen are left out. On desktop the sidebar items are shown; on small screens the single "Everything in one menu" step points at the hamburger instead.
- Finishing or skipping records the tour as seen in
localStorageunderhl_tours_seen, keyed by tour and user id, so a second account in the same browser still gets its own tour. Signing out does not reset it.
Steps for agents and landlords, in order: Stay in the loop (bell), List a property (Add Property), Manage listings, Your legal team, Bookings and inspections, Requests, Talk to clients, Track your earnings, Everything in one menu (mobile), Your account and help (profile menu).
Replay App Tour is available from the profile menu, global search and the Help page.
Error page
Unknown URLs and render errors show a full-screen page with the logo and a warning icon.
| Case | Title | Text |
|---|---|---|
| 404 | "Page Not Found" (with the status code above it) | "The page you're looking for doesn't exist or has been moved." |
| Anything else | "Something Went Wrong" | "An unexpected error occurred. Please try again or go back home." |
Buttons: Go Back (browser history) and Go Home (/).
States and edge cases
- Unread badge. It is recalculated when a new notification arrives and when another tab changes storage.
- Search before data arrives. Static results (pages, actions, settings, help) work immediately; the user's own listings and requests appear when their requests finish.
- Search finds at most 100 listings, because one page of 100 is loaded.
- No stored user. The topbar falls back to "Guest", a "?" avatar and "Good Morning, there". In practice
ProtectedRouteredirects before this can be seen. - Tour on a slow page. The tour waits up to about five seconds for its first target to appear before starting with whatever is visible.