da30e270c8c89e95421a80bc4ad6dd9e31b8b1e9
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 3m7s
Run #196 CI FAIL: K7 tests assume Phase=DaDuyet (Plan K K2 original semantic). L1 (`f3db9e6`) refactor Service ApproveV2Async F2 branch sang advance pointer tới NV cuối (Phase giữ ChoDuyet) — bro UAT correction. Em main quên update K7 tests cùng L1 commit → test_infra FAIL → CI block deploy. L2 (`10ddc87`) + L3 (`f212f04`) inherit failure → bundle hash unchanged prod (admin/user vẫn CRsX6cFo/X7qb4Zl4 K11 baseline) → L1+L2+L3 KHÔNG deploy. Fix 2 test assertions match new L1 semantic: 1. ApproveV2_SkipToFinal_AdminTickFlag_AdvancesToLastSlot (rename từ _SetsPhaseDaDuyet): - Phase.Should().Be(ChoDuyet) — giữ ChoDuyet KHÔNG terminal - CurrentWorkflowStepIndex.Should().Be(1) — lastStepIdx (Bước cuối) - CurrentApprovalLevelOrder.Should().Be(2) — lastLevelMaxOrder (Cấp cuối) - SlaDeadline.Should().NotBeNull — SLA reset 7d cho NV cuối - Changelog assertion: "Approver skip thẳng" (text mới) 2. ApproveV2_SkipToFinal_FlagOff_Admin_BypassesFlagCheck: - Phase.Should().Be(ChoDuyet) - Pointer advance tới (1, 2) - Changelog "Approver skip thẳng" 3. ApproveV2_SkipToFinal_FlagOff_NonAdmin_ThrowsConflictException — UNCHANGED (ConflictException semantic giống L1 — flag check trước advance). Verify: - dotnet test SolutionErp.slnx 104/104 PASS (58 Domain + 46 Infra) - 3 Approver F2 tests all green Pattern lesson saved: Service refactor → update test cùng commit (test-before §7 rule). Em main vi phạm UAT mode skip dotnet test mỗi chunk → CI catch retroactive. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
SOLUTION_ERP
Hệ thống quản lý Hợp đồng Nhà cung cấp / Thầu phụ / Tổ đội cho Công ty TNHH Xây dựng Solutions.
📘 AI context:
CLAUDE.md(pointer) →docs/CLAUDE.md(full)
Quick start (dev)
Yêu cầu: .NET 10 SDK, Node 20+, SQL Server (local hoặc qua Docker).
# 1. DB — chạy SQL Server qua Docker (nếu chưa có local)
docker compose up -d
# 2. Backend — migration + run Api (port 5443)
dotnet ef database update --project src/Backend/SolutionErp.Infrastructure --startup-project src/Backend/SolutionErp.Api
dotnet run --project src/Backend/SolutionErp.Api
# 3. Frontend admin (port 8082) — terminal mới
cd fe-admin
npm install
npm run dev
# 4. Frontend user (port 8080) — terminal mới
cd fe-user
npm install
npm run dev
Admin mặc định (sẽ seed sau Phase 1): admin@solutionerp.local / Admin@123456
Architecture
fe-admin (:8082) fe-user (:8080)
│ │
└────── /api proxy ──────┘
▼
SolutionErp.Api (:5443)
│
┌──────────────┼──────────────┐
▼ ▼ ▼
Application Domain Infrastructure ── SQL Server
Tech stack
- Backend: .NET 10 + Clean Architecture + CQRS (MediatR) + FluentValidation + AutoMapper + EF Core + ASP.NET Identity + JWT
- Frontend: React 18 + Vite + TypeScript + Tailwind + shadcn/ui + TanStack Query
- DB: SQL Server 2022
- Deploy: Windows Server + IIS
Roadmap
| Phase | Tuần | Focus |
|---|---|---|
| 0 Draft | T1 | Scaffold, parse FORM + QUY_TRINH |
| 1 Alpha Core | T2-4 | Auth, Permission, CRUD master |
| 2 Form Engine | T5-6 | Render template docx/xlsx |
| 3 Workflow | T7-9 | State machine 9 phase |
| 4 Report + Polish | T10-11 | Dashboard + Excel export |
| 5 Production | T12-13 | CI/CD IIS, UAT, go-live |
Chi tiết ở docs/changelog/migration-todos.md.
License
Proprietary — Công ty TNHH Xây dựng Solutions.
Description
Languages
C#
55%
TypeScript
42.7%
PowerShell
1.3%
JavaScript
0.3%
CSS
0.3%
Other
0.3%