fix(billing): friendly locked state for users without finance access (MAPPS-133) #101
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-133-billing-locked-state"
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
Replace the bare "You do not have permission to access billing pages" error string with a friendly locked state on the billing pages (invoices / payments) for users without finance access. Last open AC of MAPPS-133.
Changes
NoFinancePermissioncomponent: an information icon in a soft circle, a clear "Billing access required" heading, a sentence explaining access is limited to administrator and finance roles, and the viewer's current role for context.can_manage_billing), better UX for a genuinely unauthorized role.Context
The core MAPPS-133 defect (billing pages 403ing because the user's role was wrongly read as
technician) was fixed by PMS-158 (bunyip now emitsbunyip_role; the SPA sources the role from/api/v1/auth/me). This PR finishes the remaining acceptance criterion.Verification
cargo check --target wasm32-unknown-unknownandcargo fmt --checkclean. (The one host clippy hit isclippy::manual_checked_opson pre-existingprojects.rs:685, a lint that only exists in host rust 1.95; CI runs rust 1.94 where it does not fire.)🤖 Generated with Claude Code