feat(web): admin currencies, exchange rates and settings (#46 slice A) #132
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/kws!132
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/46-admin-finance-settings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Admin portal slice A of #46, for the finance team: Currencies (
/currencies,admin_portal.administration.manage): list, create, edit (ledger account, GL code, default, active). Exchange rates (/rates,admin_portal.finance.manage): filters (from, to, active in the URL), offset paging, create, edit; the rate is an exact decimal string sent as typed (never parsed), windows entered in Nairobi time and sent as+03:00instants. Settings (/settings,administration.manage): every known key with its value or "Not set", set, change, unset with a confirm step, plus a note that the finance exports leave an unset GL code empty. Web only; no Go or OpenAPI change. Sharedapi.tsandforms.tshelpers now also serve the organizations module (behaviour unchanged).Reviews
Superpower Code Review, dual pass, per task and on the whole branch. After the final fix wave: Pass 1 (ponytail) Must fix empty; Pass 2 (correctness) Critical and Important empty. The whole-branch review found four Important bugs (rates filter lost on Apply, Reload then Save reverting another admin's untouched fields, duplicate currency code shown as a stale-version loop, settings dead ends on 409/404); all fixed with red-first tests.
Checks
make cover: 91.3% (minimum 80%), Go unchanged.scripts/web-e2e.sh: admin 101 passed / 1 skipped (68 + 33 new), ticket 207 / 58 unchanged.Rulings
/v1/currencies(finance-only staff cannot call the admin list).Known limits
🤖 Generated with Claude Code