Skip to content

refactor(ui): QueryaEmptyState on QueryaButton, off shadcn - #1419

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1365-empty-state-off-shadcn
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1365-empty-state-off-shadcn

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1365 and #1331 (closes neither)

Small migration under the ratchet guard (#1409), using QueryaButton (#1408).

  • The default action of QueryaEmptyState (actionLabel + onAction) is a QueryaButton.secondary: sm when compact, lg otherwise (empty-state actions are lg in the standard). It was shadcn's OutlineButton.
  • Gap -> SizedBox, the colour scheme from context.colors; no shadcn_flutter import, the file leaves the allow-list.
  • The API (action, actionLabel, onAction, compact) is unchanged, so the ~20 call sites need nothing.

No existing test asserts a shadcn button type for this widget; they find texts and taps.

Why not QueryaActionButton too

It takes shadcn's ButtonSize in its public API and has call sites that pass ButtonSize.small; it is swapped file by file during the toolbar migration (#1337), not here.

Not run locally; CI is the check.

The default action is a secondary QueryaButton (sm when compact, lg
otherwise), gaps are SizedBoxes and the scheme comes from context.colors.
The file leaves the shadcn allow-list. Part of #1365.
@github-actions github-actions Bot added epic Epic / umbrella issue frontend Theme parser epic label: frontend ui User interface components and widgets ux User experience, keyboard shortcuts and interactions labels Oct 11, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e76e9f5 into dev Oct 11, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1365-empty-state-off-shadcn branch October 11, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epic Epic / umbrella issue frontend Theme parser epic label: frontend 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