Repository navigation
Fix four activity feed bugs: entity-link popover, AI-mode domain filter, no-op button, vote toast - #39733
Conversation
e910968 to
76e4712
Compare
✅ Playwright Results — workflow succeededValidated commit ✅ 55 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky ✅ All tests passed. The PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 38m 20s ⏱️ Max setup 11m 44s · max shard execution 2m 21s · max shard-job elapsed before upload 17m 15s · reporting 3s 🌐 115.81 requests/attempt · 1.31 app boots/UI scenario · 0.00% common-shard skew
Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…nk hover A conversation about a user or team wrapped its entity link in a popover given the post author, so hovering the link opened the author's card. Give the popover the linked user or team, with the team type for teams.
…cked domain The domain interceptor exempts an asset's own activity, but only matched /activity/entity/, which the classic tab calls. AI mode reads the same tab from /activity/about and /activity/mentions with an entityLink, so it gained the picked domain and the backend filtered on it. Treat any activity request that carries an entityLink as being about one asset.
… a press handler FeedPanelBodyV1New always gave its card role="button" and a tab stop. The classic feed tab renders it in the right panel without onFeedClick or onActivityClick, so keyboard and screen-reader users reached a button that did nothing. Add the role, tab stop, pointer cursor and key handler only when a handler is passed.
Voting on a task or glossary term that still needs other approvers showed a hardcoded English "Vote recorded.". Use the existing keys: message.vote-recorded-waiting-for-other-approvers for tasks (as TaskReviewVotes does) and message.vote-recorded for glossary terms (as GlossaryHeader does).
…der the complexity limit
76e4712 to
2a7b053
Compare
Playwright full suite on the activity feed cleanup stackPR CI skips Playwright here, so I ran the whole suite on the stack instead (
|
Only the conversation card's button path had a test, so dropping onActivityClick from the activity card's container props would have gone unnoticed.
Code Review ✅ Approved 🟡 Medium riskRemoving domain filtering from entityLink activity requests could change activity shown on asset tabs; the other fixes are localized feed interactions. Fixes five activity feed bugs: the entity-link popover now shows the linked user or team instead of the post author, AI-mode asset Activity tabs are no longer narrowed by the picked domain, the latest activity request wins when switching assets or users quickly, the feed panel card is a button only when it has a press handler, and the vote-recorded toast is translated. No issues found. 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:
Fixes #39651
Fixes #39652
Fixes #39655
Fixes #39656
Four small activity feed bugs, one commit each, and each with a test that fails on
main. They come from the activity feed cleanup (the classic tab and AI mode each built the same feature their own way).Based on
main. It was stacked on #39670, which merged on 2026-12-04; the branch is rebased ontomain. #39779 and #39791 are stacked on this PR.A fifth bug, #39653 (a stale activity response replacing a newer one), was dropped and the issue closed: it can't be reproduced in the UI, because the page remounts its provider when the asset changes. The trace is in the issue.
/activity/entity/, which the classic tab calls. AI mode reads the tab from/activity/aboutand/activity/mentionswith anentityLink. Any activity request carrying anentityLinkis now treated as being about one asset.role="button", a tab stop, the pointer cursor and the key handler only when a click handler is passed.message.vote-recorded-waiting-for-other-approversfor tasks andmessage.vote-recordedfor glossary terms. No new keys.A final small commit applies the formatter and moves one ternary into a helper, which keeps the entity-link memo under the complexity limit.
Type of change:
High-level design:
N/A. Each fix is a few lines in one place, across 6 production files.
Tests:
Use cases covered
/activity/aboutand/activity/mentionswith anentityLinkkeep nodomain. The cross-asset feeds (/activity, and/activity/mentionswithoutentityLink) still get it.roleand notabindex.Unit tests
Each bug has a test that fails on
mainand passes here. I checked this by running each test with only that bug's production change stashed:domainis addedrole="button"33 suites (475 tests) pass across
components/ActivityFeed,hoc/withDomainFilter,Entity/Task/TaskTabandGlossary/GlossaryTermTab, on the branch rebased onto currentmain.tsc: no errors in the changed files. ESLint (0 errors), Prettier and organize-imports leave no diff.No Playwright spec, in OSS or Collate, finds the feed panel card by its button role.
Before / after
Captured against a local backend with the same data, before (the
mainfiles) and after (this branch):39651-popover.png: hovering a user or team link.39652-domain.png: the AI-mode Activity tab with a domain picked, including the requests sent.39655-focus.gif: Shift+Tab in the right panel.39656-vote-toast.png: the vote toast with the UI in French.UI screen recording:
Not applicable: these are standalone bug fixes, each covered by a test that fails on
main.Checklist:
Fixes <issue-number>: <short explanation>. It fixes five issues, so the title names the area instead.Fixes #<issue-number>above.REVIEW.mdand fixed every 🔴 finding, or answered it on the line below. Every bug fix has a test that fails onmain. No removed or renamed export, prop or test id is used by openmetadata-collate.docs/decisions/. Not applicable: UI: An asset's Activity tab in AI mode hides activity from other domains #39652 applies the interceptor's existing rule (an asset's own activity is not narrowed) to AI mode, and adds no new rule.🤖 Generated with Claude Code