How mxthor34/chickentown-cutsheets works
Chickentown Cut Sheets is a client cut-sheet PWA paired with a staff dashboard, backed directly by Supabase. Clients enter broiler or turkey details, save locally, and submit sheets or separate edit requests; managers review submissions and approve or reject edits. Supabase enforces access and records audit events. The README documents the schema and approval capabilities, while sampled app excerpts show browser-side requests and offline behavior. The migration’s implementation was not sampled, so its internal relationships are shown only where documented.
Main entry points: web/app.js Cut-sheet form · staff/app.js Staff dashboard · 20261203000000_create_cutsheet.sql Supabase API and data · sw.js Client app shell cache
Components 9
Client PWA
- Cut-sheet form
web/app.js - Local records and queue
web/app.js
Staff Dashboard
- Staff dashboard
staff/app.js
Supabase Backend
- Supabase API and data
supabase/migrations/20261203000000_create_cutsheet.sql - Access, audit, approvals
supabase/migrations/20261203000000_create_cutsheet.sql
Offline Support
- Client app shell cache
web/sw.js - Staff app shell cache
staff/sw.js
Other components
- Client
- Manager
Connections 10
- Client → Cut-sheet form: enters sheets
README.md - Cut-sheet form → Local records and queue: saves drafts and queues
web/app.js - Cut-sheet form → Supabase API and data: submits sheets and edit requests
web/app.js - Local records and queue → Cut-sheet form: supplies queued operations
web/app.js - Cut-sheet form → Client app shell cache: uses cached shell
web/sw.js - Manager → Staff dashboard: reviews and decides
README.md - Staff dashboard → Supabase API and data: authenticates and reads submissions
staff/app.js - Staff dashboard → Access, audit, approvals: calls approval RPCs
staff/app.js - Staff dashboard → Staff app shell cache: uses cached shell
staff/sw.js - Supabase API and data → Access, audit, approvals: enforces and audits
README.md