pqhuy1987
e47ef1d4ee
[CLAUDE] FE-User: fix ProposalCreatePage workflow dropdown shape (latent S37 bug)
Follow-up cho bug flagged trong 75df04e. ProposalCreatePage (fe-admin + fe-user)
fetch /approval-workflows-v2 expect flat array, nhưng endpoint trả AwAdminOverviewDto
{types:[{applicableType, history:[...]}]} → workflows.data.map chạy .map trên object
→ TypeError/dropdown rỗng. Latent vì create-with-workflow chưa exercise UAT.
Fix: mirror pattern proven của ContractCreatePage + WorkflowAppDetailPage —
res.data.types.find(t=>t.applicableType===4)?.history.filter(isUserSelectable).
WorkflowDto +isUserSelectable. Render .map giữ nguyên (data giờ là array đúng).
Verify: tsc -b + vite build ×2 PASS (exit 0) · fe-admin/fe-user SHA256 identical
(91565D47...7697C771).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 10:19:17 +07:00
..
2026-05-27 13:39:10 +07:00
2026-05-28 16:19:42 +07:00
2026-05-28 15:06:12 +07:00
2026-05-28 15:06:12 +07:00
2026-05-28 16:19:42 +07:00
2026-05-30 10:19:17 +07:00
2026-05-28 15:51:14 +07:00
2026-05-28 15:51:14 +07:00
2026-05-30 10:14:34 +07:00
2026-05-30 09:44:00 +07:00