Repository navigation
fix(settings): mark the deprecated built-in driver in the plugins sidebar - #1602
Conversation
…ebar The Plugins fold-out in the Settings sidebar listed the deprecated built-in PostgreSQL driver and its replacement plugin under the same name, so the two entries were indistinguishable. Show the existing "Deprecated" chip and replacement tooltip on the built-in entry, reusing the translations the Plugins tab already has. Closes #1568
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Reviewed by claude-sonnet-5.5 · Input: 254 · Output: 852 · Cached: 118.7K Review guidance: REVIEW.md from base branch |
Xnadir
left a comment
There was a problem hiding this comment.
Pulled this and ran npx vitest run tests/pages/Settings.test.tsx: 12/12 pass, and the new test fails against main's Settings.tsx, so it covers the change. Looks good to me.
Non-blocking: the "deprecated" tooltip text is now built in three places (ConnectionChips.tsx, PluginsTab.tsx and here in Settings.tsx). A small shared helper would keep them from drifting apart. Fine to leave for a follow-up.
Checked with help from Claude Code.
debba
left a comment
There was a problem hiding this comment.
Thanks, Emre. Reusing the deprecation chip makes the two PostgreSQL entries easier to tell apart. I appreciate the test that puts both entries in the same sidebar. I’ll check the sidebar in the running app before merging.
Glad to have your first PR here! If you’d like to join us on Discord, we’d be happy to see you there. https://discord.com/invite/K2hmhfHRSt
|
I checked Settings in the Linux desktop app with both PostgreSQL drivers installed. Only the built-in entry shows the Deprecated chip, and its tooltip names the replacement plugin. Lint, typecheck, and the full test suite passed. This is ready to merge. |
Summary
The Plugins fold-out in the Settings sidebar listed the deprecated built-in PostgreSQL driver and its replacement plugin under the same name ("PostgreSQL" twice), so the two entries could not be told apart. The built-in entry now shows the existing "Deprecated" chip, and its tooltip explains that it is being replaced by the
postgresqlplugin. Non-deprecated entries render exactly as before.This reuses the
settings.plugins.deprecated,deprecatedTooltipanddeprecatedTooltipDatestrings that the Plugins tab already uses, so no new translation keys are needed. I only changed how the deprecated built-in entry is labelled, not which entries are listed. The issue suggested adding a "(deprecated)" marker or greying the old one out; I went with the existing chip because it matches how the Plugins tab already shows deprecation.Closes #1568
Testing
packages/web-ui/tests/pages/Settings.test.tsx: both same-named entries are listed, the built-in one carries the "Deprecated" label and the replacement tooltip, and the plugin and MySQL entries do not. Without the change the first new test fails; with it, all 12 tests in the file pass (checked both ways).pnpm lintandpnpm typecheckpass (Windows 11, pnpm 10.30.3).vitestrun: everything passes exceptTableTransferModals.test.tsx > ExportTableModal("Unable to find an element with the text: 1,234"), which also fails on an unmodifiedmainon my machine (likely a locale/number-format issue). Three other tests timed out only under full-suite load and passed when re-run on their own.w-52) sidebar in a real window. A quick look from someone with the app running would be appreciated.Notes
This change was prepared with the help of an AI coding assistant (Claude, via Claude Code), which also reviewed the diff and ran the tests and checks listed above. I am the submitter and take responsibility for it.