Skip to content

[P1/bug] No Save as Favorite button in the toolbar — only Ctrl+S and DOM event trigger the dialog #342

Closed

Description

@EVWorth

Context

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.

Needs human verify

no

Activity

  1. added
    audit
    severity/p1
    kind/bug
    area/favorites
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/favoritesauditkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions