How mrphoenix81/saws works
SDMS is a role-based student discontinuation and records-management app. Users work through the browser UI; requests reach a Flask API, which dispatches authentication, student workflows, and supporting operations against Neon-backed data. The principal discontinuation flow requires SCM submission, HOF and Manager input, then Head Office and Admin approval; inactive and transfer requests use separate Head Office-to-Admin workflows. The README also documents daily, write-only Google Sheets backups. Some frontend-to-API and unsampled feature links are documented rather than confirmed from implementation excerpts.
Main entry points: api.py Action router · db_utils.py Data access and cache · App.tsx Web app routes · students.py Discontinuation workflow
Components 26
Browser application
- Web app routes
frontend/src/App.tsx - Student records
frontend/src/pages/Students.tsx - Inactive requests
frontend/src/pages/Inactive.tsx - Transfers
frontend/src/pages/Transfer.tsx - Data administration
frontend/src/pages/Data.tsx - Overview
frontend/src/pages/Overview.tsx
Student workflows
- Discontinuation workflow
students.py - Inactive workflow
inactive.py - Transfer workflow
transfer.py
API and services
- Action router
api.py - Authentication
auth.py - User management
users.py - Branch management
branches.py - Dashboard data
dashboard.py - Bulk operations
bulk.py - Notifications
notifications.py - Audit log
audit_log.py - Data filters
filters.py - Screenshot storage
storage.py - System configuration
config.py - Flask application
app.py
Persistence and backup
- Data access and cache
db_utils.py - Neon Postgres
- Sheets backup
backup_to_sheets.py
Other components
- Staff user
- Google Sheets
Connections 39
- Staff user → Web app routes: uses
README.md - Web app routes → Student records: routes to
frontend/src/App.tsx - Web app routes → Inactive requests: routes to
frontend/src/App.tsx - Web app routes → Transfers: routes to
frontend/src/App.tsx - Web app routes → Data administration: routes to
frontend/src/App.tsx - Web app routes → Overview: routes to
frontend/src/App.tsx - Web app routes → Action router: calls API
- Flask application → Action router: mounts
app.py - Action router → Authentication: dispatches
api.py - Action router → Discontinuation workflow: dispatches
api.py - Action router → Inactive workflow: dispatches
api.py - Action router → Transfer workflow: dispatches
api.py - Action router → Branch management: dispatches
api.py - Action router → User management: dispatches
api.py - Action router → Dashboard data: dispatches
api.py - Action router → Bulk operations: dispatches
api.py - Action router → Notifications: dispatches
api.py - Action router → Audit log: dispatches
api.py - Discontinuation workflow → Data access and cache: reads and writes
students.py - Inactive workflow → Data access and cache: reads and writes
inactive.py - Transfer workflow → Data access and cache: reads and writes
transfer.py - Authentication → Data access and cache: reads and writes
auth.py - Audit log → Data access and cache: reads and writes
audit_log.py - Notifications → Data access and cache: reads and writes
notifications.py - Dashboard data → Data access and cache: reads
dashboard.py - Data filters → System configuration: uses settings
filters.py - Discontinuation workflow → Notifications: notifies roles
students.py - Inactive workflow → Notifications: notifies roles
inactive.py - Transfer workflow → Notifications: notifies roles
transfer.py - Discontinuation workflow → Audit log: logs actions
students.py - Inactive workflow → Audit log: logs actions
inactive.py - Transfer workflow → Audit log: logs actions
transfer.py - Discontinuation workflow → Screenshot storage: uploads screenshots
students.py - Data access and cache → Neon Postgres: persists data
README.md - Sheets backup → Data access and cache: reads snapshot
backup_to_sheets.py - Sheets backup → Google Sheets: writes backup
README.md - Flask application → Data access and cache: initializes data
app.py - Flask application → System configuration: configures services
- Flask application → Sheets backup: schedules optionally
app.py