Skip to content

refactor(ui): private and raw Material buttons leave lib, button guards land - #1476

Merged
ZhuchkaTriplesix merged 4 commits into
devfrom
issue/1331-kit-tail
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 4 commits into
devfrom
issue/1331-kit-tail

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1445 and #1339 (the epic #1331 tail).

Migrated

  • Five hand-drawn button classes are kit buttons: the Mongo databases / collections View and Del (QueryaButton.secondary, destructive tone), the documents row actions and tree icon buttons (QueryaIconButton with tooltips), and the staging toolbar's Add Row / Delete Row (QueryaButton.ghost, compact).
  • 14 Material IconButtons: the password eyes (Redis form, auth section), the Dismiss of the test-connection banner in five forms, the Preferences and welcome tour close, the Redis delete icons, the title bar sidebar toggle and the search field's clear button.
  • The value panel's TextButton (Format, Minify) and ElevatedButton (Update Cell Value) are QueryaButton.ghost / .primary.
  • Tooltips use kQueryaTooltipWait instead of a 400 ms literal.

Guards (test/guards/button_standard_guards_test.dart): no shadcn button types, no raw Material buttons, no *Button class outside the kit (allow-list: ThemePickerButton, TableEditModeButton), no literal tooltip delay. docs/ui-kit.md guard table updated.

Look to check: Mongo View is no longer green and Del is a secondary button with a destructive tone; the row action icons and tree icons lose their custom colours (the kit's ghost icon button); the Redis delete icons are destructive-tinted on hover.

Still open in #1445: ThemePickerButton, TableEditModeButton, one password-field widget, and about 60 InkWells used as rows (not buttons, probably out of scope), plus the BorderRadius.circular(n) literals.

_ActionButton (databases, collections), _SmallActionButton, _TreeIconButton
and the staging toolbar's _ToolbarButton are QueryaButton / QueryaIconButton
with a tooltip; five hand-drawn button classes less.

Refs #1445
…ib, guards land

14 Material IconButtons (password eyes, dismiss, close, delete, sidebar
toggle, search clear), the value panel's TextButton / ElevatedButton and
literal tooltip delays use the kit. test/guards/button_standard_guards_test.dart
forbids shadcn buttons, raw Material buttons, *Button classes outside the
kit (two allowed) and literal tooltip delays.

Refs #1445 #1339
@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 f8e1827 into dev Oct 11, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1331-kit-tail 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

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