Skip to content

fix(ui): align entity header alert icon and status badge with title actions - #38436

Merged
Rohit0301 merged 1 commit into
mainfrom
Rohit0301/alter-icon-badge-misalignment
Nov 23, 2026
Merged

Rohit0301 merged 1 commit into
mainfrom
Rohit0301/alter-icon-badge-misalignment

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

In the data asset header, the DQ failure alert icon and the entity status badge ("In Review") sat ~4px higher than the copy / learning icons next to the title.

Root cause (EntityPageTitle.tsx): the outer row is align="center" and its height comes from the 40px service logo. The title block (whose actions row is h-8) is centred in that row, but the badges box was h-8 self-start, so it was pinned to the top of the row instead, 4px above the actions.

Fix: render badges inside the same h-8 actions row as the copy button and actions, so everything shares one baseline. This works both with and without a display name, because that row is already pinned to the title line.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

  • No behaviour change, only layout. The existing EntityPageTitle tests don't check the badges container.
  • Not run locally: node_modules isn't installed in this worktree.

Screenshots

Before — the alert icon and "In Review" badge sit higher than the copy/lightbulb icons:

Before
Before (zoomed)

After — the copy button, lightbulb, alert icon and status badge all sit on the title row, in the same order as before (each centred at the same y in both cases):

After
After with display name

These "after" screenshots render the real EntityPageTitle (core FeaturedIcon logo, alert icon, EntityStatusBadge) in a standalone Vite page. The local backend couldn't start because its DB migration state was out of sync.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Moves badges into the title’s existing actions row so status badges and alert icons line up with the copy button.

  • Entity badges now line up with the title actions.

Reviews (6) · Last reviewed commit: "fix(ui): align entity header badges with..." · Reviewed by Greptile

The badges box was pinned to the top of the header row while the title
actions were centred against the 40px service logo, leaving the DQ alert
icon and status badge ~4px higher than the copy/learning icons. Render
badges in the same h-8 actions row instead.
@Rohit0301
Rohit0301 requested a review from a team as a code owner November 23, 2026 06:43
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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.

@Rohit0301
Rohit0301 enabled auto-merge (squash) November 23, 2026 06:56
@Rohit0301
Rohit0301 merged commit 7ccb672 into main Nov 23, 2026
50 of 55 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/alter-icon-badge-misalignment branch November 23, 2026 06:59
@Rohit0301 Rohit0301 mentioned this pull request Nov 23, 2026
2 tasks done
Rohit0301 added a commit that referenced this pull request Nov 24, 2026
* fix(ui): align entity header badges with title actions (#38436)

The badges box was pinned to the top of the header row while the title
actions were centred against the 40px service logo, leaving the DQ alert
icon and status badge ~4px higher than the copy/learning icons. Render
badges in the same h-8 actions row instead.

(cherry picked from commit 7ccb672)

* Fixes #36069: Keep Browse Estate tree expanded to the remaining path after removing a browse chip (#38470)

* fix(ui): keep Browse Estate tree expanded to the remaining browse path after removing a chip

Removing a browse chip rebuilds the explore tree from its static roots and
re-keys every lazily loaded level, so the previous expansion was lost and the
tree collapsed to the service-type level. The tree now expands the loaded
ancestors of the active browsePath level by level, which also makes browse
deep links and reloads open at the browsed node.

Fixes #36069

* fix(ui): expand the category root holding the browse path on reload

Category roots carry no filterField, so a browse path outside the
default-expanded Databases root (e.g. a dashboard service) never had its root
opened on reload or deep link. Under a browse path each root's totalCount is
scoped to that path, so expand the roots with matches.

* fix(ui): expand category roots only once their counts match the browse path

Selecting a tree node changes browsePath before the root counts refresh, so
the stale unfiltered totals opened every populated category. Track the
browsePath the root counts were refreshed for and ignore root counts until
they match the current path.

(cherry picked from commit 6aeece9)

* Fixes open-metadata/openmetadata-collate#8792: Dark-mode logo and monogram support in Platform Settings > Theme (#38435)

* feat(ui): dark-mode logo and monogram in Platform Settings > Theme

Add optional customLogoDarkUrlPath and customMonogramDarkUrlPath to the
logo configuration. BrandImage uses the dark variant only when the dark
theme is active and one is set, falling back to the light URL, then the
brand default; pre-auth pages read the theme the boot script applied.

The AI shell sidebar now shows an admin-set custom logo (it showed only
the build's mark), so the dark variant is visible after sign-in.

Rebuild the Theme view and edit form to the design: light/dark previews
with captions, an add/remove dark mode version field, live invalid-URL
and image-load errors that block saving, a checking state, and a
best-effort "hard to see in dark mode" warning.

* fix(ui): address self-review of dark-mode logos

- Only logo URLs edited in this session block Save, so a saved logo that
  no longer loads cannot hold up an unrelated theme change.
- The classic Appearance page keeps the dark-mode URLs when it saves.
- The AI sidebar resolves the custom logo for the active theme and keeps
  the build's sidebar mark when nothing applies.
- Update the Platform Settings Playwright theme flow for the new copy,
  the image check and the dark-logo round trip.

* fix(ui): mark a logo URL loaded before the optional contrast check

Save no longer waits on the CORS image request used for the
hard-to-see-in-dark-mode warning; the warning arrives separately.

* chore(ui): use the design's Moon icon for the dark-mode preview captions

Replace the Moon01 glyph with the Moon SVG from the design.

* docs: record the dark-mode logo variant contract; use Typography color prop

Add ADR:2026-11-23-dark-logo-variants-fall-back-to-the-light-url for the
fallback, merge-on-write and Save-blocking rules. Colour logo field
messages and captions through Typography's color prop.

* style(ui): organize imports in LogoUrlField

* fix(ui): enlarge the AI sidebar logo; drop the app-install tick background

The sidebar wordmark (built-in or custom) fills the 32px header row
instead of 24px. The app-install connector line now stops either side
of the tick, so the tick needs no background to mask it.

* fix(ui): show the AI sidebar logo at the classic sidebar's 40px

The header row and wordmark grow from 32px to 40px, matching the 40px
BrandImage in the classic left sidebar.

(cherry picked from commit 8b18e8f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants