EDM-3449: Display org label in the user dropdown#667
Conversation
Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Summary by CodeRabbit
WalkthroughAppToolbar now derives an organization label from the organization guard context and displays it in the user dropdown menu toggle alongside the username. The component imports are updated with Flex layout utilities, MenuToggle rendering is restructured to conditionally show the organization label on a second line, and CSS alignment is adjusted for proper vertical spacing. ChangesOrganization Label in User Dropdown
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
This solution only works for the Standalone UI, needs a proper solution for the OCP plugin app. |
Always display the user's organization "Display name" (or its ID as a fallback).
When only 1 organization exists
When multiple organizations exists (with the organization selector)

We don't display the orgId in the case that there would be multiple orgs with the same display name.
There's limited space in this section, and in that case, users can use the Organization dropdown to identify their org.