Skip to content

Module Inventory — Diva Group

Tổng quan tất cả modules trong hệ thống. Cập nhật khi thêm/xóa module.

Summary

  • 21 FE modules (active), 100% đã đủ 3-layer docs
  • 11 deep-dive packages trên 10 modules cho các flow rủi ro cao
  • 408 FE pages/routes trực tiếp theo inventory hiện tại
  • 14 BE services (Go + Hasura)
  • 11 databases, 500+ tables
  • 3 platform variants: Admin, POS, CRM

Modules

ModuleScopeGroupsPagesDocsPriority
ecommerceĐơn hàng, kho, dịch vụ, sản phẩm, voucher7135🟢P0
salaryLương, import/export, dual-record612🟢P0
walletVí, giao dịch, commission, refund30🟢P0
userNhân viên, khách hàng, branch, department418🟢P1
reportBáo cáo vận hành, doanh thu, CRM, KPI546🟢P1
crmCRM khách hàng, ticket, assignment317🟢P1
notificationEmail, SMS, ZNS, push412🟢P2
projectsDự án, task, workflow tour36🟢P2
settingsCấu hình hệ thống và master data1091🟢P2
cmsContent, campaign, voucher, event530🟢P3
dashboard6 dashboard điều hành66🟢P3
kpiKPI definition, dashboard, metric log44🟢P3
affiliateCộng tác viên, referral, payout410🟢P3
achievementHuy hiệu cá nhân, phòng ban, program24🟢P3
gamificationLucky-shaking campaign, gift, notification15🟢P3
complaintKhiếu nại, thanh tra, bổ sung hồ sơ13🟢P3
conversationChat, hội thoại, call11🟢P3
timekeepingLịch làm việc, chấm công, import23🟢P3
authĐăng nhập, OTP, reset password14🟢P3
homepageLanding page sau đăng nhập11🟢P3
geoĐịa chỉ, subdivision, place lookup10🟢P3

Legend: 🟢 Đủ 3 layers | 🟡 Có overview | 🔴 Chưa có doc

Notes

  • Groups = số cụm nghiệp vụ chính trong overview.md.
  • Pages = số page/route trực tiếp của module; walletgeo không có page module-local riêng nên hiển thị 0.
  • Các module lớn như ecommerce, settings, report, user, notification, cms đang dùng pattern đa-domain nhưng vẫn được quản lý như một module trong inventory này.
  • Các package đào sâu flow lớn nằm dưới docs/modules/<module>/deep-dives/ và không thay thế 3-layer docs cơ bản.

Doc Layers

LayerFile patternNội dungViết bởi
1. Overviewoverview.mdModule scope, pages, actors, integrationPO + AI
2. Business Rules{domain}.mdLuồng nghiệp vụ, rules, RBAC, edge casesPO + AI
3. Technical Map{domain}.technical.mdRoutes, FE map, GraphQL/API, tables, findingsAI + source audit
4. Deep Divedeep-dives/<slug>/Flow audit, state machine, side effects, bug/drift registerAI + source audit

Deep-Dive Coverage

ModulePackages
affiliateapproval-and-payout
complaintcase-lifecycle
conversationruntime-and-provider-boundary
crmticket-workflow
ecommercerefund-withdraw, inventory-operations
gamificationlucky-shaking
kpilifecycle-and-notification
projectstask-lifecycle-and-tour-income
timekeepingrequest-working-schedule
wallettransaction-request-and-commission

Cross-module findings register: docs/modules/phase-2-findings.md

Phases

PhaseModulesStatus
Phase 1salary, wallet✅ Done
Phase 2ecommerce (core domains)✅ Done
Phase 3user, report, crm✅ Done
Phase 414 modules còn lại✅ Done
Phase 5Naming, structure, cross-links, inventory cleanup✅ Done