Skip to content

Fixes #34636: Inbox on the standard page shell, plus Inbox and My Data dark mode - #34637

Merged
shah-harshit merged 10 commits into
mainfrom
fix/inbox-dark-mode
Oct 5, 2026
Merged

shah-harshit merged 10 commits into
mainfrom
fix/inbox-dark-mode

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #34636

Dark-mode fixes for the AI-mode Inbox and My Data pages. The Inbox also moves onto the standard page shell.

  • Inbox shell → standard PageLayout: every other app page (Data Quality, Alerts, Connections) uses PageLayout › PageLayout.PageHeader › PageLayout.Content. The Inbox built its own shell instead: a PageHeader stripped of its card (no radius or border, a bottom rule instead) over a bg-primary box, edge to edge. Its header and content backgrounds therefore differed from the other pages, most visibly in dark, where bg-primary is darker than the page surface. It now uses the same core composition, an unmodified header card, content on the page surface, and Data Quality's insets (8px inside the header edge, 16px below it). This is an intentional layout change in both themes.

  • Feed reactions → core (no more LESS): the shared Reactions / Emoji / Reaction components were antd Button / Popover with reactions.less, and the Inbox carried activity-feed-item.less only to re-size those antd buttons into one row.

    • The add-reaction trigger is now core Button + PopoverTrigger / Popover.
    • Reacted-emoji pills are a core Button (22px, with a brand outline when you've reacted), with the reactor list in a core HoverCard.
    • Picker emojis are core buttons, with a brand tint when already reacted.
    • Both LESS files are deleted, and nothing else used their classes. All data-testids are unchanged.
    • Because Reactions is shared, the entity Activity Feed also picks this up (screenshot below).
    • inbox-comment-composer.less stays. It only styles Quill's third-party markup (toolbar, mention list, link tooltip, ::before content), core has no editor to replace it with, and it uses no antd.
  • Triage comment composer:

    • the footer was bg-primary, darker than the detail panel in dark; it now matches the panel;
    • Quill's rgba(0,0,0,.6) placeholder was invisible in dark; it now uses the placeholder token;
    • toolbar icons were Quill's fixed #444 stroke, while @ / # were near-white; they now share one muted tone in dark.
  • Activity timeline line: the vertical line linking the avatars was utility-gray-blue-100, which flips to gray-blue-900 in dark and disappears against the page. It now uses border-primary in dark only; light is unchanged.

  • Activity feed hover: the message card hovered to tw:bg-white, so in dark the hovered row became a white box with unreadable light text. It now hovers to bg-surface, which is white in light and raised in dark.

  • My Data stat cards:

    • the cards move from bg-primary, which is darker than the page in dark, to bg-surface, as Explore's panels use;
    • FeaturedIcon's gray/light theme switches to a solid grey block in dark, so the call site adds dark variants of its gray-blue tint (the utility-* scale flips per theme).
  • My Data asset list: the container is raised (bg-surface) with its divider on border-secondary in dark, matching Explore's results column.

  • User avatars (ProfilePicture, core OwnerChip): these were painted with inline HSL, which can't follow the theme. The hue is now passed as a --avatar-hue CSS variable, and classes choose the lightness per theme:

    • light reproduces the original hsl(h,100%,92%) / hsl(h,70%,40%) exactly;
    • dark draws a deep tint, a light glyph and a ring in the same hue. Previously the ring took its colour from the initial, so it could mismatch the fill.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Hovering an activity item in dark keeps its message readable.
  • My Data stat cards, icon tiles and the asset list use theme-correct surfaces in dark.
  • User avatars are dark-tinted in dark and unchanged in light.

Unit tests

  • ProfilePicture.test.tsx covers the hue variable, the light/dark classes, and the matched ring only when matchRingToFill is set. Related jest: 827 suites pass. Core owner vitest: 11/11 pass.

Playwright (UI) tests

  • Not applicable: styling-only change; data-testids and behaviour are unchanged.

Manual testing performed

  1. Seeded nine Triage tasks assigned to admin on a local backend (description, tag, ownership, tier, domain, approval, DQ review, access request, custom), with mixed priorities, overdue and future due dates, one closed task and one task with comments. I then reviewed the list, the selected/hover cards, the detail panel, comments and the Closed bucket in both themes.
  2. Ran the app against a local backend in AI mode, in light and dark.
  3. Measured computed colours:
    • stat card: #0c0e12 → #22262f;
    • icon tile: #61656c solid → gray-blue-950 tint;
    • owner avatar: rgb(248,255,214) → rgb(70,79,34) in dark, with light unchanged;
    • hovered activity card: white → #22262f.
  4. My Data and the activity-hover fixes: pixel-diffed light mode before and after; identical. The Inbox shell change intentionally changes the frame in both themes (see screenshots).
  5. Measured the Inbox against the AI-mode Data Quality page: the header card is inset 8px and the filter row sits 16px below it, the same as DQ.

UI screen recording / screenshots:

Final state on the latest commit, light (left) and dark (right).

Inbox → Activity: standard page header card, timeline line, reactions:
activity light dark

Activity item hovered: the message card becomes a raised surface (before, dark showed a white card with unreadable text):
activity hover light dark

Inbox → Triage with seeded tasks and a comment thread:
triage light dark

My Data: raised stat cards, tinted icon tiles, owner avatars:
my data light dark

Entity Activity Feed with core reactions (feed card + detail panel):
entity feed light dark

Reaction on a reply (pill with brand outline + add-reaction button):
reply reaction light dark

Before → after

Inbox next to the AI-mode Data Quality page (dark): same header card, insets and page surface.
dq vs inbox

Inbox shell, before → after (dark):
inbox before after dark

Inbox shell, before → after (light):
inbox before after light

My Data in dark, before (left) and after (right): raised stat cards, tinted icon tiles, dark-tinted owner avatars.
my data dark before/after

Triage comment composer in dark, before → after (footer surface, placeholder, toolbar icons):
composer dark

Activity timeline line in dark, before → after:
timeline dark

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added a test that covers the exact scenario we are fixing.

- Activity feed message card hovered to `bg-white`, so in dark the hovered
  row turned into a white box with unreadable light text. Hover to
  `bg-surface` (white in light, raised in dark).
- My Data stat cards sat on `bg-primary`, darker than the page in dark;
  use `bg-surface` like Explore's panels. FeaturedIcon's gray/light theme
  switches to a solid gray block in dark, so keep the gray-blue tint with
  dark variants (the utility scale flips per theme).
- My Data asset list container is raised (`bg-surface`) with its divider
  on `border-secondary` in dark, matching Explore's results column.
- User avatars (ProfilePicture, core OwnerChip) were painted with inline
  light HSL that cannot follow the theme, leaving pale 92%-light bubbles on
  dark surfaces. The hue now travels as a CSS variable and classes choose
  the lightness per theme; light reproduces the original HSL exactly and
  dark draws a deep tint, light glyph and a ring in the same hue.

Light mode is pixel-identical on /inbox/activity, /inbox/tasks and
/my-data.
@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 5, 2026
@shah-harshit shah-harshit self-assigned this Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This 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 skip-pr-checks label.

The rail was utility-gray-blue-100, which flips to gray-blue-900 in dark
and disappears against the page surface. Use border-primary in dark only;
light keeps its gray-blue line.
- The composer footer was bg-primary, darker than the detail panel in dark;
  it now matches the panel (bg-secondary in dark).
- Quill's placeholder is rgba(0, 0, 0, 0.6), invisible on dark; use the
  placeholder token in dark.
- Quill draws toolbar icons with a fixed #444 stroke (near-invisible on
  dark) while the @ / # text buttons took near-white text; give every
  toolbar icon one muted tone in dark.

Light mode is unchanged.
The dark muted-icon override outranked Quill's button:hover / .ql-active
rules, so toggled formats looked idle. Scope it to idle buttons only;
hovered and active buttons keep the brand highlight.
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 35b61bf277935430f42d40e9b1aec9e401a08c0e in Playwright run 37318748583, attempt 1.

✅ 3427 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 2 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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) 1h 9m 33s

⏱️ Max setup 4m 30s · max shard execution 19m 51s · max shard-job elapsed before upload 23m 52s · reporting 9s

🌐 213.53 requests/attempt · 2.02 app boots/UI scenario · 36.86% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 36.86% (convergence target: at most 15%).
  • Browser traffic was 213.53 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.02 per UI scenario (7326 boots / 3629 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 64 0 0 0 0 0
✅ Shard advanced-search-02 66 0 0 0 0 0
✅ Shard chromium-01 154 0 0 0 0 0
✅ Shard chromium-02 160 0 0 0 0 0
✅ Shard chromium-03 159 0 0 1 0 0
✅ Shard chromium-04 188 0 0 0 0 0
✅ Shard chromium-05 151 0 0 0 0 0
✅ Shard chromium-06 168 0 0 0 0 0
✅ Shard chromium-07 199 0 0 0 0 0
✅ Shard chromium-08 190 0 0 0 0 0
✅ Shard chromium-09 140 0 0 0 0 0
✅ Shard chromium-10 155 0 0 1 0 0
✅ Shard chromium-11 146 0 0 0 0 0
✅ Shard chromium-12 195 0 0 0 0 0
✅ Shard chromium-13 170 0 0 0 0 0
✅ Shard chromium-14 168 0 0 0 0 0
✅ Shard chromium-15 209 0 0 0 0 0
✅ Shard chromium-16 182 0 0 0 0 0
✅ Shard chromium-17 136 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard global-state-01 67 0 0 0 0 0
✅ Shard import-export-01 91 0 0 0 0 0
✅ Shard import-export-02 61 0 0 0 0 0
✅ Shard ingestion-01 27 0 0 0 0 0
✅ Shard ingestion-02 37 0 0 0 0 0
✅ Shard ingestion-03 29 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-rbac-01 9 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

shah-harshit and others added 5 commits October 5, 2026 14:07
Reactions, Emoji and Reaction were antd Button/Popover with
reactions.less, and the Inbox carried activity-feed-item.less only to
re-size those antd buttons into one row.

- Add-reaction trigger: core Button + PopoverTrigger/Popover.
- Reacted-emoji pills: core Button (22px, brand outline when the current
  user reacted) with the reactor list in a core HoverCard.
- Picker emoji: core Button with a brand tint when already reacted.

data-testids are unchanged (feed-reaction-container, add-reactions,
reaction-button, emoji-button, emoji-count, popover-content).
reactions.less and activity-feed-item.less are deleted; nothing else
used their classes.
The reactions picker moved from antd Popover to the core Popover, so the
helpers' .ant-popover-feed-reactions locator and rc-motion class check no
longer match. Locate it by test id and wait for react-aria's data-entering
to clear instead.
The core Button (react-aria) does not forward `title` to the DOM, so the
[title="<reaction>"] locators stopped matching after the Reactions moved
to core.
@gitar-bot

gitar-bot Bot commented Oct 5, 2026

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

🟡 Medium risk · Shared reaction controls and Inbox layouts change across several UI surfaces.

Moves Inbox to the standard PageLayout shell and fixes dark mode for Inbox, My Data, and feed reactions. The dark toolbar override that hid Quill's hover/active button states has been addressed, and styling-only changes remove reactions.less and activity-feed-item.less with no functional changes to behaviour or test IDs. No issues found.

✅ 1 closed
✅ Bug: Dark toolbar override hides Quill's hover/active button states

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/inbox-comment-composer.less:51-63
The selector .dark-mode .inbox-comment-composer__editor .ql-toolbar.ql-snow .ql-stroke has specificity (0,5,0). That beats Quill's .ql-snow.ql-toolbar button.ql-active .ql-stroke and button:hover .ql-stroke (0,4,1) from feed-editor.less. As a result, in dark mode the bold, italic, strike, list and similar buttons keep the same muted tertiary colour when hovered or toggled on, so you can't see which formats are active. A fix is to limit the muted tone to inactive, non-hovered buttons, or to add a brand-coloured override for :hover and .ql-active.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2026

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
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.

Inbox and My Data pages don't render correctly in dark mode

2 participants