Dashboard
The Vorian Connect dashboard is a Next.js web application that provides real-time visibility into analyzer traffic, agent health, verification rules, and delivery status. Five purpose-built pages give interface engineers and lab IT teams everything they need to monitor and manage the platform.
Pages
Live Feed
The home page (/) shows a real-time stream of incoming messages via Server-Sent Events. Each message card displays the sending application, message type, verification status, and timestamp. The feed supports filtering by status (auto-verified, flagged, pending, rejected) and sending application, plus pause/resume for reviewing messages at your own pace. The stream uses exponential backoff reconnection (1-second base, 30-second cap) so a momentary network blip doesn't require a manual refresh. Maximum 200 rows are retained in the visible feed.
Proof surface
The Inspector (/inspector) lists all messages with filtering by status, source, and date range. Clicking any message opens a detail view (/inspector/[id]) with a Monaco-powered double-pane layout: raw HL7 text on the left, structured JSON on the right. A LOINC panel shows the enrichment data for each OBX segment — LOINC code, display name, canonical unit, and flag interpretation. The Reprocess button submits a single-message reprocess job, and the history tab shows every previous verification decision for that message.
Topology
The Topology page (/topology) displays agent health as a grid of cards. Each agent shows its online/degraded/offline status based on the most recent heartbeat timestamp, plus a queue-depth sparkline chart from the last 20 heartbeat records. A "Configure" form on each card allows changing the agent's heartbeat interval and MLLP listen address — changes are pushed to the agent on its next heartbeat or immediately via the WatchConfig gRPC stream.
Rules Playground
The Rules page (/rules) has three tabs. The Rules List shows all active rules with enable/disable toggles, priority numbers, and delete buttons. The New Rule tab provides a Monaco JSON editor for writing rule conditions with inline validation. The Test tab lets you paste a rule condition and an HL7 message to see the match result instantly — no database required, pure client-side evaluation against the same JavaScript rule engine used in production.
Destinations
The Destinations page (/destinations, admin-only) manages delivery targets. Each destination card shows the type (webhook, HL7 MLLP, FHIR R4), delivery mode (cloud or on-premises), and enable/disable toggle. Cards expand to show the last 50 delivery log entries. A live test button sends a real delivery attempt so teams can verify connectivity before go-live. Destination secrets and authentication tokens are stripped from all API responses.
What's Included
- Zitadel OIDC authentication: NextAuth v5 with Zitadel as the identity provider. First login auto-provisions the user and tenant. Session timeouts and forced re-authentication protect idle sessions
- Server-Sent Events live feed: Push-based message stream with automatic reconnection. No polling, no WebSocket complexity
- Monaco dual-pane Inspector: The same editor that powers VS Code, providing syntax highlighting, search, and diff for raw HL7 and structured JSON
- Agent health monitoring: Heartbeat-driven status with queue-depth sparklines. Per-agent configuration form for heartbeat interval and MLLP address
- Rules management: Create, edit, test, enable, and disable auto-verification rules with instant feedback in the test tab
- Destination management: CRUD for webhook, MLLP, and FHIR targets with live testing, delivery logs, and cloud/on-prem mode switching
- Admin audit log: Paginated, filterable record of all admin actions with actor identity, action type, and expandable target details
- Team management: Invite team members, manage roles (admin/member), and remove users from the tenant
Technical Details (for evaluators)
The dashboard is built on Next.js 16 with React, Tailwind CSS, shadcn/ui components, TanStack Query for data fetching, and Monaco Editor for code views. Authentication uses NextAuth v5 with the Edge/Node.js split pattern (auth.config.ts for Edge-compatible config, auth.ts for Node.js operations). The auth proxy (proxy.ts — Next.js 16 renamed Middleware to Proxy) enforces authentication on all dashboard pages.
The SSE stream uses a PostgreSQL client with SET LOCAL app.tenant_id for RLS enforcement, polling every 2 seconds for new messages. The API layer uses withTenant() wrappers that set the tenant context before every query, ensuring every database operation is scoped to the authenticated user's tenant.
The dashboard connects to PostgreSQL through a dual-pool pattern: getPool() for superuser operations (public endpoints like invite token lookup) and getAppPool() for tenant-scoped operations with RLS enforcement. Statement timeouts are set to 30 seconds via SET LOCAL to prevent long-running queries from blocking connections.