Skip to content

Improve library path mapping UX#122

Merged
StudioNirin merged 4 commits into
StudioNirin:mainfrom
Brandon-Haney:pr/library-path-mapping
Apr 1, 2026
Merged

Improve library path mapping UX#122
StudioNirin merged 4 commits into
StudioNirin:mainfrom
Brandon-Haney:pr/library-path-mapping

Conversation

@Brandon-Haney

Copy link
Copy Markdown
Collaborator

Summary

  • Syncs library path mappings with Plex when toggling libraries on/off
  • Invalidates Plex cache on library toggle to detect location changes
  • Consolidates library path editing into a single form with bulk save
  • Improves UX for multi-location libraries with better path browser integration

Test plan

  • Verify library toggle syncs mappings with current Plex locations
  • Verify bulk path editing saves all mappings correctly
  • Verify multi-location libraries display and edit properly
  • Run full test suite

When toggling a library back ON, re-fetch locations from Plex
and reconcile: add mappings for new locations and remove mappings
for locations no longer in Plex. Previously, toggling off/on only
re-enabled stale mappings without detecting changes.
The 1-hour Plex library cache prevented toggle off/on from picking
up new or removed folder locations. Now invalidates cache before
fetching so the sync always uses fresh data from Plex.
Multi-mapping libraries now use one form with a single Save/Cancel
instead of per-mapping forms. New PUT /libraries/{id}/paths endpoint
saves all mappings at once.
- Auto-append folder name to mapping names when library has multiple
  locations (e.g., "Movies (Movies UHD)" instead of duplicate "Movies")
- Adaptive form hints reference the actual Plex path for each mapping
- Warning banner on unrecognized Plex path prefixes (not /data/ or /media/)
- Path validation now shows warning for non-/mnt/ paths instead of empty
@StudioNirin
StudioNirin merged commit 30ca3b3 into StudioNirin:main Apr 1, 2026
2 checks passed
@Brandon-Haney
Brandon-Haney deleted the pr/library-path-mapping branch April 1, 2026 05:24
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.

2 participants