Skip to content

[2.1] Fixes 9150: Compact the AI-mode sidebar search box and draw the shortcut as icons - #39854

Merged
Rohit0301 merged 1 commit into
2.1from
backport/2.1/pr-39794
Dec 4, 2026
Merged

Rohit0301 merged 1 commit into
2.1from
backport/2.1/pr-39794

Conversation

@gh-bot-collate

@gh-bot-collate gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

Automated backport of #39794 to 2.1.

Source PR #39794
Author @Rohit0301
Merge commit 95b9051803f0a521998dba3a06fbda71fa5f0aad
Method Clean cherry-pick — identical to the commit on main.

Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #39794 is asked to look.

resolver run

…cut as icons (#39794)

* Fixes 9150: Compact the AI-mode sidebar search box and draw the shortcut as icons

Tighten the sidebar search trigger to the design redline (32px tall, 12px
text, 6px less space above it, 2px more below) and render its shortcut badge
with new KeyboardCommand/KeyboardControl/KeyboardK core icons instead of text.

* Add Option, Alt, Ctrl and A keyboard icons for the shortcut badges

Ctrl replaces the caret glyph, so the Windows search badge reads "ctrl K".
Option, Alt and A let Collate draw its Ask AI shortcut (⌥⌘A / Ctrl+Alt+A)
with the same key glyphs.

* Center the keyboard glyphs in their icon boxes

Each design SVG sat its glyph at a different height (alt 1.7 units low, ctrl
0.2, the capitals 0.55 high), so mixed badges like "ctrl alt A" looked
uneven. Shift each viewBox so the glyph's bounds are centered.

* Record why the sidebar search box margins assume Collate's 10px gap

* Draw shortcut letters and named keys as text, keep icons for ⌘ and ⌥

The word glyphs (ctrl, alt) had to fit a square icon box, so they rendered at
about half the height of A and K. A shared ShortcutKeys renderer now draws
letters and named keys as 10px text next to the ⌘/⌥ icons, in one color, and
the unused KeyboardK/KeyboardA/KeyboardAlt/KeyboardControl icons are removed.

* Draw every shortcut key with the design's keyboard icons at one scale

New Ctrl, Alt, K, A, ⌘ and ⌥ glyphs from design. ShortcutKeys renders each
icon 12px wide so all glyphs share the design scale (the word keys sit on
shorter canvases).

* Draw each shortcut key as its own keycap with the design's outline icons

New Ctrl, K, A, ⌘ and ⌥ glyphs from design on a shared 20x20 canvas. Each key
renders 16px in its own bg-tertiary keycap, written inline in the search
button (the shared ShortcutKeys wrapper is gone).

* Drop the masks from the keyboard icons

Each design SVG clipped its glyph with a fixed-id <mask> that cut nothing. With
the icon rendered twice on a page (the composer mounts a hidden copy), url(#id)
resolved to the hidden copy's mask and the glyph vanished.

* Describe the keyboard icons' 20x20 canvas in the OPEN_SEARCH_KEYS doc

* Use the design's outline Alt key icon

Matches the other keyboard icons: 1.3 stroke on the shared 20x20 canvas, so
Alt no longer renders larger and heavier than Ctrl and A.

* Render the search shortcut keycaps with core Badge

Each key is a borderless gray xs Badge with a bg-tertiary keycap and an
fg-quaternary icon.

(cherry picked from commit 95b9051)
@gh-bot-collate
gh-bot-collate Bot requested a review from a team as a code owner December 4, 2026 14:40
@gh-bot-collate
gh-bot-collate Bot requested review from karthicksharan and removed request for a team December 4, 2026 14:40
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Dec 4, 2026
@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.1 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

@Rohit0301
Rohit0301 merged commit 0cbc7de into 2.1 Dec 4, 2026
42 of 43 checks passed
@Rohit0301
Rohit0301 deleted the backport/2.1/pr-39794 branch December 4, 2026 16:59
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants