From 1a2f9fbd4708aa4fe0970afe314021f50e53a6d4 Mon Sep 17 00:00:00 2001 From: weeihan Date: Fri, 6 Nov 2026 22:08:21 +0800 Subject: [PATCH] docs(claude): drop removed Supabase leftovers, note ssa role Co-Authored-By: Claude Sonnet 5.5 --- CLAUDE.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 90d18af..f697d6f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,7 +19,8 @@ Replaces WhatsApp/Excel safety reporting. Client: Ms. Agnes, Mr. Terence, Mr. Ya ## Current Phase **All phases (0–6) complete as of 2026-07-12.** Supabase to local PostgreSQL migration completed and live 2026-09-30. **UI refresh in progress:** follow `design-system/design.md` §8 build order (tokens → ui primitives → TableCard → shells → migrate Incidents list → remaining screens). -Legacy leftovers to remove when convenient: `lib/supabase/*`, the `@supabase/*` dependencies and the `supabase/` folder (the app no longer imports them; `db/schema.sql` + `db/rls.sql` are the schema source of truth). +Legacy Supabase code (`lib/supabase/*`, `@supabase/*` deps, `supabase/` folder) was removed 2026-11-06; `db/schema.sql` + `db/rls.sql` are the schema source of truth. +**Roles (since 2026-11-06):** `ssa` (Site Safety Assistant, replaces reporter + supervisor + capa_owner), `hse`, `management`, `admin`. SSA pages live under `app/(protected)/ssa/`. See `[[phases]]` memory for full phase breakdown and deliverables. ## Deployment (Production) @@ -62,10 +63,8 @@ IMS/ │ ├── auth/ # bcryptjs passwords, jose sessions, roles │ ├── storage/ # evidence files on disk + signed URLs │ ├── claude/ # AI client (DeepSeek) + Google embeddings -│ ├── notifications/ # Brevo email + WhatsApp senders, in-app -│ └── supabase/ # LEGACY, unused, to be removed +│ └── notifications/ # Brevo email + WhatsApp senders, in-app ├── db/ # schema.sql, rls.sql, migration/ops scripts -├── supabase/ # LEGACY migrations, to be removed └── public/ ```