feat: unified download progress with cross-layer progress events#113
Open
AnnChord wants to merge 8 commits into
Open
feat: unified download progress with cross-layer progress events#113AnnChord wants to merge 8 commits into
AnnChord wants to merge 8 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
src-tauri/src/download/mod.rs): Generic download abstraction with progress callbacks, timeout support, and Maven artifact resolutiondownload.rs,jre.rs,launcher.rsto use the centralized download module for all binary/artifact downloadscommands/jdbc.rswith progress-aware command handlers and registered the new moduleJava Bridge
BridgeMain,DriverResolver, andProtocolHandler-- reports phase transitions, byte-level progress, and errors back to Rust via stdout protocolTypeScript/Frontend
useDownloadEvents.ts): Shared composable that listens to Tauri progress events and exposes reactive download state (progress, complete, error) -- safe for concurrent component usageBuild
package-lock.jsonArchitecture
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