Repository navigation
feat(loans): edit interest pause periods - #481
Conversation
E2E — mocked backend🎭 E2E Tests✅ All green — 341 passed · 0 failed · 0 skipped, across 27 spec files in 6m 51s. By spec file
All 341 tests — click to expand
Slowest 10 — what the shard counts should be tuned against
📼 Download the HTML report, videos and traces — see the Generated by run 34015841448 from |
E2E — real Fineract🎭 E2E Tests✅ All green — 72 passed · 0 failed · 0 skipped, across 22 spec files in 7m 21s. By spec file
All 72 tests — click to expand
Slowest 10 — what the shard counts should be tuned against
📼 Download the HTML report, videos and traces — see the Generated by run 34015841448 from |
What and why
Interest pauses could be created and deleted, but a mistyped date could not be corrected without removing the pause and creating a second record. This adds an edit action and guarded route, reuses the existing form in edit mode, pre-fills the selected variation, and saves it through the generated PUT operation.
The edit loader accepts both ISO dates declared by the generated OpenAPI model and the
[year, month, day]shape returned by older Fineract deployments. Delete failures are now left to the global error interceptor instead of being hidden in the console.Closes #283.
Verification
loan-servicing-gaps.spec.ts14/14 passed with one worker, including list -> edit -> save and an exact PUT URL/body assertionnpm run lintnpm run i18n:checknpm run check:iconsnpm run typecheck:e2eThe complete unit suite currently reports 1,343 passed and 37 failures in the unrelated loan-product and fixed-deposit-product accounting specs. I reproduced the same 37 failures after stashing every change in this PR and running against clean
upstream/main.A real-backend e2e was not run locally because Docker is unavailable on this machine. The PUT method, path, parameter order, and request shape were cross-checked against
LoanInterestPauseApiResource,InterestPauseRequestDto, and Fineract'sVerify interest pause updateacceptance scenario.Screenshots
Not attached. The UI change is the standard
create-outlinerow action and the existing form with an edit title; the complete workflow is exercised by the mocked Playwright test above.Checklist
src/app/api/.