How afsallais/trash-removal works
Trash-Removal is a small household web app for tracking weekly kitchen-trash duty, with a Firebase notification backend. The README does not identify which HTML page is the primary interface or describe its data flow, so the page variants are shown without inferred links to backend records. The sampled backend shows Firestore-triggered alert and duty notifications, a scheduled pending-alert fallback, and background push display; frontend-to-Firestore wiring is not shown.
Main entry points: index.js Notification jobs · process-pending-alerts.js Pending alert poller · index.html Web page · index4.html Dashboard page
Components 15
Household interfaces
- Web page
index.html - Dashboard page
index4.html - Mobile page
mobile.html - TV page
tv.html
Firebase backend
- Firestore
- Firestore handlers
functions/index.js - Trash alert
functions/index.js - Alert cancellation
functions/index.js - Duty completion
functions/index.js - Device lookup
functions/index.js - Notification jobs
functions/index.js - Pending alert poller
functions/process-pending-alerts.js
Push notifications
- Firebase Cloud Messaging
- Background push display
firebase-messaging-sw.js
Other components
- Household user
Connections 21
- Household user → Web page: uses
README.md - Household user → Dashboard page: uses
README.md - Household user → Mobile page: uses
README.md - Household user → TV page: uses
README.md - Firestore → Firestore handlers: dispatches events
functions/index.js - Firestore handlers → Trash alert: handles creation
functions/index.js - Firestore handlers → Alert cancellation: handles updates
functions/index.js - Firestore handlers → Duty completion: handles updates
functions/index.js - Trash alert → Device lookup: finds recipients
functions/index.js - Alert cancellation → Device lookup: finds recipients
functions/index.js - Duty completion → Device lookup: finds recipients
functions/index.js - Device lookup → Firestore: reads devices
functions/index.js - Trash alert → Notification jobs: claims job
functions/index.js - Alert cancellation → Notification jobs: claims job
functions/index.js - Duty completion → Notification jobs: claims job
functions/index.js - Notification jobs → Firestore: stores job state
functions/index.js - Notification jobs → Firebase Cloud Messaging: sends messages
functions/index.js - Pending alert poller → Firestore: reads alerts
functions/process-pending-alerts.js - Pending alert poller → Device lookup: finds recipients
- Pending alert poller → Firebase Cloud Messaging: sends messages
functions/process-pending-alerts.js - Firebase Cloud Messaging → Background push display: delivers push