RAIA™ Specification

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/ ├── DashboardNav.tsx ← Top nav (authenticated operator cockpit) ├── AppNav.tsx ← Top nav (public-facing / pre-auth bridge) ├── SideNav.tsx ← Context-sensitive side navigation ├── NewsTicker.tsx ← Live system alert banner └── _AppPage.tsx ← Shell wrapper — assembles all three surfaces
§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.

📋

Repository Code

The live codebase implementation for this specification sits within the following repository folder:

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.
§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

Repository Code

The live codebase implementation for this textbook logic sits within the following repository folder: