Skip to content

feat: Add watched folder confirmation when importing files#21

Open
pythoninthegrass wants to merge 2 commits intomainfrom
pythoninthegrass/task-259-verify
Open

feat: Add watched folder confirmation when importing files#21
pythoninthegrass wants to merge 2 commits intomainfrom
pythoninthegrass/task-259-verify

Conversation

@pythoninthegrass
Copy link
Collaborator

Summary

When users drag-and-drop or use the pill button to add music files to the library, they are now prompted to add the parent directories to watched folders. The confirmation modal presents both immediate and parent directory levels as checkbox options, letting users choose what makes sense for their setup.

Key Changes

  • Watched folder confirmation modal: Shows candidate directories with checkboxes; intelligently displays both immediate and parent directory levels
  • Directory classification: Detects already-watched directories to avoid redundant additions
  • Settings UI sync: Auto-refreshes the watched folders list when added via the confirmation flow
  • Critical watcher bug fix: Fixed fingerprint scope in watcher.rs that was marking all non-watched-folder tracks as missing when a new watched folder was added

Tests

  • 27 unit tests covering directory extraction, classification, and confirmation flow
  • All 273 frontend tests passing

Related Issue

Implements task 259: Add dragged/pill-button files to watched folders with confirmation

When users drag-and-drop files or use the pill button to add music to the library, they are now prompted to add the parent directories to watched folders. The confirmation modal shows all candidate directories (both immediate and parent levels) with checkboxes, allowing users to select which folders to watch.

Features:
- Extract parent directories from imported file/folder paths (shows both levels as options)
- Classify directories as already-watched or new to avoid redundant additions
- Prompt user with confirmation modal before adding to watched folders
- Auto-refresh Settings view when watched folders are added via the confirmation flow
- Settings and UI stay in sync across the app

Fixes critical watcher bug:
- Scoped fingerprint queries in watcher.rs to only load tracks within the watched folder being scanned
- Previously, adding a watched folder would mark all other library tracks as missing due to full-library fingerprint scope mismatch

Tests:
- 27 unit tests covering directory extraction, classification, and confirmation flow
- All 273 frontend tests passing

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@pythoninthegrass pythoninthegrass force-pushed the pythoninthegrass/task-259-verify branch from 04049e1 to 19c3548 Compare February 14, 2026 12:52
The previous CI run used stale commit 04049e1 (pre-format).
Force-push amended to 19c3548 but gh run rerun replayed the old SHA.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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