You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1/bug] No Save as Favorite button in the toolbar — only Ctrl+S and DOM event trigger the dialog #342
QueryToolbar.tsx:33-39 (listens for open-save-favorite); useKeyboardShortcuts.ts (Ctrl+S triggers the event).
Problem
There's no toolbar button for "Save as Favorite". A user who doesn't know about Ctrl+S has no way to save a favorite. The toolbar shows Run, Stop, Format, AI, Find, Replace, etc. — but no Star icon. New users see the sidebar's "No favorites yet. Use ⭐ to save queries." hint and look for a ⭐ in the toolbar — it's not there.
Files
src/components/editor/QueryToolbar.tsx
Expected
A Star icon button is visible in the toolbar; clicking opens the SaveFavoriteDialog; the SQL preview shows the current tab content.
Proposed fix
Scope S — add a Star icon button in the QueryToolbar (next to the Format button or in the right gutter), disabled when the active tab is empty. Clicking fires the same open-save-favorite event. The dialog opens with the active tab's SQL pre-filled.
Acceptance
A Star button is visible in the toolbar; clicking opens the SaveFavoriteDialog; the SQL preview shows the current tab content.
Activity