Appearance
Projects Module
Mục đích
Quản lý dự án và công việc vận hành, đặc biệt là project_task gắn với tour dịch vụ, phân công nhân sự và theo dõi tiến độ. Đây là lớp điều phối task nội bộ của Diva.
Quy mô
- 6 FE pages
- 54 FE components
- 1 GraphQL file
- 3 nhóm nghiệp vụ chính
Actors & Permissions
| Nhóm chức năng | Roles chính | Scope |
|---|---|---|
| Task/Project management | ITLeader, ITStaff, BranchPOS | Branch + internal |
| Một số luồng nâng cao | Thêm các role quản trị trong module.ts | Theo task_management |
Feature Groups
| Group | Mô tả | Pages |
|---|---|---|
| Project Workspace | Danh sách project, tạo project, xem chi tiết project | Project, ProjectCreate, ProjectDetail |
| Task Operations | Tạo task, xem task detail, cập nhật assignee/trạng thái | TaskCreate, TaskDetail |
| Quick View & Personal Task | Xem nhanh task, danh sách task cá nhân, action trong bảng | QuickViewTaskDetail + components MyTask, ProjectTable, TaskAssigneeSelect |
Liên kết Modules
- ecommerce — tour dịch vụ sinh
project_task, task ảnh hưởng service fulfillment - report — tour income và task report lấy dữ liệu từ project domain
- user — assignee, branch member, project member display
- settings — task status, task tag, subtask, project label được cấu hình ở settings
Backend Services
| Service | Vai trò |
|---|---|
| controller (Hasura) | CRUD project/project_task và các function tìm kiếm thống kê |
| ecommerce-api | Event handlers cho project_task, assignee, comment, file |
Databases
| DB | Key tables / functions |
|---|---|
| project | project_task, rating/task stats functions, tour income functions |
| ecommerce | Dữ liệu order/service liên kết task |
Đặc điểm kiến trúc
- Module dùng ít page nhưng số component cao vì phần lớn độ phức tạp nằm ở bảng task, assignee, permission và helper compositions.
module.tscho thấy navigation không chỉ có project management mà còn gắn một entryHoàn Tiền, dấu hiệu route tree này đang ôm thêm vận hành liên quan task/order.- Event handlers backend tập trung mạnh vào vòng đời
project_taskhơn là project shell.
Deep Dives
- task-lifecycle-and-tour-income — deep-dive audit cho
project_task, assignee/status/comment/file events, doctor commission, tour income, KPI/report coupling và các bug runtime nổi bật