From 235bdbee14b0c8aa51558579d67146772386e616 Mon Sep 17 00:00:00 2001 From: Saurabh Singh Date: Wed, 20 May 2026 18:02:00 -0700 Subject: [PATCH 1/2] feat(sqlserver): add Encrypt dropdown to connection dialog Adds an Encrypt selector (Yes/No/Strict) to the New Connection modal when driver is SQL Server. Frontend-only wiring; backend already supports the encrypt field on ConnectionParams. Note (draft): the new field still needs to be threaded through connection save/load (Config mapping) before this can ship. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/components/modals/NewConnectionModal.tsx | 25 ++++++++++++++++++++ src/i18n/locales/en.json | 6 +++++ 2 files changed, 31 insertions(+) diff --git a/src/components/modals/NewConnectionModal.tsx b/src/components/modals/NewConnectionModal.tsx index d22d2866..c03b670f 100644 --- a/src/components/modals/NewConnectionModal.tsx +++ b/src/components/modals/NewConnectionModal.tsx @@ -45,6 +45,9 @@ interface ConnectionParams { ssl_ca?: string; ssl_cert?: string; ssl_key?: string; + // SQL Server + encrypt?: string; + trust_server_certificate?: boolean; // SSH ssh_enabled?: boolean; ssh_connection_id?: string; @@ -126,6 +129,7 @@ export const NewConnectionModal = ({ username: "", database: "", ssl_mode: "", + encrypt: "", ssh_enabled: false, ssh_port: 22, }); @@ -365,6 +369,7 @@ export const NewConnectionModal = ({ password: "", database: "", ssl_mode: "", + encrypt: "", ssh_enabled: false, ssh_connection_id: undefined, ssh_host: undefined, @@ -694,6 +699,26 @@ export const NewConnectionModal = ({ /> + {/* Encrypt (SQL Server only) */} + {driver === "sqlserver" && ( +
+ +