Skip to content

The PostgreSQL Add Server dialog hides the lone SQL-auth radio (follow-up to #3499) - #3513

Merged
erikdarlingdata merged 1 commit into
devfrom
feature/pg-auth-radio-label
Sep 17, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
feature/pg-auth-radio-label

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

What

On the Add Server dialog's PostgreSQL engine arm, the auth-type picker collapsed to a single radio still labeled "SQL Server Authentication" — force-checked but left visible, so a PostgreSQL target showed a one-choice picker mislabeled for the wrong engine.

Caught while driving the live 3.7.0-nightly.20260917.447 build on DARLING01 (Add Server → PostgreSQL).

Fix

Hide SqlAuthRadio on the PG arm too. It stays force-checked, and UpdateAuthPanels keys the username/password panel on IsChecked (not Visibility), so the credentials still render directly under the Authentication header — which is exactly the "rather than leaving the operator a picker with one choice" the handler's own comment already claimed. Switching back to SQL Server restores the radio; the force-check still guarantees no hidden radio can be the checked one.

Tests

PostgresAddServerDialogTests renamed to ThePostgresArm_HidesEveryAuthTypeRadio_AndForceChecksSqlAuth and extended to pin the new SqlAuthRadio.Visibility line. Full class 30/30 green locally; Darling.Tests builds with 0 errors.

No CHANGELOG entry: #3499 is unreleased (dev only, no tag), so this is a pre-ship correction of a not-yet-shipped feature, not a user-facing change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RzwoqcD62jKyp6tzsWpZLz

…w-up to #3499)

On the PostgreSQL engine arm the auth-type picker collapsed to a single radio still
labeled "SQL Server Authentication" - force-checked but left visible, so a PostgreSQL
target showed a one-choice picker mislabeled for the wrong engine (caught driving the
live .447 nightly). Hide SqlAuthRadio on the PG arm too: it stays force-checked, and
UpdateAuthPanels keys the username/password panel on IsChecked rather than Visibility,
so the credentials still render directly under the Authentication header - which is
exactly the "rather than leaving the operator a picker with one choice" the handler's
own comment already claimed. Going back to SQL Server restores the radio. Test renamed
and extended to pin the SqlAuthRadio visibility line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RzwoqcD62jKyp6tzsWpZLz
@erikdarlingdata
erikdarlingdata enabled auto-merge (squash) September 17, 2026 17:45
@erikdarlingdata
erikdarlingdata merged commit 4161958 into dev Sep 17, 2026
7 of 8 checks passed
@erikdarlingdata
erikdarlingdata deleted the feature/pg-auth-radio-label branch September 17, 2026 17:55
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