Skip to content

Feed card headers update and stay inside the card; dark chip, fade and editor colours - #36134

Merged
shah-harshit merged 9 commits into
mainfrom
shah-harshit/feed-card-header-overflow
Oct 23, 2026
Merged

shah-harshit merged 9 commits into
mainfrom
shah-harshit/feed-card-header-overflow

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Activity Feeds & Tasks headers and colours now match 1.13 and stay inside their cards for any entity name length.

1. Feed card headers ran past the card edge (e.g. conversation 📘 Comm… › Desc cut off).

  • List cards: one line, like 1.13: verb, entity icon and link, then › Field. The entity link takes what the verb leaves and truncates with an ellipsis. When the verb leaves less than a minimum (icon plus a few characters), the entity drops to the next line instead of overflowing. Below that, the verb itself wraps.
  • Side panel (a thread, or an activity opened from the list): like 1.13. The verb comes first, then the full entity name on its own line, wrapping by words, with the icon aligned to its first line. Activity events in the panel used list-card styling because the panel passes isOpenInDrawer, not showThread. The header now keys off either.
  • Root causes, all needed for an item to truncate inside its flex row:
    • Core HoverCard's trigger had min-width: auto. It now has min-w-0, so its max-w-full can actually shrink.
    • The header-item wrappers had min-width: auto. They now have min-w-0, and the verb item is first:shrink-0.
    • The avatar row, the header column (items-start) and the entity group were sized to their content. The avatar row and the entity group are now block-level, and the header column now stretches to the card.
    • max-one-line (a word-wrapped one-line clamp) showed only the start of the first word in a narrow card. List links now use truncate. white-space: normal on .activity-feed-card-new .header-link is removed so it applies; it was the only white-space rule on .header-link.

2. Dark mode on this page

  • Owner chips were white pills, with no gap and long names overflowing. .owner-chip used @grey-16, a fixed hex. It now uses var(--tw-background-color-tertiary): light #f5f5f5 (was #f4f5f7), and dark follows the theme. Wrapped chips get an 8px gap from each other and from the "Owners:" label, and long names truncate inside the card.
  • The "View more" fade in feed cards ended in the page colour, which showed as a dark band. Feed cards now set --markdown-clamp-fade-color: var(--tw-background-color-surface).
  • Comment editor: the placeholder was Quill's rgba(0,0,0,.6), invisible in dark. The placeholder, link tooltip and tooltip input now use the --tw-* bridge vars (--tw-text-color-placeholder, --tw-background-color-primary, --tw-border-color-primary, --tw-text-color-primary). These have values in light and in dark; the raw --color-* vars resolve to nothing in light.

3. Description task "View more" was a bordered button inside the diff's <pre>, so it rendered in monospace. It is now a link-style button outside the <pre>, like the description preview's.

#35893 changes only the entity group from inline to block, which this PR also does. On its own it still lets the field path overflow (checked with the same data).

Type of change:

  • Bug fix

High-level design:

N/A — layout and colour fixes.

Tests:

Use cases covered

Long glossary and term names (80+ characters) with:

  • conversations on the entity, Description, Tags and Synonyms;
  • description and tag tasks;
  • owner, tag and description change events;
  • checked in list cards and the side panel, in light and dark, against 1.13 (release-1-13) and 2.0.

Unit tests

  • src/components/ActivityFeed and TasksPage/shared: 289 passed.
  • Core hover-card: 7 passed.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not run locally (OSS PR).

Manual testing performed

Seeded the cases above through the API on a local stack, then measured in the browser:

  • no visible element extends past any card edge;
  • the link and › Field share a line in list cards.

UI screen recording:

Not applicable — styling fix. Screenshots:

Before (header overflow; white owner chip and unreadable editor placeholder in dark)

Overflow Dark
before overflow before dark

After

List cards (one line) and thread panel Activity in the side panel
after feed after activity panel
Owner chip, editor (dark) Tasks, View more (light)
after dark after tasks

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • Self-review: I reviewed the final diff against REVIEW.md and fixed every 🔴 finding.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The reviewed changes appear safe to merge.

Summary

Updates feed card headers and dark-mode colours.

  • Feed headers keep entity names and field paths inside their cards.
  • Feed chips, fades, and editor controls follow the active theme.
  • Description task links sit outside the monospace diff text.
  • The generated test map tracks updated profile and task pages.

No actionable new issues were found in the changes since the previous review. No previous review threads were supplied. Tests and browser checks were not run; the checkout has no installed UI dependencies.

Reviews (3) · Last reviewed commit: "Keep the conversation header verb unchan..." · Reviewed by Greptile

@shah-harshit
shah-harshit requested a review from a team as a code owner October 23, 2026 17:43
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Oct 23, 2026
@shah-harshit shah-harshit self-assigned this Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 983 → 992
- 13 added, 4 removed, 27 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/CustomPropertyCard/CustomPropertyHeader.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/TaskDetailPage.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/components/ChangePasswordRow.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/components/RolesRow.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/customProperties/CustomPropertyRow.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/customProperties/UserCustomPropertiesSection.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersUserDetail.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/MembersUserDetailBanners.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/tabs/members/useMembersUserDetailHeader.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/UserAssets/UserAssetCard.tsx
  … and 3 more

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/CustomPropertyCard/CustomPropertyCardList.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/CustomPropertyTable/CustomPropertyCard/CustomPropertyVersionList.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/MyData/components/MyDataAssetsList.tsx
  openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/components/UserAdminRow.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/e2e/Utils/appMode.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/isolatedUser.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/user/UserClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/activityAPI.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/aiProfile.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/apiResponse.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/customProperty.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/inbox.ts
  … and 17 more

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

@gitar-bot

gitar-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 3 closed / 3 findings

🟡 Medium risk · Feed-card wrapping and task “View more” placement change rendered content; layout regressions could obscure entity names or task details.

Feed card headers now truncate or wrap inside their cards for long entity names, matching 1.13, with dark-mode fixes for owner chips, the View more fade and editor placeholders. Resolved this session: the Quill tooltip no longer loses colours in light mode from self-referential raw --color-* vars, the clamp fade uses a proper colour reference instead of an undefined --om-color-* one, and the !important nowrap was removed. No open issues found.

✅ 3 closed
✅ Bug: Raw --color-* vars are self-referential: Quill tooltip loses colours in light

📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/feed-editor.less:394 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/feed-editor.less:885-889 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/FeedEditor/feed-editor.less:903-905
In core globals.css (@theme static), the light values are declared as --color-bg-primary: var(--color-bg-primary, …) (line 822), and --color-text-primary, --color-text-placeholder and --color-border-primary follow the same pattern (lines 755, 766, 781). Only .dark-mode gives them real values. A variable that refers to itself is a cycle, so it is invalid at computed-value time. In light mode this means the .ql-snow .ql-tooltip link tooltip and its input get a transparent background and no border, and the blank-editor placeholder loses its grey colour. Light mode is supposed to stay frozen, so this is a regression. The fix is to use the bridge vars, which have light values and flip under .dark-mode.

✅ Quality: New --om-color-* reference for the clamp fade colour

📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedPanel/feed-panel-body-v1.less:21
The styling rules say never to add new --om-color-* references and to use the --tw-* bridge vars instead. The new --markdown-clamp-fade-color: var(--om-color-bg-surface) adds such a reference. The card background on line 18 already uses the surface token. The fix is to use var(--tw-background-color-surface), so the fade always ends in the parent surface.

✅ Quality: tw:whitespace-nowrap! uses !important, which the styling rules forbid

📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardNew/ActivityFeedcardNew.component.tsx:264 📄 openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardNew/ActivityFeedcardNew.component.tsx:312
The styling rules forbid !important (tw:…!). This change adds tw:whitespace-nowrap! in two places, only to override the unlayered .header-link white-space rule. The fix is to remove or scope the white-space declaration in the .header-link LESS rule for list cards, so the plain tw:truncate/tw:whitespace-nowrap classes work without the important flag.

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

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.65% (130565/163918) 66.18% (46038/69557) 69.07% (26102/37788)

@sonarqubecloud

Copy link
Copy Markdown

@shah-harshit
shah-harshit added this pull request to the merge queue Oct 23, 2026
@shah-harshit shah-harshit changed the title Feed card headers match 1.13 and stay inside the card; dark chip, fade and editor colours Feed card headers update and stay inside the card; dark chip, fade and editor colours Oct 23, 2026
Merged via the queue into main with commit 5cbc32a Oct 23, 2026
87 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/feed-card-header-overflow branch October 23, 2026 19:39
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