Skip to content

fix: correct About version number and drag-and-drop file paths#9

Merged
JBolanle merged 1 commit into
mainfrom
feat/ui-tweaks
May 8, 2026
Merged

fix: correct About version number and drag-and-drop file paths#9
JBolanle merged 1 commit into
mainfrom
feat/ui-tweaks

Conversation

@JBolanle
Copy link
Copy Markdown
Owner

@JBolanle JBolanle commented May 8, 2026

Summary

  • About panel version: AboutMetadata was hardcoded to 1.1.0 — now uses env!("CARGO_PKG_VERSION") so it stays in sync with Cargo.toml automatically
  • Drag and drop: Tauri v2's webview does not expose file.path on File objects from the HTML5 drag-and-drop API (an Electron-only property), so the old handler always called addPath with the bare filename instead of the absolute path. Replaced with a tauri://drag-drop event listener which provides the correct absolute paths; HTML5 dragover/dragleave kept for visual feedback

Test Plan

  • Run npm test — 88 tests pass
  • Open the app and drag one or more PDFs onto the sidebar — files should appear in the queue and compress correctly
  • Open compress[pdf] → About compress[pdf] — version should show 1.3.0 (matching Cargo.toml)

🤖 Generated with Claude Code

- Use env!("CARGO_PKG_VERSION") in AboutMetadata so the version
  stays in sync with Cargo.toml automatically
- Replace HTML5 drop handler with tauri://drag-drop event listener;
  Tauri v2 webview does not expose file.path on File objects so the
  old handler always fell back to the bare filename instead of the
  absolute path
@JBolanle JBolanle merged commit a29a9c6 into main May 8, 2026
6 checks passed
@JBolanle JBolanle deleted the feat/ui-tweaks branch May 8, 2026 04:05
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