Skip to content

fix(welcome): match connection rows by the types a plugin provides - #3478

Merged
datlechin merged 1 commit into
mainfrom
fix/welcome-rows-provided-types
Oct 17, 2026
Merged

datlechin merged 1 commit into
mainfrom
fix/welcome-rows-provided-types

Conversation

@datlechin

Copy link
Copy Markdown
Member

Why

A saved connection whose driver plugin failed to load or is outdated never showed the warning triangle in the Welcome window. The row compared the connection's plugin type id (Cassandra) to the rejected plugin's bundle and registry ids (com.TablePro.CassandraDriver), which never match.

Change

  • Flag a row when a rejected plugin lists the connection's type in providedDatabaseTypeIds, the same match driverUnavailability(for:) uses.
  • Drop the Xcode header in WelcomeViewModel+Rows.swift.

Verified

WelcomeViewModelTests/testARejectedPluginFlagsEveryConnectionOfTheTypesItProvides fails on main and passes here.

Not in this PR

  • The Welcome list does not reload on pluginsRejected, so a row drawn before a late rejection shows the triangle only on the next reload.

@datlechin
datlechin merged commit 1c9073a into main Oct 17, 2026
7 checks passed
@datlechin
datlechin deleted the fix/welcome-rows-provided-types branch October 17, 2026 16:20
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.

1 participant