Repository navigation
feat(ui): AI Profile — Members page (teams/users/admins/online) + E2E - #34607
Conversation
- Members navigation via local useState (like AccessControlPanel) instead of hash routing that did not propagate in the modal — fixes team-name, add-team, create-user navigation - Extract info widgets into MembersTeamInfoWidgets; core-ui import view - Encode fqn in hash utils; drag-move API parity; domain/owner edit in label row
- Members navigation via local useState (like AccessControlPanel) instead of hash routing that did not propagate in the modal — fixes team-name, add-team, create-user navigation - Extract info widgets into MembersTeamInfoWidgets; core-ui import view - Encode fqn in hash utils; drag-move API parity; domain/owner edit in label row
…LockUnlocked01)
…-profile-members-page # Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AIProfile/ProfileMembers.spec.ts # openmetadata-ui/src/main/resources/ui/src/components/Settings/Team/TeamDetails/TeamsHeaderSection/TeamsSubscription.component.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/profileNavConfig.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/Members.constants.ts # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersCreateUserForm.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersImportForm.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersPanel.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersTeamDetail.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersTeamInfoWidgets.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersUsersPanel.tsx # openmetadata-ui/src/main/resources/ui/src/locale/languages/ar-sa.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/de-de.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/es-es.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/fr-fr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/gl-es.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/he-he.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ja-jp.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ko-kr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/mr-in.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/nl-nl.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pr-pr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-br.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-pt.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ru-ru.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/sv-se.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/th-th.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/tr-tr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-cn.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-tw.json
Specs (playwright/e2e/Pages/AIProfile): ProfileMembers (landing nav + cross-surface navigation), ProfileTeam, ProfileUser, ProfileOnlineUser, with shared helpers in utils/aiProfile. UI fixes surfaced while writing the tests: - ProfilePage: clear the stale header override on a hash-driven tab change so team-detail -> user profile no longer shows the Members header - Users/Online panels: team/role link falls back to name when the ref has no fullyQualifiedName (was navigating to Organization) - Team detail: multi-select add-user popover (checkbox + update button); keep displayName on optimistically-added roles/policies - Import: break-word the abort message so it stays inside the card
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
# Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/profileNavConfig.tsx # openmetadata-ui/src/main/resources/ui/src/constants/Profile.constants.ts
ProfileNavItem.id is typed ProfileNavId and PROFILE_NAV_IDS is new Set(PROFILE_NAV_ID_LIST), both derived from the same tuple — a missing id is a compile error, so the runtime filter can never fail.
…indings - MembersPanel: key the Users and Admins branches so switching between them remounts MembersUsersPanel — both render the same component type and its fetch effects don't depend on isAdmin, so React was keeping the instance and showing the stale list. - MembersCreateUserForm: hoist a withoutId helper so the multi-select item handler no longer nests a filter five levels deep (sonarjs/no-nested-functions). - MembersPanel.test: destructure onRename in the MembersTeamDetail mock to satisfy react-hooks/exhaustive-deps.
The local formatter had reflowed imports to a non-prettier style; re-run prettier so the files match the CI prettier gate (2-space, sorted).
…tab in team add-user popover
…n Teams tab is hidden
…d team detail The deleted-aware canEditAll hides every manage action on a soft-deleted team, leaving an empty menu and no path to restore. Derive an ungated canRestore (DataAssetsHeader precedent) to gate Restore, show Delete for deleted teams (permanent-only via allowSoftDelete=false), and render a Deleted badge after the team name in the modal header.
PersonaSelect stripped the selected persona to {id,type}, so a team's
optimistic defaultPersona had no name and the widget rendered blank until a
GET re-inflated it. Keep name/fullyQualifiedName/displayName (valid PATCH ref
fields) and drop only the server read-only ones.
…ages Cap the dialog to the viewport (min-height:0 on the panel so the flex chain honours the cap) and clip the ModalOverlay so a long inner page (e.g. a big team table) scrolls in its own body instead of making the whole dialog scroll inside the fixed overlay. Also address Sonar warnings on the members tab: re-export LIST_CAP via export…from, and void the floating save() promise in the Enter handler.
- Members.utils: reuse GlobalSettingOptions enum for route segments - MembersAddTeamForm: resolve parent team via a useCallback+try/catch instead of inline then/catch in useEffect; combine map+filter into reduce - MembersCreateUserForm: move flattenTeamHierarchy/withoutId/mergeRoleItems to utils (TeamNode to types); make fetchers stable useCallbacks and drop the exhaustive-deps eslint-disables; stabilise the test's t mock
… drop dead re-export - Members.utils: move toImportRows, flatten/withoutId/mergeRoleItems, and the MembersPanel header-map builders (icons/descriptions/breadcrumb/title) here; dedupe view-type discriminants behind consts - Members.constants/types: host the import-result keys + row types - MembersTeamDetail.utils: drop the dead LIST_CAP re-export (consumers import it from PermissionsUtils directly) - playwright/aiProfile: add createMembersTeam + createTrackedUser; ProfileTeam/ ProfileUser delegate to them and instantiate Persona in beforeAll
Replace the exhaustive-deps disables with a latest-closure ref so each effect keys on its intended primitives (pageSize, showDeleted, timeWindow, team fqn, activeTab, …) while reading the current search term / fetchers without re-firing on every keystroke: - MembersUsersPanel: drop the redundant mount effect (it double-fetched with the pageSize/deleted effect) and fold it into one ref-driven effect - MembersOnlineUsersPanel, MembersTeamDetail, useMembersTeamHeader: same ref pattern; MembersTeamDetail reads activeTab via a ref so fetchTeam needn't list it. The one remaining disable (sequential team patch) is now justified inline — it genuinely needs the fetched id/diff.
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved 14 closed / 14 findings🔴 High risk · Adds workflows for admin-user creation and team role and policy membership changes Builds the AI-mode Profile → Members surface with Teams, Users, Admins, and Online Users panels, backed by comprehensive Playwright E2E coverage. The work surfaced and fixed 12 real bugs including import job spinner hangs, stale profile data races, team header display issues, and i18n key coverage gaps. No open issues remain. ✅ 14 closed✅ Bug: FAILED import job leaves the import form stuck on its spinner
✅ Bug: Final import shows success even when the result is Failure/Aborted
✅ Bug: socket.off without a handler removes the global CsvJobsTray listener
✅ Bug: Team detail header shows the raw FQN, and renaming never updates it
✅ Bug: Profile fetch races: stale/other user's data can stick or flash
...and 9 more closed from earlier reviews OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
| Count | Rule |
|---|---|
| 1 | react-hooks/exhaustive-deps |
| 1 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/common/UserTeamSelectableList/UserTeamSelectableList.component.tsx:332:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'init'. Either include it or remove the dependency array. |
| 🟡 | src/utils/TableUtils.tsx:72:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|



Describe your changes:
Fixes 6441
Builds the AI-mode Profile → Members surface (hash-routed, core-ui) — Teams,
Users, Admins and Online Users — and adds comprehensive Playwright E2E coverage
for it, porting the behaviours of the classic
Teams.spec/Users.spec/OnlineUsers.speconto the new UI.Along the way the E2E work surfaced and fixed several real bugs in the members UI
(navigation, display names, add-user affordance, import abort overflow).
Type of change:
High-level design:
components/discovery/personal-space/Profile/tabs/members/*— hash-drivenpanels (
MembersPanel→ team detail / users / admins / online / create / import),reusing
useSettingsHash, core-uiTable/Tabs/Select/Autocomplete, and theshared
SelectableList/UserTeamSelectableList. Cross-surface links go through asingle
profileHash+ProfileHashLinkthat writes the hash synchronously.ProfilePageclears the stale header override on hash-driven tab changes(team-detail → user profile no longer shows the Members header).
namewhen a team/role ref lacksfullyQualifiedName(was navigating to Organization).optimistically-added roles/policies keep their
displayName.break-words).playwright/e2e/Pages/AIProfile/Profile{Members,Team,User,OnlineUser}.spec.tsplaywright/utils/aiProfile.ts. Admin-authenticated via thepagesfixture; data created via API (
performAdminLogin); reliable waits, no timeouts.Tests:
Use cases covered
add/remove user, user count, show-deleted, add/remove role, add/remove policy,
child-team navigation, join/leave, soft-delete + restore, CSV export, CSV import
delete + restore, profile preferred-name / persona / default-persona / domain,
non-admin gating
Playwright tests
yarn lint:playwrightpasses (0 errors).Unit tests