Skip to content

refactor(ui): the last shadcn buttons in lib on QueryaButton - #1427

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1338-remaining-dialogs-querya-button
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/1338-remaining-dialogs-querya-button

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1337 / #1338 / #1331. After this, no shadcn button call (PrimaryButton, OutlineButton, GhostButton, SecondaryButton, DestructiveButton, IconButton.ghost) is left in lib/.

What

50 files, the tail of the migration (#1420-#1425):

  • Dialogs (lg, Cancel / Close ghost): new connection / URL / folder, driver manager, ERD group / note / view name, extension manager / sideload / connection picker / unsandboxed consent, about, safe-mode unlock, Mongo add document / database, destructive query and DML preview, preferences.
  • Views (md): Mongo, MySQL, PostgreSQL, SQLite and Redis overview, stats, routine, sequence and workspace-home screens, the Redis value editors, extension stats and workspace home, results tab, SQL tab bar, tree load error, SDUI form builder, unsaved-work guard.
  • Icon-only IconButton.ghost (password / passphrase eye, driver restart / open / save in the extension toolbar, close in the cell inspector, copy / open-in-tab in the history) is QueryaButton.icon with a tooltip; the restart button uses loading.
  • ssl_certificate_fields: the browse icon is a QueryaButton.icon (Browse…).

Method

The codemod converted 46 of 47 files with nothing skipped; the eight IconButton.ghost and the last icon button were written by hand. A grep for shadcn button calls in lib/ is empty, and no test looks for a shadcn button type any more (checked widgetWithText, byType, widget<...>, shadcn.).

Visible differences (intended)

Cancel / Close lose their outline; icon-only buttons gain tooltips; the extension toolbar icons are no longer accent-tinted; icon sizes follow the control size.

Not in this PR

The guard tests (#1339) and the row / theme-switch tests (#1340), the gallery (#1336), and the non-button shadcn symbols (#1365).

Not run locally; CI is the check.

47 files: the remaining dialogs (connections, ERD, extensions, help, safe mode,
Mongo, destructive / DML preview), the NoSQL and SQL overview views, the Redis
editors, results tab, tab bar, SDUI form builder, unsaved-work guard and the
tree load error. Dialog footers are lg, views md; Cancel / Close are ghost.
IconButton.ghost (password eye, restart / open / save, close, copy / open in
history) is QueryaButton.icon with a tooltip. No shadcn button call remains in
lib. Part of #1337 and #1338.
@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 92111ec into dev Oct 11, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1338-remaining-dialogs-querya-button 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