RAIA™ Specification

Navigation & Workspace Segmentation

The five-tiered navigation bar — Messages, Property, Portfolio, Data, Developer — and the technical gating that controls which tabs each user sees.

← Back to Developer Hub TEXTBOOK SPECIFICATION
NAVIGATION SPEC

The five-tiered navigation bar — Messages, Property, Portfolio, Data, Developer — and the technical gating that controls which tabs each user sees.

In Plain English

The workspace top-bar is divided into five logical workspaces. Four are visible to all authenticated staff; the fifth (Developer) only appears for @estateaigents.com accounts verified by Tailscale. This page explains what each tab does and how the gating is wired in React.

💬 Messages Universal Inbox /portfolio/inbox 🏠 Property Asset Level Control /property/* 📊 Portfolio Strategic Overview /portfolio/* ⛓️ Data ETL & Ingestion /reports/pipelines 🖥️ Developer Gate Verified VPN

Figure 1 — RAIA (Real estate Artificial Intelligence Agent) OS top navigation: five workspaces, one VPN-gated.

Chapter 1 User Guide: Operational Menu Layout

The workspace top navigation partitions high-frequency communications, estate audits, portfolio health analysis, customer data integrity, and local system administration into logical tabs. Each tab is contextually filtered by the operator's credential level and database state.

The operational desk standard. This tab maps to /portfolio/inbox and aggregates multi-channel conversations — WhatsApp, SMS, Telegram, and Email — into a real-time responsive dashboard. It incorporates proactive AI draft generators and a 0% AI raw agentic fallback to guarantee high-integrity dialogue with tenants and landlords. Inbound email volume is shaped upstream by the scoring-based classification engine (tbl_email_filter_rules, Issue #591): additive rules scored against thresholds at -5/+5 replace the old binary blacklist, with ingest_as_junk dispositions landing under the Junk label for AI triage and passcode_bypass ensuring OTP/verification emails always arrive. Once an email lands, the sender's supplier/organisation chip is resolved by src/lib/email/channel-resolver.ts (Issue #599), a two-tier SQL lookup against tbl_organisations_channels — Tier 1 exact-address match, Tier 2 longest-domain-suffix match — replacing the unsafe substring match that let fake-savills.com.phishing.net impersonate savills.com.

Focuses on physical and transactional assets. The dropdown features:

  • Map View — powered by sovereign BigQuery GIS calculations
  • Active Jobs & HITL — task assignments and maintenance request tracking
  • Compliance Guard — EPC ratings, gas certificates, deposit schemes with live auto-healing notifications
  • Developments Registry — building-level portfolio view (?tab=props-developments) listing every development with unit counts; the detail panel exposes nine tabs — Overview, Assets, Comms, Description, Diary, Map, Org, People, Score — mirroring the landlord detail pattern

Aggregated strategic metrics — the command cockpit for executive analysis. Key panels:

  • Overview Cockpit — portfolio health at a glance
  • The Human League — leaderboard ranking properties by vetting performance, yield quality, and tenancy stability
  • RAIA (Real estate Artificial Intelligence Agent) Spatial Canvas — interactive portfolio explorer

Customer data integrity centre. Allows B2B agency clients to inspect real-time data flow from legacy CRM or accounting systems (e.g., automated bank reconciliation gateway, AppSheet, local databases). Includes:

  • Documents & Triage — 3-pane parsing engine
  • ETL Pipelines — background synchronisation statuses, run intervals, and database consistency sweeps
VPN-Gated Tab

This tab is visible only to users authenticated via an official @estateaigents.com account on the Tailscale network. Standard staff do not see this tab.

Platform engineering centre. Links to:

  • Developer Workspace — secure Tailscale documentation archive (docs.estateaigents.com)
  • Triage Sandbox — AI alignment testing and prompt validation
  • Cost Management — token spend analytics
  • Hermes Kanban — agent swarm lifecycle and state control logs

Chapter 2 Developer Guide: Technical Gating & Routing

The navigation is implemented across two primary components: DashboardNav.tsx (the server-to-client hybrid wrapper for the private operator cockpit) and AppNav.tsx (the standard consumer-and-operator bridge layout). Three technical mechanisms control which tabs render and which routes light up.

Domain Filtering Implementation

Security gating reads the authenticated user's email address and verifies the engineering perimeter. In layout.tsx, the Supabase auth context yields the current user object, which is passed down to DashboardNav:

// src/app/dashboard/layout.tsx
const supabase = await createSupabaseServer();
const { data: { user } } = await supabase.auth.getUser();

return (
  <DashboardNav
    role={staff.role}
    email={user.email ?? null}
    /* other props */
  >
    {children}
  </DashboardNav>
);

React Client Gating Block

Inside the navigation render loop — both DashboardNav.tsx and AppNav.tsx — the Developer tab is conditionally exposed using a domain check on the destructured email string:

// Gated rendering check in AppNav.tsx / DashboardNav.tsx
{email?.toLowerCase().endsWith('@estateaigents.com') && (
  <>
    <div className="relative group">
      <button className="...">Developer</button>
      <div className="absolute font-sans dropdown-menu ...">
        <a href="https://docs.estateaigents.com/docs/developer/index.html" target="_blank" ...>
          🖥️ Developer Workspace
        </a>
        {/* Sandbox, Cost Management, and Kanban links */}
      </div>
    </div>
    <div className="w-px h-4 bg-gray-200 mx-1" />
  </>
)}

Active State Pathname Intercepts

To prevent multi-tab lighting anomalies, the parent Portfolio tab's active route logic excludes sub-paths that have been moved to the Data and Developer menus:

const isPortfolioActive = pathname?.startsWith('/portfolio') &&
  !['/portfolio/inbox',
    '/portfolio/tasks',
    '/portfolio/compliance',
    '/portfolio/reports/documents',
    '/portfolio/reports/pipelines',
    '/portfolio/reports/sandbox',
    '/portfolio/reports/token-burn'].some(p => pathname.startsWith(p));
Sovereign Network Bounds

🔒 Accessing the Developer Workspace, Hermes Kanban board, or active database dashboards requires a verified Tailscale connection to IP 100.120.31.7. Public domains (app.estateaigents.com) are configured with HTTP locks preventing document routing outside the secure perimeter.

Corporate Landlord Avatar Flag

Within the dashboard-v2 landlord registry (list and detail header), corporate landlords — SPVs, limited companies, trusts, and similar entities — are visually distinguished from private individuals. The /api/landlords route computes an is_company flag per record (from organisation affiliations with corporate org_type values, or a corporate-name regex fallback), and getContactAvatarUrl(personId, avatarUrl, isCompany) in src/lib/media.ts falls back to AVATAR_COMPANY_DEFAULT (/images/avatar-company-default.svg, an office-tower icon) instead of the standard person silhouette when the flag is set. This affects avatar rendering only — no navigation gating changes.

References External Sources

Source Relevance
03_technology/11_frontend/portal/ DashboardNav.tsx and AppNav.tsx implementation — primary source for gating logic
src/app/dashboard/layout.tsx Supabase auth context injecting user email into nav components
03_technology/04_datastores/database/ddl/live-supabase/V393/V393__tbl_email_filter_rules.sql Scoring-based email classification engine (Issue #591) — shapes what inbound email surfaces in the Messages inbox
03_technology/11_frontend/portal/src/lib/email-blacklist.ts Filter scoring library consumed by gmail-sync / gmail-spam-rescue crons feeding the inbox
03_technology/11_frontend/portal/src/lib/email/channel-resolver.ts Two-tier SQL supplier/org resolution against tbl_organisations_channels (Issue #599) — exact-email then longest-domain-suffix match for inbox sender chips