Mission Control is the central cockpit dashboard of Warborn OS. It consolidates daily routines (morning/evening habits checklists), active Google Calendar schedules, addiction recovery streaks, and localized AI Coach insights into a single, high-fidelity HUD interface.
Scattering personal data across separate sub-pages (e.g. going to /habits for checklist items, /calendar to check events, and /recovery to monitor sobriety) fragments user attention and increases cognitive load.
To maximize operational efficiency, we needed to:
The front-end uses Next.js app router directories, compiling sub-widgets in Client components. The backend exposes a composite /api/dashboard/summary endpoint that merges query results from multiple tables into a single JSON response, eliminating duplicate fetches.
graph TD
Client[Next.js Client] -->|Fetch summary| API[FastAPI Gateway]
API -->|Async SELECT| T1[Habits Table]
API -->|Async SELECT| T2[Calendar Table]
API -->|Async SELECT| T3[Recovery Table]
API -->|Async SELECT| T4[AI Insights Table]
API -->|Consolidate JSON| Client
The interface utilizes CSS-based grid lines and backdrop filters to create a floating HUD hud structure. We define core glass styling tokens inside index.css:
.hud-panel {
background: rgba(10, 15, 30, 0.45);
backdrop-filter: blur(12px);
border: 1px solid rgba(56, 189, 248, 0.15);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
asyncio.gather() block, allowing PostgreSQL to execute all lookups concurrently.