Chore/remove supabase legacy #2
@@ -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/
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user