JEMA STUDIOS · SINGLE SOURCE OF TRUTH

System Map — Where Everything Lives

Live at ops.jemastudios.com · Phase 4 complete · auth + RLS + HR self-service + Vercel deployment.

79
Tables
270+
RLS Policies
13
Surfaces
61
Auth Users
🌍 Now live on the internet. The system is hosted at https://ops.jemastudios.com with SSL — accessible from any browser on any device anywhere in the world. Eric in Canada, Frank in Ghana, Ibrahim in USA can all open that URL and sign in right now. This is no longer "a thing on Kwaku's Mac" — it's a real internet product. The bones are built. Auth works. RLS works. HR can self-manage team access. What's left isn't a mountain.
📊 Database
Tables79
RLS policies270+
Migrations applied40
Functions/views42
Projects loaded194
Team rows62
🔐 Auth & Access
Auth users (Supabase)61
Tier A (full bypass)2 — Kwaku, Jeffery
Tier B HoXX + CDs~10
Tier C field creatives~49
Edge functions deployed1 — admin-team-action
🚀 Surfaces Live
Bundled HTMLs13
Auth-wired13 of 13
Live-data wired11 of 13
Region-scope UI1 of 5 surfaces
Build versionv2026-05-24.19:00

Infrastructure live · hosted · backed up

LayerWhereStatus
Production URLhttps://ops.jemastudios.comlive · SSL
Backup URL (Vercel default)jema-ssot-…vercel.applive
HostingVercel — team jema-s-projects1live
DomainGoDaddy — ops CNAME → vercel-dnsresolved
Database + Auth + StorageSupabase project ayykfhfpurrxtootrbaulive
Edge Function (admin actions)admin-team-action — create + reset PWv2 active
GitHub repoquekujema14-ctrl/jema-ssotpush pending
CI/CD (auto-deploy on push)Vercel↔GitHub integrationsetup pending

A Access Tier Framework locked · migrations 0035-0040

Tier A
Kwaku · Jeffery
Full bypass. Sees + writes everything across all regions, all depts. Owns access management.
Tier B
Heads of Dept + Country Directors
HoXX (Frank, Maame, Bernard, Johnson, Pius): all regions within their dept.
CDs (Eric, Alex, Ibrahim): region-scoped via access_scope.regions. No leads/sales outside scope.
Tier C
Field Creatives · Associates
Only projects they're personally assigned to via production_assignments. No invoices, no contracts, no leads. Own pay row only. Team table for call sheets.

S Surfaces · 13 working pages click to open

SurfacePurposeAuthLive DataRegion-scope UI
jema_auth_loginSign-in · session managementlive
jema_regional_viewCountry Director snapshot per regionliveliveenforced
jema_dept_report9 dept workspaces + HR Access Mgmtlivelivepending
jema_project_hubPer-project deep viewliveliveN/A
jema_leads_pipelineSales pipelinelivelivepending
jema_calendarGlobal + production calendarlivelivepending
jema_associate_intakeNew associate signup formlivelive
jema_consultationDiscovery + pre-wedding consultslivelive
jema_questionnaireClient questionnaire (v2)livelive
jema_project_dossierOne-click full project PDFlivelive
jema_auth_testMinimal auth isolation testlive
jema_db_demodb.* module sandboxdevlive
jema_ui_demoComponent library showcasedev

Done 5 weeks of work · 102 tasks closed

What's actually left finite · ranked by impact

📁 Where things live paths quick reference

WhatPath
All bundled HTML surfaces/Documents/Cowork Homebase/jema_*.html
Living memory (what we agreed)/Documents/Cowork Homebase/JEMA_MIGRATION_MEMORY.md
Data-access layer (db.js source)/Documents/Cowork Homebase/_supabase/js/db.js
Shared boot script (live_boot.js)/Documents/Cowork Homebase/_supabase/js/ui/live_boot.js
Surface source files (pre-bundle)/Documents/Cowork Homebase/_supabase/js/ui/*.html
Supabase projectayykfhfpurrxtootrbau · dashboard
Edge function (admin actions)admin-team-action · deployed v2

? How to use this page

When you feel lost: open this page. Top to bottom in 60 seconds tells you the whole system.
When team needs onboarding: share the Surfaces table — that's your "what does the app do" answer.
When promoting / demoting someone: sign in as yourself → HR Workspace → Team Access Management. Don't ping me.
When you want to know what's left: the "What's actually left" section is the truth. Three boxes. Not a mountain.
If anything here goes stale: tell me and I rebuild it from live data in 60 seconds.

build v2026-05-24.20:15