feat(profile): add mokosh-side Profile page, rename hub link to Account Settings #80
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psa-systems/mokosh-apps!80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mokosh-profile-page"
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?
The UserMenu previously had a single "Profile" entry pointing at bunyip-web's
/settings. That conflated two distinct surfaces:userstable (first / last name, title, phone, mobile, timezone). These describe the user inside a specific PSA tenant and have no analog on the Bunyip side.The menu now exposes both:
/profileSPA route, served bypages::profile::ProfilePage. ReadsGET /api/v1/auth/me, writesPUT /api/v1/auth/mewith the editable fields only (server-sideupdate_current_useralready strips role/status fromUpdateUserRequest, so the form does not need to). Internal route, usesLinkso the SPA transitions without a full reload./settings(renamed from the old "Profile"). External origin, uses<a>so the browser actually navigates.The Profile page itself opens with a read-only identity strip (email + role + a link back to Account Settings on the Bunyip hub) so users understand which fields live where; the editable form below covers the six tenant-scoped fields.
No mokosh-server changes: the
/api/v1/auth/meGET + PUT endpoints already exist and already gate role / status updates. No bunyip-side changes either; the existing/settingspage picks up the new link unmodified.