Skip to content

refactor(ui): QueryaActionButton is a QueryaButton wrapper, off shadcn - #1424

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1337-action-button-menu
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1337-action-button-menu

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1337 / #1365 (closes neither). Continues the migration (#1420-#1423).

What

QueryaActionButton was a shadcn OutlineButton with a hand-built spinner / icon / tone. It is now a thin wrapper that renders QueryaButton.secondary and keeps its API: label, icon, onPressed, loading, isDestructive (tone: destructive), tooltip, compact.

  • The one API change: size was shadcn's ButtonSize; it is now QueryaControlSize? (default: the nearest control scope, then md). The three buttons of the MCP preferences section that passed ButtonSize.small pass QueryaControlSize.sm. No other call site passed a size.
  • The 17 call sites (SQL toolbar, generic table view, ERD toolbar, Execute (F5)) need nothing else.
  • The file has no shadcn_flutter import and leaves the allow-list.

Visible difference (intended)

The icon and label of a neutral action button use the theme foreground instead of the accent colour; the height follows the control size (md 32 px) instead of shadcn's normal.

Tests

  • querya_action_button_test: the disabled case reads QueryaButton.onPressed.
  • The Execute (F5) finders in generic_sql_workspace_shortcuts_test (2), sql_workspace_execute_dirty_guard_test and extension_sql_workspace_test look for QueryaButton; imports adjusted.

Not in this PR

QueryaActionMenu (its trigger takes an arbitrary child; its six call sites become QueryaMenuButton next) and ExportMenuButton.

Not run locally; CI is the check.

… off shadcn

The action button keeps its API (label, icon, loading, isDestructive, tooltip,
compact) but renders a QueryaButton.secondary; size is now a QueryaControlSize
instead of shadcn's ButtonSize, so the three MCP preference buttons pass sm.
The Execute (F5) finders in four tests look for QueryaButton. The file leaves
the shadcn allow-list. Part of #1337 and #1365.
@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions P2 Medium priority / Parity & Refactoring labels Oct 11, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 3c204b0 into dev Oct 11, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1337-action-button-menu branch October 11, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Theme parser epic label: frontend P2 Medium priority / Parity & Refactoring ui User interface components and widgets ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant