refactor(settings): remove dead machine path fields from frontend

Slice 2 of jellyfin-service-registry. Removes the machine-level
media_root/path_prefix fields from the frontend now that the backend no
longer stores them.

- types/index.ts: dropped media_root/path_prefix from MonitoringMachine
  and MonitoringMachineInput.
- pages/Settings.tsx: removed the media_root form input, the read-only
  "Media root" detail (replaced with a local-hint field mirroring the
  editor), and media_root/path_prefix from emptyMachine() and both
  edit-handler reset mappings; updated the section description.
- tests: removed media_root/path_prefix from Settings/Media/FileBrowser
  test fixtures.

npm run build (tsc -b + vite) clean; 0 lint errors; 72 tests pass.
This commit is contained in:
Developer
2026-06-24 14:51:28 +00:00
parent 7107815a5c
commit fd12e921fd
5 changed files with 3 additions and 35 deletions
@@ -51,8 +51,6 @@ function localMachine(
ssh_private_key_set: false,
ssh_private_key_passphrase_set: false,
password_set: false,
media_root: "/mnt/media",
path_prefix: "",
notes: "Primary node",
...overrides,
} as MonitoringMachine;