From ca8f6cd9677bfca6fdc7b13912f3df261637999c Mon Sep 17 00:00:00 2001 From: zipg Date: Wed, 19 Aug 2026 15:08:31 +0800 Subject: [PATCH] fix(connection): show global timeout help on Windows --- .../connection/ConnectionDialog.vue | 22 +++++-------------- .../connectionDialogTimeouts.spec.ts | 11 +++++++--- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index bdab408317..582797ef45 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -8154,14 +8154,9 @@ function openExternalUrl(url: string) {
- - - - - - {{ t("connection.globalConnectTimeoutHint") }} - - + + {{ t("connection.globalConnectTimeoutHint") }} +
- - - - - - {{ t("connection.globalQueryTimeoutHint") }} - - + + {{ t("connection.globalQueryTimeoutHint") }} +
diff --git a/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts b/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts index 0a6bd458c7..3b86f91b45 100644 --- a/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts +++ b/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts @@ -25,8 +25,13 @@ describe("ConnectionDialog timeout controls", () => { expect(dialogSource).not.toContain("Number(config.connect_timeout_secs)"); }); - it("shows range help beside both global timeout labels", () => { - expect(dialogSource).toContain('t("connection.globalConnectTimeoutHint")'); - expect(dialogSource).toContain('t("connection.globalQueryTimeoutHint")'); + it("uses button-backed help tooltips beside both global timeout labels", () => { + const connectGlobalControl = dialogSource.slice(dialogSource.indexOf('id="connect-timeout-global"'), dialogSource.indexOf('id="connect-timeout-connection"')); + const queryGlobalControl = dialogSource.slice(dialogSource.indexOf('id="query-timeout-global"'), dialogSource.indexOf('id="query-timeout-connection"')); + + expect(connectGlobalControl).toContain(`