Skip to content

Instantly share code, notes, and snippets.

@ViorelG
ViorelG / shiftwise-secure
Created April 25, 2026 15:10
Shift planner
This file has been truncated, but you can view the full file.
/* ════════════════════════════════════════════════════════════════════════════
* ShiftWise — Secure Rota & AI Agent for IOM Care Homes
* Single-file React application. Architecture: FIVE LAYERS + CROSS-CUTTING.
* ─────────────────────────────────────────────────────────────────────────────
*
* THE ONE RULE THAT HOLDS EVERYTHING TOGETHER
* ────────────────────────────────────────────
* Each layer only talks to the layer directly adjacent to it.
* - Presentation (1) never reads the database (4) directly.
* - AI Assistant (2) never mutates a shift — it emits an action plan that