Skip to content

fix(connections): editing a connection of a missing extension or driver explains why nothing opens (#1314) - #1327

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1314-edit-extension-connection
Oct 10, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1314-edit-extension-connection

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1314

Problem (promptEditConnection, connection_creation_flow.dart)

  • A connection of an extension that was removed or disabled: Edit returned null and nothing happened.
  • _driverForConnection fell back to the first driver of the manifest when none matched the row's type, so an extension with several drivers opened the wrong driver's form and saving could change the connection's meaning.
  • An unknown connection type returned null too.

Fix

  • Each of the three cases shows an error toast: the extension is not installed or disabled (with where to fix it), the extension no longer provides the driver, or the connection type is unknown.
  • driverForConnection: the driver whose id is the row's type; the only driver when the extension has exactly one (rows saved with another type string keep working); otherwise none.

Tests (edit_extension_connection_test.dart): the driver choice (type match, case-insensitive, single driver, never one of several); the toast for a missing extension names it and says not installed or is disabled; the toast for an unknown type.

…er explains why nothing opens (#1314)

promptEditConnection returned null without a word when the extension was
not installed, and fell back to the first driver of a manifest when none
matched the connection's type, opening another driver's form.

- A missing extension, a driver the extension no longer provides, and an
  unknown connection type each show a toast saying what is missing.
- The driver is the one of the row's type, or the only one the extension
  has; never another of several.
@github-actions github-actions Bot added bug Something isn't working connections Database connections, URI parsing, pools ux User experience, keyboard shortcuts and interactions P3 Low priority / Polish & Enhancements labels Oct 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 094cfda into dev Oct 10, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the fix/1314-edit-extension-connection 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

bug Something isn't working connections Database connections, URI parsing, pools P3 Low priority / Polish & Enhancements ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant