Repository navigation
Fixes 35875: user profile readable in AI mode dark theme; faster activity feed - #35893
Conversation
…er profile cards for dark mode
…chip colours, test explicit All ontologies
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
…viders, drop redundant argument
… for checkstyle
…n link buttons, move the Studio fallback rule to scope utils
…-profile-ontology-default
…-profile-ontology-default
…tology-default' into fix/ui-review-p1-dark-profile-ontology-default
…erriding Button styles
…-profile-ontology-default # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedCardNew/ActivityFeedcardNew.component.tsx
… out of components
…tology-default' into fix/ui-review-p1-dark-profile-ontology-default
🚦 Removed from the merge queue —
|
Code Review ✅ Approved 5 closed / 5 findings🟡 Medium risk · Deferring rich-text feed editors until cards approach the viewport changes rendering timing and could leave descriptions unavailable if visibility detection fails. Fixes the user profile page in AI mode dark theme by moving profile cards to Tailwind tokens and core components, and defers activity feed description rendering until cards near the viewport with a skeleton placeholder. Resolved this session: the feed preview min-height no longer pads short messages, text-less messages keep the skeleton with the preview hidden, the reply button no longer overrides core Button styles with !important, ButtonUtility onPress calls now type-check, and feed preview skeleton readiness logic is covered by tests. No open issues found. ✅ 5 closed✅ Edge Case: 3em min-height stays after mount and pads short feed messages
✅ Edge Case: Text-less feed messages keep the skeleton and the preview stays hidden
✅ Quality: Reply button overrides core Button padding/radius with !important
✅ Bug: ButtonUtility props don't declare onPress, so these calls fail tsc
✅ Quality: No tests for the feed preview skeleton readiness logic
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 #35875
This fixes two problems on the user profile page (
/users/<name>), which a UI review rated P1:The profile cards now use Tailwind tokens and core components instead of LESS. They are readable in dark mode and unchanged in light mode.
Profile cards on Tailwind and core components
UserProfilePersona,DomainLabel,UserProfileTeams,UserProfileRoles,UserProfileInheritedRoles).user-profile-card,user-profile-card-header,user-profile-card-body,user-page-iconanddefault-persona-textfor Tailwind tokens:tw:bg-surface,tw:border-secondary,tw:rounded-xl, and the same spacing.background: whitewith text that flips to near-white, so they were unreadable in dark mode.ProfileSectionUserDetailsCard): it droppedprofile-section-user-details-card,profile-details-title,profile-details-emailanduser-details-menu-icon.tw:text-primary; it used--om-color-gray-900, which stayed near-black on the dark card.tw:text-brand-secondary.users.less: the rules for those classes are deleted, and no new LESS is added. One existing rule value,.domain-link-name:hover, moves to the brand token, which is the same colour in light mode.@openmetadata/ui-core-components/iconsinstead ofic-persona.svgandic-roles.svg, which had#292929baked in and vanished on dark cards. Each is the closest core match to the old design:ActivityOwnerChanged, a person with a gear, the same design as before.Role, an ID card with a person and text lines. Core has no exact match for the old stacked badge.Chip): it uses coreBadge color="brand", which follows the theme, instead of the white.chip-textfill.ml-8indent), and the Domains divider gets the sametw:mx-2as the other cards.useMemo/useEffectdependency lists flagged inDomainLabel,UserProfileRolesandUserProfileTeamsare complete.fetchRolesis a stableuseCallback, so this changes no behaviour.Activity feed descriptions took ~40 s to appear (
components/ActivityFeed/ActivityFeedCard/FeedCardBody/FeedCardBodyNew.tsx)RichTextEditorPreviewNew, which mounts a full read-only TipTapBlockEditor. The Activity tab mounted all 51 at once./users/admin: 51 editors, 38.9 s of main-thread long tasks, and a single 21.9 s freeze.DeferredWidget(already used by the home page). It mounts the editor only when the card is within 200 px of the viewport and keeps it mounted afterwards.DeferredWidgetmounts eagerly in Jest and withoutIntersectionObserver.Skeletonuntil its preview has rendered content.MutationObserverswaps it in.DeferredWidgethas nominHeight, so the skeleton holds the space only while loading.useMemodependency lists are complete. The second memo listshandleSave, so editing a post still saves the latest text. The unusedisPostis no longer destructured; the props interface is unchanged.Feed card header alignment (
components/ActivityFeed/ActivityFeedCardNew/ActivityFeedcardNew.component.tsx): the entity icon and link next to "created" were an inline flex box. That sat it on the text baseline, about 2 px above "created". It is now a regular flex box, so "created" and the link text both span 145–162 px, and the icon is centred.Feed card footer alignment and hover (
ActivityFeedCardV2/FeedCardFooter/FeedCardFooterNew.tsx,ActivityEventFooter.tsx)tw:h-10!) next to a 22 px reaction button. So the reaction icon sat 10 px lower than the comment icon, and hovering the comment drew a tall, thin pill.ButtonUtilitywithsize="sm"andcolor="tertiary". That is a 24 px rounded square with an 18 px icon frame, the repository's minimum touch target, with no caller-side padding, radius or!importantoverrides. The classic add-reaction button, 22 px before this PR, uses the sameButtonUtility, so all items share one centre line and the same small hover square. The Inbox pill reaction button is unchanged.xsavatar in anxsButtonUtility(28 px), inside a 28 pxAvatarStackslot, centred with the icons. A 3 px margin after the stack evens out the visible gaps, because the avatar fills its button while the icons sit inside padding. The footer row gap is 4 px.ic-reply-2.svgandic-add-emoji.svg. Those SVGs had different greys baked in (#71717Aand#52525B), so the two icons never matched and ignored the theme. The SVG files themselves are unchanged.Comment, in the conversation footer, the activity footer and the task card.Reactions, a smiley with a "+" like the old icon. The Inbox pill keeps theFaceSmileit already used.rgb(123, 127, 134)in dark andrgb(113, 118, 128)in light.No core-component files are changed.
Type of change:
High-level design:
N/A — a scoped styling fix.
Tests:
Use cases covered
/users/<name>in AI mode + dark theme: cards, name, icons, chips and dividers are readable on every tab (Activity, Tasks, My Data, Following, Permissions, Custom Properties, Access Token).Unit tests
npx jest src/components/Settings/Users src/components/common/DomainLabel src/components/common/Chip src/components/ProfileCard src/components/ActivityFeed: 352 passed.tsc: no errors in changed files.tw-audit,token-auditandtw-guardare clean.Backend integration tests
NOT NEEDED — UI-only change, no Java, schema, migration or pom files touched.
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
/users/admin. It looks as before.UI screen recording:
This was recorded against a running Collate Docker stack (
collate_server2.0.0-SNAPSHOT, MySQL, Elasticsearch), with real server data and no route mocks. The UI is this branch's code, served by the Collate dev server (collate-ui, Vite) through the submodule. AI mode and its dark theme are Collate surfaces. The profile code shown has not changed since it was recorded. An on-page caption shows each step and the live URL.User profile
/users/admin(AI mode, light → dark via user menu → Appearance → Dark, then every tab):Screen-Recording.59.mp4
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.mdand fixed every 🔴 finding.🤖 Generated with Claude Code


Confidence Score: 5/5
The changes appear safe to merge; no blocking issue remains from this review.Summary
The PR updates user-profile cards to use theme-aware styles and defers rich-text previews until feed cards approach the viewport. It also updates footer buttons, icons, accessible names, and related tests.
Reviews (34) · Last reviewed commit: "test(ui): drive the feed footer tests th..." · Reviewed by Greptile