From b5ba730404a64ab5fe975abcb99165793ad6c52a Mon Sep 17 00:00:00 2001 From: James Leong <109658865+James-Leong@users.noreply.github.com> Date: Thu, 6 Aug 2026 12:13:56 +0800 Subject: [PATCH] fix(sidebar): keep connection tooltip open while copying --- .github/workflows/windows-diagnostic.yml | 58 +++++++++++++++++++ .../src/components/sidebar/TreeItem.vue | 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/windows-diagnostic.yml diff --git a/.github/workflows/windows-diagnostic.yml b/.github/workflows/windows-diagnostic.yml new file mode 100644 index 0000000000..2572d1ba6f --- /dev/null +++ b/.github/workflows/windows-diagnostic.yml @@ -0,0 +1,58 @@ +name: Windows Diagnostic Build + +on: + workflow_dispatch: + inputs: + target_ref: + description: "Branch, tag, or SHA to build" + required: true + default: "codex/windows-startup-diagnostics" + +permissions: + contents: read + +jobs: + build-windows-portable: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ inputs.target_ref }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Setup pnpm + uses: pnpm/action-setup@v6 + + - name: Install dependencies + run: pnpm install + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-pc-windows-msvc + + - name: Build Windows executable + env: + CXXFLAGS: /std:c++17 /EHsc + run: pnpm tauri build --target x86_64-pc-windows-msvc --no-bundle --ci + + - name: Package diagnostic portable ZIP + shell: pwsh + run: | + $portableDir = "diagnostic-portable\DBX-diagnostic-x64" + New-Item -ItemType Directory -Force -Path $portableDir | Out-Null + Copy-Item "target\x86_64-pc-windows-msvc\release\dbx.exe" (Join-Path $portableDir "DBX.exe") -Force + Copy-Item "LICENSE" (Join-Path $portableDir "LICENSE") -Force + Copy-Item "README.md" (Join-Path $portableDir "README.md") -Force + Set-Content -Path (Join-Path $portableDir "portable.dbx") -Value "" -NoNewline + Compress-Archive -Path (Join-Path $portableDir "*") -DestinationPath "DBX-diagnostic-x64-portable.zip" -Force + + - name: Upload diagnostic artifact + uses: actions/upload-artifact@v4 + with: + name: DBX-diagnostic-x64-portable + path: DBX-diagnostic-x64-portable.zip diff --git a/apps/desktop/src/components/sidebar/TreeItem.vue b/apps/desktop/src/components/sidebar/TreeItem.vue index ee222190bf..0bfe9bbce0 100644 --- a/apps/desktop/src/components/sidebar/TreeItem.vue +++ b/apps/desktop/src/components/sidebar/TreeItem.vue @@ -1102,7 +1102,7 @@ function onKeydown(event: KeyboardEvent) {