feat(cloud): add real-time upload progress indicator and concurrent cloud file uploads

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust, sqlite, tauri

Research direction

Start by locating the Rust cloud-sync/upload code, the Tauri frontend handler for the cloud-sync button, and the SQLite ledger update path; the issue does not name specific files or tests. Review how uploads and manifest verification work before assessing progress events and bounded concurrency. Done means the UI reports live upload progress, uploads use bounded parallelism, and ledger and manifest integrity remain verified.

Written by the indexing model from the issue text.

Description

cloud enhancement ui/ux

Problem

Currently, syncing a backup snapshot to Google Drive uploads files strictly sequentially (one-by-one).

Furthermore:

  1. Each file requires two sequential network requests (multipart upload + remote verification GET). For a backup with 30+ files, this amounts to 60–70 sequential network round-trips to Google APIs, taking several minutes.
  2. The UI button only displays a static label: "Uploading to Cloud..." without showing progress, file counts, or percentages. To the user, this can appear as if the app is hanging or inactive.

Proposed Solution

1. Real-Time Upload Progress Indicator
  • Emit Tauri events (e.g. cloud-upload-progress) from the Rust backend to the frontend.
  • Send payload details:
    • files_completed: number of files uploaded so far
    • total_files: total files in snapshot
    • bytes_uploaded: total bytes transferred
    • total_bytes: snapshot total byte size
    • current_file_name: current file or percentage
  • Update UI with a live progress bar or badge (e.g. "Uploading (12/31 files - 45%)...").
2. Concurrent / Parallel File Uploads
  • Upload 3–5 files concurrently using a worker pool or bounded Tokio semaphore.
  • Greatly reduce the wall-clock time required for multi-file snapshots (up to ~70% faster).
  • Ensure atomic SQLite ledger updates (mark_file_synced) per completed file.

Acceptance Criteria

  • UI shows live progress counter or bar during cloud sync.
  • Files upload concurrently with bounded parallelism (avoiding Google Drive rate limits).
  • Ledger and manifest integrity remain strictly verified.
Dominant language
Rust
Stars
3
Forks
6
Avg merge
5h 37m
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abdulwalidal/secure-backup

All issues in abdulwalidal/secure-backup

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.