Skip to content

fix(ui): render the remaining icon-only actions as ButtonUtility (backport 2.1 #37662) - #37783

Merged
shah-harshit merged 1 commit into
2.1from
shah-harshit/backport-2.1-37662
Nov 13, 2026
Merged

shah-harshit merged 1 commit into
2.1from
shah-harshit/backport-2.1-37662

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Backport of #37662 to 2.1: converts the remaining icon-only actions (knowledge graph controls and toolbar, ontology conflicts toggle, Ontology Studio library/import-export/full-screen, ontology overview stat card arrow, inbox menu trigger, dimensionality heatmap scroll buttons, classic notification bell, classic alert rule remove, classic test case filter clear) to ButtonUtility, and adds v8/v9 to ADR:2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon. See #37662 for the full table and screenshots.

Conflict resolved: OntologyExplorerPage.tsx. On main the full-screen toggle is gated by showsFullScreenToggle(), which 2.1 doesn't have. The backport keeps 2.1's always-rendered toggle and applies only the Button → ButtonUtility (lg) swap.

Type of change:

  • Improvement

Testing

  • yarn ui-checkstyle:changed on the 16 changed files: clean, no diff.
  • tsc --noEmit: no errors in changed files. The 11 TS4023/TS4053 errors are in files this PR doesn't touch.
  • Jest across the affected directories: 225 suites, 3019 tests passed.

🤖 Generated with Claude Code


Summary by Gitar

  • Icon-only action conversions:
    • Converted knowledge graph controls, ontology toolbar, conflicts toggle, and inbox/notification triggers to ButtonUtility
    • Migrated dimensionality heatmap scroll buttons and classic alert/filter clear actions to ButtonUtility
  • Design decision record:
    • Added v8 and v9 amendments to ADR:2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon, covering secondary bordered actions and exclusions
  • Lint guidance:
    • Added icon-only action rule to .claude/rules/component-library.md

This will update automatically on new commits.

)

* fix(ui): render the knowledge graph and ontology conflict icon actions as ButtonUtility

The knowledge graph canvas controls and the ontology conflicts collapse toggle
were children-less core Buttons. Per ADR:2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon
they are lg ButtonUtility actions, matching the Lineage canvas controls.

* fix(ui): render the remaining icon-only actions as ButtonUtility

Converts the leftover icon-only core Buttons and raw buttons: the classic
alert rule remove and test case filter clear, the classic notification bell,
the inbox sort trigger, the dimensionality heatmap scroll buttons, and the
bordered ontology and knowledge graph toolbar triggers. Each keeps the box
of the Button it replaces. The ontology comment send action becomes primary.

Records the bordered case as v8 of
ADR:2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon.

* docs: record which icon-only controls stay outside ButtonUtility

Adds v9 to the icon-only actions record listing the feed comment/reply
buttons, split-button chevron, colour swatches and drag handles with the
reason each stays as it is, and points component-library.md at it.

(cherry picked from commit 479caed)
@shah-harshit
shah-harshit requested a review from a team as a code owner November 13, 2026 14:29
@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 Nov 13, 2026
@shah-harshit
shah-harshit requested review from karanh37 and removed request for a team November 13, 2026 14:29
@shah-harshit shah-harshit self-assigned this Nov 13, 2026
@gitar-bot

gitar-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Replacing icon-only controls across ontology, graph, alert, and heatmap views changes button semantics and could impair keyboard access or actions if behavior differs.

Backport to 2.1 converts the remaining icon-only actions (knowledge graph controls, ontology toolbar and conflicts toggle, inbox and notification triggers, dimensionality heatmap scroll buttons, classic alert and filter clear) to ButtonUtility, and extends the icon-only actions ADR with v8/v9 amendments. No issues found.

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

@shah-harshit
shah-harshit merged commit f3cc000 into 2.1 Nov 13, 2026
56 of 58 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/backport-2.1-37662 branch November 13, 2026 17:31
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.

1 participant