wrolpi/app/src/components
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
..
admin Controller can unmount foreign mounts; protect the primary drive. 2026-06-11 19:46:30 -06:00
calculators Guard preset lookup, drop dead Media import and volume*1 no-op 2026-05-28 18:07:01 -06:00
collections Consolidating deletion endpoints. 2026-05-03 19:14:30 -06:00
Apps.js Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
Archive.js Consolidating deletion endpoints. 2026-05-03 19:14:30 -06:00
ArchivePreview.js Showing preview of zip file contents, allowing user to download individual files without full extraction. 2026-03-15 12:58:40 -06:00
BulkTagModal.js Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
BulkTagModal.test.js Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
Calculators.js Add Water Storage calculator (people → duration → containers) 2026-05-28 18:06:48 -06:00
CbzViewer.js Reworking file preview buttons to be consistent across screens. 2026-04-15 13:18:45 -06:00
Channels.cy.js Moving form fields. 2025-12-06 15:11:37 -07:00
Channels.js Adding videos page hotkeys to help play and navigate videos. Adding f hotkey for all local search fields (channel/domain/etc). Focusing when opening cookie modals. 2026-02-23 17:29:09 -07:00
Common.js Fixing flaky domain search test. 2026-05-31 13:09:20 -06:00
Common.test.js Reformatting code. 2025-12-06 15:11:37 -07:00
DatesSelector.js Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
Docs.js Consolidating deletion endpoints. 2026-05-03 19:14:30 -06:00
DomainEditPage.test.js FileGroups in Collections can be reorganized in the Collection's directory. 2026-01-31 18:08:41 -07:00
DomainsPage.test.js Reformatting code. 2025-12-06 15:11:37 -07:00
DomainTagging.test.js Reformatting code. 2025-12-06 15:11:37 -07:00
DonatePage.js Adding noreferrer to all external links. 2026-02-15 17:26:36 -07:00
Download.cy.js Adding edit form for Scrape downloader. 2024-12-03 12:44:38 -07:00
Download.js fix: coerce sleep_requests and numeric settings from string form values 2026-05-31 13:02:31 -06:00
Download.test.js Reformatting code. 2025-12-06 15:11:37 -07:00
ErrorBoundary.js Adding Upload button to the FileBrowser. Adding ErrorBoundaries to prevent entire app from crashing. 2025-12-25 09:14:00 -07:00
FileBrowser.js Models like Archive/Video/Doc can be deleted, even if they are tagged. User is shown a warning and must confirm deletion of tagged files. 2026-05-03 19:14:15 -06:00
FileBrowser.test.js Enhancing file browser with drag-to-select. 2025-12-26 11:28:10 -07:00
FilePreview.js Changing model file icon to teal tube. 2026-04-15 14:04:07 -06:00
Files.js Adding Doc filter button so users can search just PDFs/EPUB/etc. 2026-04-14 15:35:35 -06:00
Headline.js Refactoring videos and archives UI paths for consistent scheme. 2026-03-20 15:38:32 -06:00
HelpModal.js Adding videos page hotkeys to help play and navigate videos. Adding f hotkey for all local search fields (channel/domain/etc). Focusing when opening cookie modals. 2026-02-23 17:29:09 -07:00
Inventory.js Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
KeyboardShortcutsProvider.js Adding fullscreen keyboard shortcut. 2026-03-27 17:59:36 -06:00
Map.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
MapSearchView.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
MapViewer.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
Nav.js Not using flexbox when measuring navbar item widths so that Admin link is not cropped. 2026-04-10 15:27:15 -06:00
Placeholder.js Configs are displayed in new ConfigsPage under Admin. 2024-10-16 18:56:45 -06:00
Search.js Add Water Storage calculator (people → duration → containers) 2026-05-28 18:06:48 -06:00
Share.js Converting Theme.js to typescript so we can use shorthands like Card.Icon. 2025-12-07 12:41:10 -07:00
ShortcutHint.js Displaying cmd+k/ctrl+k global search keyboard shortcut suggestion. 2026-02-23 16:07:22 -07:00
SortableTable.js Adding default 'No results' row when sortable table has no rows. 2024-01-01 17:10:51 -07:00
Tables.js Reworking empty-states for all pages and tables. Removing custom isEmpty in favor of lodash. 2023-01-04 09:14:33 -07:00
TaggedDeleteConfirmModal.js Models like Archive/Video/Doc can be deleted, even if they are tagged. User is shown a warning and must confirm deletion of tagged files. 2026-05-03 19:14:15 -06:00
TaggedDeleteConfirmModal.test.js Models like Archive/Video/Doc can be deleted, even if they are tagged. User is shown a warning and must confirm deletion of tagged files. 2026-05-03 19:14:15 -06:00
Theme.test.js Displaying download progress (speed, eta) for file and video downloads. 2026-03-12 19:31:35 -06:00
Theme.tsx Add Drive Ratio calculator (pulleys, gears, sprockets) 2026-05-28 15:17:50 -06:00
Upload.js Reformatting code. 2025-12-06 15:11:37 -07:00
Vars.js Modifying Video/Channel/RSS Downloaders so that they can download videos, but audio only. These audio files are grouped under their channel directories. 2026-04-14 15:33:01 -06:00
VideoPlayer.js Consolidating deletion endpoints. 2026-05-03 19:14:30 -06:00
Videos.js Consolidating deletion endpoints. 2026-05-03 19:14:30 -06:00
Zim.js Reworking file preview buttons to be consistent across screens. 2026-04-15 13:18:45 -06:00