Skip to content

fix(settings): mark the deprecated built-in driver in the plugins sidebar - #1602

Merged
debba merged 1 commit into
TabularisDB:mainfrom
emreocell:fix/1568-settings-sidebar-deprecated-postgres
Nov 19, 2026
Merged

debba merged 1 commit into
TabularisDB:mainfrom
emreocell:fix/1568-settings-sidebar-deprecated-postgres

Conversation

@emreocell

@emreocell emreocell commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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 postgresql plugin. Non-deprecated entries render exactly as before.

This reuses the settings.plugins.deprecated, deprecatedTooltip and deprecatedTooltipDate strings 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

  • Added regression tests to 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 lint and pnpm typecheck pass (Windows 11, pnpm 10.30.3).
  • Full vitest run: everything passes except TableTransferModals.test.tsx > ExportTableModal ("Unable to find an element with the text: 1,234"), which also fails on an unmodified main on 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.
  • Not done: no Rust checks (the change is frontend-only and I have no Rust toolchain on this machine), and no manual check in the desktop app, so I have not seen how the chip looks in the narrow (w-52) sidebar in a real window. A quick look from someone with the app running would be appreciated.
  • I could not open the screenshot in the issue; I identified the list from the repro steps ("fold out the plugins") and the code.

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.

…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
Copilot AI balanced review requested due to automatic review settings November 17, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@kilo-code-bot

kilo-code-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/web-ui/src/pages/Settings.tsx
  • packages/web-ui/tests/pages/Settings.test.tsx

Reviewed by claude-sonnet-5.5 · Input: 254 · Output: 852 · Cached: 118.7K

Review guidance: REVIEW.md from base branch main

@Xnadir Xnadir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 debba left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@debba

debba commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

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.

@debba
debba merged commit 0df6932 into TabularisDB:main Nov 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Plugins: Seeing double in terms of postgresql in the list

4 participants