Skip to content

feat: unified download progress with cross-layer progress events#113

Open
AnnChord wants to merge 8 commits into
masterfrom
feat/unified-download-progress
Open

feat: unified download progress with cross-layer progress events#113
AnnChord wants to merge 8 commits into
masterfrom
feat/unified-download-progress

Conversation

@AnnChord

Copy link
Copy Markdown
Contributor

Summary

Add a unified download abstraction layer across Rust/Java/TypeScript with real-time progress eventing. JDK/JRE and driver downloads now show circular progress indicators in both the connection dialog and the settings page.

Changes

Rust Backend

  • New download module (src-tauri/src/download/mod.rs): Generic download abstraction with progress callbacks, timeout support, and Maven artifact resolution
  • JDBC bridge integration: Refactored download.rs, jre.rs, launcher.rs to use the centralized download module for all binary/artifact downloads
  • Command extensions: Extended commands/jdbc.rs with progress-aware command handlers and registered the new module

Java Bridge

  • Progress events: Added download progress event emission from BridgeMain, DriverResolver, and ProtocolHandler -- reports phase transitions, byte-level progress, and errors back to Rust via stdout protocol

TypeScript/Frontend

  • Download event composable (useDownloadEvents.ts): Shared composable that listens to Tauri progress events and exposes reactive download state (progress, complete, error) -- safe for concurrent component usage
  • Connection dialog progress: ServerFormDialog now shows circular download progress during JRE resolution and JDBC driver download, with loading states on the test/connect button
  • JRE/Driver settings: jre-driver-section.vue shows download progress per component (manager JRE, system JRE, each driver) with real-time percentage indicators
  • i18n: Added progress-related strings to enUS.ts and zhCN.ts

Build

  • Removed unused dependencies from package-lock.json

Architecture

Rust download module (progress callbacks) -> Tauri events (download-progress) -> useDownloadEvents composable (reactive state) -> Connection dialog / Settings page (UI progress bars)

Java bridge emits progress events via stdout protocol: BridgeMain/DriverResolver/ProtocolHandler -> stdout JSON progress messages -> Rust JDBC bridge parses -> Tauri events

AnnChord and others added 8 commits June 22, 2026 18:14
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Replace inline download logic with the centralized download module. The JDBC bridge now uses the generic download module for Maven artifact downloads, JRE version resolution, and bridge binary downloads.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Register the download module in lib.rs and extend the JDBC command handlers to use the new download module for artifact downloads and progress reporting.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Emit download progress events from the JDBC bridge process during JRE resolution and driver artifact downloads. Includes protocol buffer for progress messages and updated driver resolver.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Add useDownloadEvents composable that listens to Tauri download-progress events and exposes reactive state for download progress, completion, and errors across components.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Integrate download progress UI into the server connection dialog and the JRE/Driver settings section. Shows real-time progress bars for JRE and driver downloads with error handling.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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