Skip to content

fix(ui): draw the search and inherited-node labels with the shared badge - #1328

Merged
TheMeinerLP merged 1 commit into
mainfrom
fix/badges-search-inherited
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
fix/badges-search-inherited

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Part of migrate-content-to-components task 4.8, the disclosure and badge part. The disclosures named in the task (TeamLegacyGrants, SsoProviderDialog, RunHistory, ArrayListRenderer) and most badges already use the shared components. Two places still drew their status labels by hand: the search result row (newer version, snapshot, repository) and the "overridden" marker of an inherited node. They now use the shared badge, so the labels look like every other label in the dashboard.

Visible: the three search labels keep their colours (newer is tertiary, mirror is secondary, others outlined). The snapshot and repository text is now the muted on-surface-variant colour of the neutral badge instead of on-surface. The overridden marker changes from a filled grey chip to an outlined badge.

Type of change

  • fix - bug fix

How was this tested?

  • New tests in SearchResultRow.test.ts and NodeEditor.test.ts, run red before the change, green after.
  • vitest on src/components/search, src/components/access/nodes, MdBadge, src/anchors and src/style-gate: 695 passed.
  • npm run eslint clean, npm run typecheck clean.

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md
  • Tests cover the change
  • ./gradlew build passes locally (frontend only change, not run)
  • Documentation and configuration samples are updated if the change is user-facing (none needed)
  • Existing copyright headers are preserved
  • No credentials, tokens or personal data are included in the diff

The newer-version, snapshot and repository labels of a search result and
the "overridden" marker of an inherited node were hand-built spans with
their own height, radius and colours. They now use the shared badge, so
they match every other status label.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP TheMeinerLP added the ci:e2e Run the dashboard end-to-end tests label Nov 23, 2026
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 039859a Nov 23, 2026
54 checks passed
@TheMeinerLP
TheMeinerLP deleted the fix/badges-search-inherited branch November 23, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the dashboard end-to-end tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant