How soraou/toda-sb works
MTPFMS is a browser-based municipal franchise and permit management system. Users sign in, receive a role-appropriate menu, load holder records, and work with roster, monitoring, reporting, directory, and activity pages. The sampled authentication flow checks a Supabase session and role before loading records and drawing the application; the data layer synchronizes holder and history changes and subscribes to live updates. README capability descriptions establish several page-level features, but their specific implementations were not sampled, so those branches are represented without guessed internal links.
Main entry points: db.js Record data layer · auth.js Session and role gate · app.js Shared application · login.html Login page
Components 18
Access and navigation
- Login page
login.html - Session and role gate
js/auth.js - Shared application
js/app.js
Holder records
- Franchise holders
holders.html - TODA holders
toda.html - PODA holders
poda.html - All franchise
all-franchise.html
Monitoring and operations
- Dashboard
dashboard.html - Expiration monitoring
expiration.html - Renewal season
renewal.html - Permit layout fitting
js/permit.js
Reporting and directory
- Reports
reports.html - Data quality
data-quality.html - Public directory
directory.html - Activity logs
activity.html
Data services
- Record data layer
js/db.js - Supabase service
Other components
- Staff user
Connections 8
- Staff user → Login page: signs in
README.md - Session and role gate → Supabase service: checks session and role
js/auth.js - Session and role gate → Record data layer: loads records
js/auth.js - Session and role gate → Shared application: loads after authorization
js/auth.js - Shared application → Record data layer: persists changes
js/db.js - Record data layer → Supabase service: reads and writes
js/db.js - Record data layer → Supabase service: subscribes to changes
js/db.js - Shared application → Permit layout fitting: loads permit fitter
js/app.js