Ops Handbook
Authenticated company handbook
01 · Problem
Company processes, onboarding and the team directory lived in scattered documents.
02 · What I built
A signed-in handbook for the whole company: SOPs, documents, departments, a team directory, an onboarding checklist, a media library, announcements, admin screens for about 16 kinds of record, an audit log and a command palette. Sign-in is Google, restricted to the company domain, with three roles.
- 01SOPs and documents
- 02Departments
- 03Team directory
- 04Onboarding checklist
- 05Media library
- 06Announcements
- 07Admin and audit log
- 08Command palette
03 · What is inside
- 01
One place to look
A global search and a command palette reach every SOP, document, person and department from the keyboard.
- 02
Every change leaves a trace
Admin screens cover about 16 kinds of record, and each admin action is written to an audit log.
- 03
Security at the database
Access rules live in Postgres as 65 row-level security policies across 22 tables, so a bug in the app cannot expose another role's data.
- 04
Three roles, one sign-in
Google sign-in restricted to the company domain, with three roles deciding what each person can see and edit.
- 05
Onboarding built in
An onboarding checklist, the team directory and each department's documents sit in one place.
- 06
Content that refreshes itself
The social feed is refreshed by a scheduled job inside the database.
04 · One hard problem
Keeping the database honest across environments
Two production incidents came from the schema drifting between environments. I wrote a migration runner so every change is applied in order and recorded, put row-level security on every table, and cleared the security warnings Supabase raised.
- 01Migration fileOne numbered SQL file per change
- 02Migration runnerApplies pending files in order and records them
- 03PoliciesRow-level security on every table
05 · Results
- Aug 2026
- live on a company subdomain since
- 22
- tables, all behind row-level security
- 65
- security policies
- 35
- database migrations
- 63
- pages