Skip to content

Show persona users with the hover card and an Email column - #37998

Merged
shah-harshit merged 5 commits into
mainfrom
shah-harshit/persona-users-name-email
Nov 17, 2026
Merged

shah-harshit merged 5 commits into
mainfrom
shah-harshit/persona-users-name-email

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Part of open-metadata/openmetadata-collate#6243 (consistent user display name & hover card). This is the last user table that rendered users as plain text.

Persona › Users showed each user's name as plain text: no hover card and no unique identifier. It now matches the other user tables after #37127:

  • Name: renders through UserPopOverCard (display name, falling back to the login), so it is hoverable and links to the user. The search document's displayName is passed, so it needs no extra request.
  • Email: new column using getUserIdentifier, which shows the email, or the login when the email is missing or PII-masked. It tells users who share a display name apart.

data-testid="persona-user-name" stays on the Name cell.

Type of change:

  • Improvement

High-level design:

N/A: one table, reusing UserPopOverCard and getUserIdentifier from #37127.

Tests:

Use cases covered

  • The name renders through the hover card, keyed by login.
  • The Email column shows the email, or the login when the user has none.

Unit tests

  • PersonaUsersTab.test.tsx: card and Email column assertions added. jest src/components/discovery/personal-space/Profile/tabs/personas: 174 passed.
  • make ui-checkstyle-changed: clean, no diff. tsc: no errors in changed files.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable.

Playwright (UI) tests

  • Not run locally. No spec asserts Persona › Users name text; PersonaFlow.spec.ts covers the persona users flow (pending, merge queue).

Manual testing performed

Collate UI dev server (OSS = this branch) against a local Collate server. I opened Settings › Personas › jane-demo-persona › Users (user jane.doe, display name "Jane Doe"). Before: plain-text "Jane Doe", no Email column. After: "Jane Doe" link with hover card, and Email jane.doe@example.com.

Screenshots

Before = the local server's own UI (main before this change); after = this branch. Light theme.

Surface Before After
Persona › Users persona-users-before persona-users-after
Hover card on the name — persona-users-hover-after

UI screen recording:

Not applicable: improvement to an existing table.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have added tests and listed them above.
  • Self-review: 12fa6f1 reviewed against REVIEW.md; no 🔴.
  • Decision check: not applicable.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues were found.

Summary

Persona users now have linked names with hover cards and an Email column.

  • Persona user rows show a linked name and an email-or-login identifier.

Reviews (4) · Last reviewed commit: "Don't seed the profile cache from person..." · Reviewed by Greptile

Persona › Users rendered the name as plain text with no hover card. The
name now renders through UserPopOverCard, and an Email column (the email,
or the login when it is missing or masked) tells users who share a display
name apart, matching the other user tables.
@shah-harshit
shah-harshit requested a review from a team as a code owner November 17, 2026 15:42
@shah-harshit shah-harshit added the UI UI specific issues label Nov 17, 2026
@shah-harshit shah-harshit added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 17, 2026
@shah-harshit shah-harshit self-assigned this Nov 17, 2026
…en a name is passed

- PersonaUsersTab seeds the shared profile cache with the users its bulk
  search returned, so each row's name and avatar read it instead of calling
  getUserByName once per user.
- UserPopOverCard does not look the user up when a displayName is passed.
- The persona test renders the real UserPopOverCard with getUserByName
  mocked: it checks the visible name and link, the email fallback, and that
  no per-user request is made.
Move the displayName check that skips the user lookup into useUserLabel,
and format the card test.
User search documents can lack profile after a reindex, so writing them into
userProfilePics replaced cached photos with initials for the session. Pass
the searched display name to the card instead: the label needs no lookup and
the avatar loads through its usual shared cache. Test that a cached photo
survives opening the tab.
@gitar-bot

gitar-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Adding linked user cards and an email-or-login column changes persona identity display; stale search data could show outdated names or identifiers.

Persona › Users now renders each user's name through the hover card with a link to the user, and adds an Email column that shows the email or falls back to the login. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@shah-harshit
shah-harshit enabled auto-merge (squash) November 17, 2026 16:35
@shah-harshit
shah-harshit merged commit eaa97b0 into main Nov 17, 2026
56 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/persona-users-name-email branch November 17, 2026 16:49
shah-harshit added a commit that referenced this pull request Nov 18, 2026
* test(playwright): refresh stale 2.1 visual baselines and fix shell menu scenes

Refresh 32 baselines from the 2.1 nightly (run 44266671648) actuals. Every
diff traces to an intended change that arrived with the main merge: Tableau
connected-app auth option (#37084), 400px entity summary panel (#37888),
unified CopyButton (#37953), new Insights/AdvancedSearch icons (#37973),
Data Estate connector counts (#37910) and the users Name/Email columns
(#37127, #37998).

shell-profile-menu and shell-mode-menu waited for my-data-page, which
#38077 removed from /my-data in AI mode; wait for home-landing-page.

* test(playwright): complete 2.1 shell and expanded Tableau baselines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants