How mild7seven/hse-management-system-mvp works
This is a standalone, browser-based HSE management PWA for factory and warehouse users. Its principal workflow is role-based demo login, safety observation (SBO), automatic findings for unsafe observations, corrective-action assignment, and verification through closure or rejection. The app also provides KPI dashboards and hazard, incident, vehicle, visitor, and inspection capabilities, with local IndexedDB persistence and a basic offline sync queue. The README documents these capabilities; sampled app.js excerpts show storage, dashboard, hazard and incident logic, while unsampled feature details are not inferred.
Main entry points: app.js Local records · service-worker.js PWA service worker
Components 16
Access and dashboard
- Demo login and RBAC
app.js - KPI dashboard
app.js
Safety workflow
- Safety observation
app.js - Photo evidence
app.js - Finding
app.js - Corrective action
app.js - Verification and rejection
app.js
Operational records
- Hazard assessment
app.js - Incident reporting
app.js - Vehicle management
app.js - Visitor management
app.js - Inspections
app.js
Offline platform
- Local records
app.js - Sync outbox
app.js - PWA service worker
service-worker.js
Other components
- HSE user
Connections 22
- HSE user → Demo login and RBAC: logs in
README.md - Demo login and RBAC → KPI dashboard: opens
README.md - HSE user → Safety observation: reports
README.md - Safety observation → Photo evidence: adds photos
README.md - Safety observation → Finding: creates on unsafe
README.md - Finding → Corrective action: initiates
README.md - Corrective action → Verification and rejection: submits for
README.md - Verification and rejection → Corrective action: closes or rejects
README.md - HSE user → Hazard assessment: records
README.md - HSE user → Incident reporting: reports
README.md - HSE user → Vehicle management: manages
app.js - HSE user → Visitor management: manages
app.js - HSE user → Inspections: records
app.js - KPI dashboard → Local records: reads KPIs
app.js - Safety observation → Local records: persists
README.md - Corrective action → Local records: persists
README.md - Hazard assessment → Local records: writes
app.js - Incident reporting → Local records: writes
app.js - Local records → Sync outbox: enqueues changes
app.js - Sync outbox → Local records: stores sync status
app.js - Demo login and RBAC → PWA service worker: registers
app.js - PWA service worker → HSE user: serves cached assets
service-worker.js