feat(profile,nav): Mokosh Role label + Team nav behind runtime feature flag (MAPPS-329) #368
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!368
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-329-mokosh-role-label-team-flag"
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?
Two clarifications grouped because they fix the same identity-surface confusion:
Profile identity strip now reads "Mokosh Role: " with a "Bunyip hub role is separate." sub-line. The previous "Role: " against the mokosh-side role (Admin / Manager / Technician) was easy to read as Bunyip-admin too, which it is not; Bunyip's role lives behind Account Settings on the hub.
Team admin nav item is gated on a new runtime_config::flag_enabled("team_enabled") helper that reads window.MOKOSH_CONFIG.team_enabled. Hidden by default; flip MOKOSH_TEAM_ENABLED=true (or =1) on the mokosh-www container to expose it. Route::Team, the Team page, and the API stay intact - typing /team still works - so unlocking is a zero-code flip when the feature is ready. The oci-build/entrypoint.sh emit_field list picks up team_enabled alongside the existing api_base / oidc_issuer fields.
Companion to feat/MAPPS-329-auto-populate-profile-from-bunyip on the mokosh-server side, which stamps profile_completed_at when the Bunyip OIDC claims carry first + last so users no longer hit /onboarding/profile after BUNYIP-206.
#MAPPS-329
Two clarifications grouped because they fix the same identity-surface confusion: Profile identity strip now reads "Mokosh Role: <role>" with a "Bunyip hub role is separate." sub-line. The previous "Role: <role>" against the mokosh-side role (Admin / Manager / Technician) was easy to read as Bunyip-admin too, which it is not; Bunyip's role lives behind Account Settings on the hub. Team admin nav item is gated on a new runtime_config::flag_enabled("team_enabled") helper that reads window.__MOKOSH_CONFIG__.team_enabled. Hidden by default; flip MOKOSH_TEAM_ENABLED=true (or =1) on the mokosh-www container to expose it. Route::Team, the Team page, and the API stay intact - typing /team still works - so unlocking is a zero-code flip when the feature is ready. The oci-build/entrypoint.sh emit_field list picks up team_enabled alongside the existing api_base / oidc_issuer fields. Companion to feat/MAPPS-329-auto-populate-profile-from-bunyip on the mokosh-server side, which stamps profile_completed_at when the Bunyip OIDC claims carry first + last so users no longer hit /onboarding/profile after BUNYIP-206. #MAPPS-329