Skip to content

feat: open videos in DaVinci Resolve + photo apps#6

Merged
Automaat merged 2 commits intomainfrom
feat/open-videos-davinci-resolve
Nov 20, 2025
Merged

feat: open videos in DaVinci Resolve + photo apps#6
Automaat merged 2 commits intomainfrom
feat/open-videos-davinci-resolve

Conversation

@Automaat
Copy link
Copy Markdown
Owner

Motivation

Add ability to open project media in external editing apps. Photographers/videographers need quick access to launch Lightroom/AfterShoot for photos and DaVinci Resolve for videos directly from project view.

Implementation information

Backend (Rust)

file_system.rs (155 lines, -59 via refactor):

  • open_in_external_app helper function extracts common logic
  • open_in_lightroom - opens RAW/Photos in Lightroom Classic
  • open_in_aftershoot - opens RAW/Photos in AfterShoot
  • open_in_davinci_resolve - opens RAW/Videos in DaVinci Resolve
  • Cross-platform: macOS (open -a), Windows (exe paths), Linux (resolve path)
  • Proper error messages for missing apps/directories

lib.rs:

  • Register 3 new Tauri commands

Frontend (React/TypeScript)

Projects.tsx (+51 lines):

  • "Open Photos In" section: Lightroom Classic, AfterShoot buttons
  • "Open Videos In" section: DaVinci Resolve button
  • Consistent styling with existing backup destinations
  • Error handling via alerts

Architecture

  • DRY principle: single helper handles all app launching
  • Platform-specific logic via cfg attributes
  • No unused variable warnings (cfg_attr annotations)

Verification

✓ Frontend format/lint
✓ Rust clippy/fmt
✓ Tests passed
✓ Release build succeeded

Supporting documentation

Related to project workflow automation. Complements existing import/backup features with editing app integration.

Add integration to open project media in external editing apps:
- Photos: Lightroom Classic, AfterShoot
- Videos: DaVinci Resolve

Backend:
- Extract common logic to open_in_external_app helper
- Cross-platform support (macOS, Windows, Linux)
- Opens RAW/Photos for photo apps, RAW/Videos for video apps

Frontend:
- Add "Open Photos In" section with Lightroom/AfterShoot buttons
- Add "Open Videos In" section with DaVinci Resolve button
- Consistent error handling with user alerts

Code cleanup:
- Refactor reduces 59 lines via DRY principle
- Single source of truth for app launching logic
- Extract Windows exe paths to module constants (DRY)
- Add doc comment explaining project structure + fire-and-forget pattern
- Extract handleOpenInApp helper to reduce duplication
- Simplify UI text to show app purpose vs redundant names

Addresses PR review feedback
@Automaat Automaat merged commit 0ca4a7c into main Nov 20, 2025
0 of 2 checks passed
@Automaat Automaat deleted the feat/open-videos-davinci-resolve branch November 20, 2025 17:00
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