Repository navigation
[2.1] Fixes 9150: Compact the AI-mode sidebar search box and draw the shortcut as icons - #39854
Merged
Merged
Conversation
…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
Bot
requested review from
karthicksharan
and removed request for
a team
December 4, 2026 14:40
Author
|
🤖 This backport will not merge itself: |
14 tasks done
Rohit0301
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #39794 to
2.1.95b9051803f0a521998dba3a06fbda71fa5f0aadmain.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