Repository navigation
Show users with a hover card where they render as plain text (backport 2.1 #37773) - #37835
Conversation
* Show users with a hover card where they render as plain text Announcements (feed card, settings table), Context Center documents and persona version history now render the user through UserPopOverCard, so they get the shared hover card and the display name it resolves. The owner feed chip and the read-only memory banner fall back to the login when an owner has no display name instead of rendering blank or the raw login. Clicking the user in a document row no longer opens the preview. * Let UserPopOverCard resolve display names for owners and feedback authors CreateMemoryModal, KnowledgeCard and FeedbackApprovalTask passed getEntityName(ref) as displayName. getEntityName falls back to the login, so the prop always won and UserPopOverCard never looked up the display name for a reference without one. Pass the reference's own displayName instead. FeedbackApprovalTask also no longer renders a '-' user (and a lookup for it) when createdBy has no name. Also shortens an over-long eslint-disable comment in DocumentsView.test. (cherry picked from commit a9852c3)
❌ 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 |
…s 2.1 UserPopOverCard on 2.1 renders displayName ?? userName and the row only passes the login, so the display-name assertion would fail on the release branch.
2.1's UserPopOverCard renders displayName ?? userName, so an empty displayName left the name blank. Pass undefined instead in KnowledgeCard, the memory owner chip and FeedbackApprovalTask. The KnowledgeCard owner chip moves into its own component to stay within the complexity limit.
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsAdding user hover cards across announcement, document, version-history, and knowledge views changes interactions; incorrect click handling could disrupt previews or navigation. Backports the hover-card change that renders users as plain text on the 2.1 branch, adapting the DocumentsView test to 2.1's render helper. The E2E updated-by assertion that expected a display name the 2.1 UserPopOverCard cannot show was resolved by asserting the login instead. No open issues found. ✅ 1 closed✅ Bug: E2E assertion expects display name that 2.1 UserPopOverCard can't show
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Backports #37773 to
2.1.Part of #37117 and open-metadata/openmetadata-collate#6243
This cherry-picks a9852c3 (the squash of #37773). There is one conflict:
DocumentsView.test.tsxdiffers on 2.1 (it renders withrender, notrenderWithQueryClient, and the core-components mock is smaller). I took the 2.1 file and re-applied this PR's test changes on top: theUserPopOverCardmock, theBoxtest double forwardingonClick(with its justified eslint-disable), the updated-by assertion, and the "does not open the preview when the updated-by user is clicked" test. Product code applied cleanly.Depends on #37127 reaching 2.1. #37127 (
UserPopOverCardresolves the display name itself) is still open onmain. Until it lands on 2.1, the sites that only have a login (announcement author, document updater, version history author) show the login, now with the hover card. For that reason, theContextCenterPermission.spec.tsupdated-by check in this backport asserts the login (responseData.name), unlikemain. Switch it togetUserDisplayName()together with the #37127 backport.Type of change:
Tests:
--fix), organize-imports and Prettier on the 16 changed files: no errors and no changes.tscreports no errors in the changed files. ESLint onContextCenterPermission.spec.tsis clean.Features/ContextCenterPermission.spec.ts,Features/Announcements/*,Features/PersonaAIContext.spec.ts.Screenshots and the full description are on #37773. Collate 2.1 backport: open-metadata/openmetadata-collate#8582
Checklist:
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Adds user hover cards to announcements, document metadata, and version history.
Reviews (2) · Last reviewed commit: "Fall back to the login when an owner or ..." · Reviewed by Greptile