feat(studio): add insert, filter, sort, refresh shortcuts to the table editor#45191
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |

I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Feature — a second batch of table editor shortcuts, stacked on top of #45178.
What is the current behavior?
Inserts / filters / sort / refresh are all mouse-only. No keyboard access, and no affordance for discovering what keybinds might exist.
What is the new behavior?
New shortcuts
Mod+Shift+NMod+Shift+KMod+Shift+UShift+FMod+Shift+Ffilters.length > 0Mod+Shift+Osorts.length > 0Shift+RAll are
ignoreInputs: trueso they don't fire while typing.Infrastructure
<ShortcutBadge>(components/ui/ShortcutBadge.tsx) — inline keybind display. Reads the sequence straight from the registry, so the ID is the single source of truth. Defaults tovariant="inline"(the flattext-foreground/40style used across the app inRunButton,ActionBar,OperationQueueSidePanel, etc.) withvariant="pill"available if someone needs the boxed style.DropdownMenuIteminHeaderNew's Insert menu now shows its keybind inline on the right (centered vertically, withpr-4+shrink-0so long table names in the description never crowd the badge).RefreshButtonswapped fromButtonTooltipto<Shortcut>so the keybind tooltip renders automatically from the registry.FilterPopoverPrimitiveuntouched — the old filter bar is being deleted, so Shift+F is scoped to the new filter bar only. The handler focuses[data-testid="filter-bar-freeform-input"](the existing freeform input in the ui-patternsFilterBar→FilterGroup).Additional context
Stacked on #45178 (FE-3057 — initial table editor shortcuts). Rebase after that one merges.
Test plan
Mod+Shift+Nopens the Row editor;Mod+Shift+Kopens the Column editor;Mod+Shift+Uopens the CSV import flowShift+Ffocuses the new filter bar's freeform inputMod+Shift+Fclears it; shortcut disabled in Cmd+K when no filters are appliedMod+Shift+Oclears sort; shortcut disabled when no sortsShift+Rrefreshes the table (spinner shows on the Refresh button); hover the button → keybind tooltip