wrolpi/app/src
Roland 9d6eb0873e
Controller can unmount foreign mounts; protect the primary drive.
The /api/disks/unmount endpoint only removed entries from fstab.yaml and
asked the reconciler to unmount, but the reconciler deliberately never
unmounts paths it has not claimed.  Foreign mounts (udisks2 desktop
automounts, manual mounts) therefore could not be unmounted from the UI,
failing with a confusing "check journalctl" error.

- Fall back to a direct umount(8) when a reconcile leaves the requested
  mount point live.
- Reject unmounting the primary WROLPi drive (/media/wrolpi) with a
  clear 400, normalized to catch path traversal.
- Require the normalized mount point to be strictly under /media/
  before any direct umount, since the fallback runs as root.
- Show "System" instead of an Unmount button for /media/wrolpi in both
  the React UI and the Controller's simplified UI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-11 19:46:30 -06:00
..
api Warning users when files exist in mount location. Users may have accidentally downloaded files into the media directory, we want to warn them. 2026-05-14 17:02:52 -06:00
components Controller can unmount foreign mounts; protect the primary drive. 2026-06-11 19:46:30 -06:00
contexts Migrating Controller from port 8087 to 80 so that it is more discoverable. Reformatting Controller dashboard to make header at the top. Reformatting navigation bar to handle the new links which prevented Admin from being visible in some screens. 2026-04-09 15:01:05 -06:00
hooks chore: address Greptile P2 review comments on PR 449 2026-05-31 13:02:44 -06:00
types Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
api.js Displaying warning when no drive is mounted. 2026-05-14 16:16:18 -06:00
App.css Reworking file preview buttons to be consistent across screens. 2026-04-15 13:18:45 -06:00
App.js Refactoring videos and archives UI paths for consistent scheme. 2026-03-20 15:38:32 -06:00
DashboardPage.js Displaying warning when no drive is mounted. 2026-05-14 16:16:18 -06:00
DashboardPage.test.js Displaying warning when no drive is mounted. 2026-05-14 16:16:18 -06:00
Events.js Map search added to global search. Preview cards are displayed for all results in new Map tab. 2026-04-13 12:17:08 -06:00
index.css Renaming examples to avoid grouping of pdf with ebooks. Reworking URLs for media files to avoid escaping url safe characters. 2023-03-29 13:46:39 -06:00
index.js Fixing changes before merge. 2023-02-08 21:18:51 -07:00
logo.svg Renaming examples to avoid grouping of pdf with ebooks. Reworking URLs for media files to avoid escaping url safe characters. 2023-03-29 13:46:39 -06:00
reportWebVitals.js Renaming examples to avoid grouping of pdf with ebooks. Reworking URLs for media files to avoid escaping url safe characters. 2023-03-29 13:46:39 -06:00
setupTests.js Updating code to use new version of react-router. 2025-12-07 11:54:20 -07:00
Tags.cy.js Video downloads have many more options. Downloads are migrated. 2024-11-28 09:48:57 -07:00
Tags.js Reworking file preview buttons to be consistent across screens. 2026-04-15 13:18:45 -06:00
test-utils.js FileGroups in Collections can be reorganized in the Collection's directory. 2026-01-31 18:08:41 -07:00