RAIA™ Specification

Application UX Guide: Navigation, Menus & Interface Architecture

Section A: In Plain English Application UX Guide Navigation, Menus & Interface Architecture The Application UX Guide covers how the RAIA (Real estate Artificial Intelligence Agent) OS application shell is structured — navigation surfaces, CSS grid mappings, and sidebar controls — providing the layout principles that sit outside the core operational pyramid.

← Back to Developer Hub TEXTBOOK SPECIFICATION
Section A: In Plain English

Application UX Guide Navigation, Menus & Interface Architecture

The Application UX Guide covers how the RAIA (Real estate Artificial Intelligence Agent) OS application shell is structured — navigation surfaces, CSS grid mappings, and sidebar controls — providing the layout principles that sit outside the core operational pyramid.

Application UX Architecture Outside Pyramid All Developers

The complete reference for every navigation surface in the RAIA (Real estate Artificial Intelligence Agent) OS application shell. This guide sits outside the operational pyramid — it covers how the application itself is structured, not the data workflows inside it. Before touching any nav component, read this first.

§1 WHY — Design Intent §2 HOW — Component Architecture §3 WHAT — Full Menu Reference §4 VIBE CHECK — Dev Verification
§1 WHY

Design Intent — Why the Navigation Is Built This Way

RAIA (Real estate Artificial Intelligence Agent) OS is a dual-surface platform: a real-time operational cockpit for estate agents, and an agentic engine that acts autonomously in the background. The navigation architecture reflects this duality — it must serve an operator who is context-switching between a tenant dispute, a rent payment, and a maintenance job every few minutes.

Operational Speed

Every nav element must reduce time-to-action. The top nav gets agents to their most frequent tasks in one click. The side nav drills into a specific entity's context without losing that top-level anchor.

Layered Access Control

Navigation items gate themselves by user role. Developer tooling is invisible to B2B clients. Sensitive data menus require elevated session context. Nothing is hidden by CSS alone — server-side role checks enforce it.

Live Context Awareness

The NewsTicker is not decoration — it is a live system heartbeat. It surfaces pending HITL tasks, compliance expiry warnings, and agentic loop status. Operators should never need to hunt for urgent alerts.

The Pyramid Boundary Rule

The documentation pyramid (SJT stages, compliance arcs, agentic loops) describes what data flows through the system and when. This guide describes where the operator sits while that happens. These are orthogonal concerns. Navigation components must never encode business logic — they are routing surfaces only. Business logic lives in the pipeline specs.

§2 HOW

Component Architecture — Two Nav Systems + One Ticker

The interface shell is composed of three independent navigation surfaces. Each has a distinct responsibility, source file, and update cadence. They must never be conflated.

Interface Shell Topology

News Bar
3 compliance certs expiring this week  ·  2 new enquiries awaiting response  ·  automated bank reconciliation gateway sync completed 14:32
Full Width
Top Nav
Messages Property Portfolio Data Developer ★
Sticky
Side Nav
Landlords
Tenants
Building
Suppliers
Tenancy
Maintenance
Page content area — renders contextually based on active top nav + side nav combination
Contextual

★ Developer tab visible only to @estateaigents.com authenticated sessions.

Source File Ownership

// Frontend repo: 03_technology/11_frontend/portal/src/ components/navigation/ ├── SideNav.tsx ← Context-sensitive side navigation └── SystemAlertBar.tsx ← Live system alert banner (formerly NewsTicker) components/lineage/ └── OwnershipLineageTree.tsx ← Right-inspector portfolio lineage tree (Spec 2.19) app/dashboard-v2/ └── inbox-right-telemetry.tsx ← Inbox right rail — mounts OwnershipLineageTree + passes org_id app/dashboard-v2/_components/contact/ ├── ContactCard.tsx ← ADR-316: landlord detail shell (hero + tab strip + 10 tab panels) ├── ContactHero.tsx ← Avatar (AVATAR.contact token), name, segment badge, KYC chips, source labels ├── ContactTabBar.tsx ← Drag-and-drop tab strip with localStorage persistence ├── contact-tabs.ts ← Tab config + useTabOrder hook ├── PersonSnapshotLive.tsx ← Amber callout for live RM snapshot ├── PersonSnapshotStatic.tsx← Static bio snapshot ├── PersonBehaviouralScorecard.tsx ← CSS-only score bars + staff overrides └── tabs/ ← Performance, Channels, Compliance, Organisations, Diary, Network, Background, Profile, Qualifications, Tax app/dashboard-v2/_components/developments/ ├── Developments_View.tsx ← Page entry for Properties → Developments (list col + detail col, mirrors landlord pattern) ├── Development_List_Item.tsx ← Row: name, ref, postcode, flat count ├── Development_Detail_Panel.tsx ← Right-panel shell (header + tab strip + tab panels) ├── Development_Detail_Header.tsx← Header: building icon, name, ref, postcode, unit count ├── Development_Detail_TabBar.tsx ← Tab strip ├── Development_Tabs.ts ← Tab config └── tabs/Development_Tab_Overview.tsx ← Overview tab panel styles/ └── design-tokens.ts ← SSOT for compact-card tokens (CARD, TEXT, PILL, AVATAR, SECTION_HEADER, CHEVRON) app/api/lineage/ └── route.ts ← GET /api/lineage — org-scoped ownership tree (accepts ?org_id= override) app/ ├── _AppPage.tsx ← Shell wrapper — assembles top nav + side nav + content ├── dashboard/DashboardNav.tsx ← Top nav (authenticated operator cockpit) └── components/layout/AppNav.tsx ← Top nav (public-facing / pre-auth bridge)
§3 WHAT

Full Navigation Reference

3.1 NewsTicker — Live System Alert Bar

Full-Width Banner

The NewsTicker is a horizontally scrolling banner pinned directly below the sticky top nav. It is the agentic heartbeat of the platform — a zero-click ambient display that tells operators what requires attention without interrupting their current workflow.

Live Appearance
 URGENT: Gas Safety Cert at 14 Maple Road expires in 4 days  ·   New enquiry from Jordan K. — awaiting triage  ·   automated bank reconciliation gateway rent sweep completed 09:00 · 3 matched, 0 exceptions  ·   RAIA (Real estate Artificial Intelligence Agent) background loop running — last tick 2 min ago  ·   2 tenancy renewals in 30-day window

Data Sources

  • • Compliance engine — expiring certs, deposit deadlines
  • • Enquiry funnel — unactioned leads older than 2 hours
  • • automated bank reconciliation gateway sync — latest rent sweep results & exceptions
  • • Agentic loop status — last background job tick time
  • • Tenancy lifecycle — upcoming renewals / break clauses
  • • HITL queue — items escalated and awaiting human action

Implementation Rules

  • • Messages are fetched server-side at page load and refreshed via polling (30s interval)
  • • Scroll speed is CSS animation: marquee — pause on hover
  • • Urgent items (red-flag compliance) are prepended and highlighted
  • • Empty queue = ticker is hidden (no blank bar)
  • • Click on any item navigates directly to the relevant entity page
  • • Never hard-code messages — all content is dynamic from the database
// NewsTicker.tsx — simplified render logic const { alerts } = useTickerAlerts(); // polls /api/alerts/ticker if (!alerts.length) return null; // hide when queue is empty return ( <div className="news-ticker-bar"> <div className="ticker-scroll"> {alerts.map(a => ( <a key={a.id} href={a.href} className={`ticker-item ${a.urgent ? 'urgent' : ''}`}> {a.icon} {a.message} </a> ))} </div> </div> );

3.2 Top Navigation — Primary Workspace Menus

Sticky Header

The top navigation is the primary workspace switch. It routes operators between major functional domains. Each menu item may have a dropdown with sub-pages. The nav is sticky — it persists on scroll so context never gets lost.

3.3 Side Navigation — Entity Context Rail

Contextual

The side nav appears on all property-level pages and provides entity-type switching within the context of the currently selected property. It is a vertical rail — not a global nav, not a breadcrumb. It answers the question: "I'm looking at this property — which entity do I want to see?"

Entity Rail
Landlords
Tenants
Building
Suppliers
Tenancy
Maintenance

Side Nav Implementation Rules

  • • Property context required: Side nav only renders when a propertyId is present in the route. It does not appear on portfolio-level or inbox views.
  • • Active state via pathname: Uses usePathname() to highlight the current entity tab — no manual state management.
  • • Filtered entity counts: Each item shows a live badge count (e.g., "3 tenants") fetched on mount — helps operators instantly see where data is populated.
  • • Legacy pages suppressed: _AppPage.tsx filters out legacy slugs (e.g., rent_statement, legacy EPC routes) to prevent stale links from appearing.
  • • Active started tenancies only: The Tenancy item queries for tenancies where status is started/active. Offered/draft tenancies are excluded from this view — they appear only in the Enquiry Funnel.

3.4 Ownership Lineage Tree — Right Inspector Panel

Inbox Right Rail

The Ownership Lineage Tree is a high-density vertical tree rendered inside the inbox's right-hand inspector panel. It answers the question: "Who owns this conversation, what organisation do they belong to, and what else does that organisation own?" — without the operator leaving the inbox. Replaces earlier node-link graph experiments with a deterministic, keyboard-navigable tree.

Tree Topology

Five node kinds, each with a colour-coded status halo and a 1-click wormhole route into the corresponding entity page:

  • • Person (landlord / contact) — root of the tree
  • • Organisation — legal entity holding the portfolio
  • • Asset — individual property
  • • Tenancy — live SJT record attached to the asset
  • • Tenant — current occupant(s) on the tenancy

Auto-expands the first three depth levels on mount. Status halos: ● green = verified, ● yellow = pending, ● red = action required, ● gray = inactive.

Organisation-Scoped Routing (commit c3497697)

The tree fetches /api/lineage with three query parameters:

  • • person_id — root contact (when known)
  • • asset_id — root property (alternative entry point)
  • • org_id — optional override for the organisation scope. Added 2026-08-07 to support cross-org portfolio views where the ownership data lives under a different org than the logged-in user's profile org.

Resolution order on the server: ?org_id query param → falls back to profile.organisation_id of the authenticated user. The inbox right rail (inbox-right-telemetry.tsx) passes conv.organisation_id from the active conversation, so the tree always reflects the org that owns the conversation — not the org the operator happens to be browsing from.

Schema notes: ownership links are read from tbl_organisations_persons.linked_organisation_id (renamed from organisation_id for clarity). Organisation display names are read from tbl_organisations.name (renamed from organisation_name).

Mounting Contract

The component is mounted inside the inbox's NAVIGATION — Portfolio Lineage collapsible section, below the telemetry strip. It is not a global nav element and does not appear outside dashboard-v2. The collapsible header shows a Network icon + the label "NAVIGATION — Portfolio Lineage" and toggles tree visibility without unmounting (state preserved on collapse).

§4 VIBE CHECK

Developer Verification Checklist

Run through these before opening any PR that touches navigation components.

NewsTicker

  • ✓ Ticker is hidden when alert queue is empty (no blank purple bar)
  • ✓ Compliance alerts appear before informational messages
  • ✓ Clicking a ticker item navigates to the correct entity page
  • ✓ Scroll animation pauses on hover
  • ✓ 30-second polling does not cause layout reflow

Top Navigation

  • ✓ Developer tab absent for non-@estateaigents.com accounts
  • ✓ Only one tab highlighted as active at any route
  • ✓ Portfolio active state excludes inbox, tasks, documents, pipelines, sandbox, token-burn
  • ✓ Nav is sticky — does not scroll out of view
  • ✓ Mobile hamburger collapses all items correctly below md breakpoint

Side Navigation

  • ✓ Side nav absent on portfolio/inbox views (only renders with propertyId)
  • ✓ Active entity tab highlighted correctly on direct URL navigation
  • ✓ Tenancy tab shows active/started tenancies only (no drafts)
  • ✓ Legacy slugs (rent_statement etc.) suppressed by _AppPage.tsx filter
  • ✓ Badge counts reflect live DB state, not stale cache

General Shell

  • ✓ NewsTicker sits between sticky header and page content — not inside main scroll area
  • ✓ No navigation component encodes business logic (data queries go in hooks/API routes)
  • ✓ Deep links (e.g. /property/[id]/tenants) preserve correct active states on both top and side nav
  • ✓ OAuth redirect preserves deep-linked path via next param

Automated CI Gate — ADR-319

Since 2026-08-14, every pull request touching src/app/dashboard-v2/ is hard-gated by five CI jobs (ADR-319). The manual checklist above is what reviewers still verify by eye; the items below are what the gate enforces mechanically — a red gate blocks merge even when the eye test passes.

  • 1
    file-size-gate — 500-line rule (ADR-262)

    No .ts/.tsx file inside dashboard-v2 may cross 500 lines. Six files currently sit over the limit (page.tsx 1830, SidebarNav.tsx 940, Landlords_Clients_Detail.tsx 754, AgentGraphPanel.tsx 636, LandlordRightPanel.tsx 573, ServiceAgreementPanel.tsx 560) and are being paid down; new files may not add to the debt. Legacy paths (src/components/, src/app/dashboard/) are advisory only.

  • 2
    naming-convention — Option A Hybrid

    Newly added files in dashboard-v2/_components/ must be PascalCase or match the Domain_Type_Variant underscore pattern. Existing files are diff-aware exempt (only A status paths in the PR are checked) so renames spread over many PRs. Escape hatch: first-line // workspace-exempt marker.

  • 3
    ux-compliance — banned patterns

    Hard-fails on: rounded-full (avatars too), text-[8px], font-sans|font-serif, rounded-md|rounded-lg on chip/pill/badge lines, font-black|font-extrabold on chip lines, raw #RRGGBB inside className= strings, the zombie raia-pill class, and any rise in the raw <button>+<input>+<select> count above the 170 baseline (b=151, i=12, s=7).

  • 4
    typescript — zero tsc --noEmit errors

    Portal-scoped TypeScript check on every PR. Silent type regressions now block merge.

  • 5
    secret-scan — no hardcoded credentials

    Flags long sk-… API keys (≥30 chars), non-placeholder SUPABASE_SERVICE_ROLE_KEY assignments, hardcoded Bearer tokens, and password = "…" literals in src/**/*.{ts,tsx,js,cjs,mjs}. Reads via process.env.* are fine.

Pre-flight locally before pushing

cd 03_technology/11_frontend/portal
bash scripts/ci-file-size-check.sh              # 500-line gate
bash scripts/ci-ux-compliance.sh              # banned UX patterns
bash scripts/ci-ux-compliance.sh --full-src   # audit legacy too (advisory)

Workflow: .github/workflows/ci-gates-portal.yml · Scripts: 03_technology/11_frontend/portal/scripts/ci-*.sh · Legacy advisory remains in .github/workflows/design-compliance.yml (kept, softer).

ADR-319 · CI Enforcement

Portal CI Gates — dashboard-v2 Hard Enforcement

Five hard CI jobs (file-size, naming, ux-compliance, typescript, secret-scan) that mechanically enforce the rules in this guide on every PR. Legacy paths remain advisory under design-compliance.yml.

Technical Deep Dive

Workspace Navigation & Security Segmentation Architecture

Domain-gating implementation, React component routing logic, and Tailscale network segmentation details.

Chapter 2.1

AI-First Agentic UX & The Survival of Visual Interfaces

Why dashboards remain essential in an agentic-first world and how navigation adapts around autonomous background loops.

Chapter 3.0

SJT Agentic Framework Guide

The Single Journey Tenancy state machine — the operational pyramid that lives inside the Tenancy side nav item.

Reference

Glossary & Terminology Standard

Canonical definitions for all entity types, status labels, and UX vocabulary used across nav surfaces.

ADR-271 · Ops Architecture

3-Seat Agent Roster & Deterministic Kanban Dispatch

Why the 8-profile agent org collapsed to PA + Programmer + Scribe, and why Kanban dispatch is now an hourly deterministic script instead of an LLM night watch.

Chapter 2.29 · System Overview

RAIA (Real estate Artificial Intelligence Agent) Agent System Overview — The Full Stack in One Picture

A single-page visual map of the entire RAIA (Real estate Artificial Intelligence Agent) agent stack — models, orchestration, channels, and memory — showing where this UX guide sits in the bigger picture.

Commit c3497697 · 2026-08-07

fix(lineage): org_id routing + conversation org passthrough

Adds ?org_id= override to GET /api/lineage, threads conv.organisation_id through the inbox right rail into OwnershipLineageTree, and aligns with the linked_organisation_id / name column renames on the ownership tables.