All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 2m53s
User request: 'review cap nhat va tai cau truc lai MD sao cho phu hop voi hien tai, cac phan thua va da dieu chinh co the bo ra luon hoac cap nhat lai'. Cleanup highlights: 1. Archive 2 file Phase 0 raw dump → docs/_archive/ (forms-spec-raw 657 line + workflow-raw 62 line). Update link reference 2 file goc. 2. Compact migration-todos.md 386 → 114 line (-71%). Collapse Phase 0-5 + Tier 3 + Sessions detailed thanh 1 bang summary. Detail xem session logs. Phase 6 iter 1+2 + Phase 7 active checklist. 3. Compact STATUS.md In Progress: bo ~17 row ✅ done (giu chỉ 5+ task pending: 3 PE feature gap + 4 optional polish + 2 Ops). Recently Done table giu day du history. 4. Update flows/README — tat ca 6 flow ✅ Implemented + them PE row reference architecture.md §9. 5. Update docs/CLAUDE.md — project layout co PurchaseEvaluations, _archive, skills 6 (3 dom + 3 ops). Roadmap them Phase 6 ✅ + Phase 7 WIP. Lien he them prod URL solutions.com.vn + SSH config + login admin. 6. Skill ef-core-migration: 13 migration label. Net delta: -800 line docs (chu yeu archive + collapse migration-todos).
2.0 KiB
2.0 KiB
Flows — SOLUTION_ERP
Document các luồng (process / sequence) chính của hệ thống. Mỗi flow có mermaid sequence diagram + API calls + side effects + edge case.
Index
| Flow | Phase | Trạng thái | Doc |
|---|---|---|---|
| Authentication — login, refresh, logout, /me | 1 | ✅ Implemented | auth-flow.md |
| Permission resolution — resolve menu + CRUD cho user (inherit Contracts/Workflows/PurchaseEvaluations/PeWorkflows roots) | 1 | ✅ Implemented | permission-flow.md |
| Contract creation — tạo HĐ draft + fill form template + 7 per-type Details | 2-3 | ✅ Implemented | contract-creation-flow.md |
| Contract approval — state machine 9 phase + versioned workflow per ContractType | 3 | ✅ Implemented | contract-approval-flow.md |
| Form render — template engine OpenXml/ClosedXML + LibreOffice PDF | 2 | ✅ Implemented | form-render-flow.md |
| SLA expiry auto-approve — hosted service 15-min check + warning 20% | 3 | ✅ Implemented | sla-expiry-flow.md |
| Purchase Evaluation — phiếu duyệt NCC tiền-HĐ + kế thừa HĐ | 6 | ✅ Implemented (UX iter 2) | (xem architecture.md §9 + database/schema-diagram.md §11) |
Quy ước đọc
- Actor: vai trò khi thực hiện (user role hoặc system)
- Entry point: ai/gì trigger
- API calls: controller + endpoint (hoặc internal service)
- Side effects: DB writes, file writes, notifications
- Edge cases: các path lỗi / alternate
Tất cả mermaid sequence/state/flowchart có thể render ở VS Code (extension Markdown Preview Mermaid), GitHub, Gitea, Gitea MD preview.
Liên quan
../workflow-contract.md— spec 9 phase + role matrix (domain-centric)../forms-spec.md— 8 form + mã HĐ format../database/database-guide.md— schema chi tiết