How denispham1107/quanlynhansu works
Culao Task is a Firebase-backed workforce and task-management PWA. Employees and administrators use the web app to manage work, while backend functions coordinate scheduled work orders, assignment, notifications, and operational workflows. The tree and excerpts support the major task, staff, schedule, hotel/shipping, chat, reporting, and calendar capabilities, but the empty README and partial backend excerpts limit certainty about detailed UI-to-function wiring.
Main entry points: app.js Task PWA · index.js Cloud functions · sw.js Push service worker · firebase-config.js Firebase services
Components 16
Workforce workflows
- Task operations
app.js - Staff management
app.js - Scheduled work orders
app.js - Hotel and shipping
app.js - Chat and reports
app.js
Backend services
- Cloud functions
functions/index.js - Availability rules
functions/scheduled-availability.js - Schedule date keys
functions/scheduled-task-date.js - Push service worker
sw.js
Data and integrations
- Firestore
- Task queue
- Firebase services
firebase-config.js - Google Calendar
Other components
- Employee or admin
Connections 21
- Employee or admin → Task PWA: uses
- Task PWA → App shell: renders
- Task PWA → Task operations: manages tasks
- Task PWA → Staff management: manages staff
- Task PWA → Scheduled work orders: manages schedules
- Task PWA → Hotel and shipping: manages work
- Task PWA → Chat and reports: uses
- Task PWA → Firebase services: uses configuration
- Task operations → Firestore: reads and writes
- Staff management → Firestore: reads and writes
- Scheduled work orders → Firestore: reads and writes
- Scheduled work orders → Cloud functions: requests operations
- Cloud functions → Firestore: reads and writes
- Cloud functions → Availability rules: checks availability
- Cloud functions → Schedule date keys: derives task dates
- Cloud functions → Task queue: enqueues work
- Hotel and shipping → Firestore: reads and writes
- Chat and reports → Firestore: reads and writes
- Cloud functions → Google Calendar: imports calendar
- Firebase services → Push service worker: delivers push
- Push service worker → Employee or admin: shows notification