Skip to main content

Administration guide

Imported component documentation. Source: melodee-project/melodee-admin-ui at commit e0ed63ec61a069159a1482d1ecd11dd480a6a60f. Version 2026.11.0-rc.0. License MIT. Status: release candidate; not published, deployed, production-qualified or security-reviewed. This is the component's committed documentation, not proof of a distribution release or production qualification.

This guide describes the implemented administration surfaces and their safe limits. The API remains authoritative for every permission, value and effect.

Shell and navigation​

  • Header: brand, primary group tabs, global catalog search (Ctrl+K / Cmd+K), notifications link, appearance menu and account menu.
  • Sidebar: Overview, Library, Ingest / Jobs, Devices, Users & Access, API & Integrations, Storage, Reports and System. The active group expands its contextual links. Below 1000 px the sidebar becomes a labelled navigation drawer; below 600 px the header search becomes an icon button.
  • Global search opens a dialog and navigates to /search?q=…. It is never the same control as a page-local filter. Local filters are labeled “current page”.
  • Appearance: System (default), Light or Dark. The preference is applied before first paint and persisted only as a non-sensitive local preference.
  • Status text is mandatory. Unknown server states render neutrally with the actual value and an explanatory tooltip. succeeded is displayed as “Completed” with a tooltip that quotes the raw server state.

Library​

Tracks​

/library/tracks is a cursor-paged canonical Track list. The native list supports only limit and cursor; the title filter applies to the loaded page and is labeled as such. Selecting a row reads its detail. No generic metadata PATCH, Track delete or playback is offered.

/library/tracks/:trackId shows identity, genres, preferred media, storage assets, quality coverage and locks. Genres are replaced only from the canonical genre registry. Preferred media is an explicit editorial acceptance; existing media is not deleted. Merge, locks, artwork and quality are separate guarded workflows.

Artists​

/library/artists is cursor-paged and locally filterable. The API has no Artist GET or relationship-count operation, so the detail page is rehydrated from the selected list/search object. A cold deep link shows the id and an honest limitation message rather than inventing a name or count. Alias creation and the explicit scoped match-decision form are available; the complete alias inventory and deletion are not published.

Releases​

/library/releases and /library/releases/:releaseId show canonical Release metadata, ordered Track memberships and revisioned classification. Original year is stable; codec belongs to assets. Classification is revision-checked: a 409 requires a re-read, never an overwrite.

/library/releases/virtual is a bounded loaded-page filter (kind = virtual) because no separate Virtual Release operation is published. It states the coverage limit and offers pagination.

Corrections​

  • /corrections/reviews lists ingestion review cases. The list endpoint has no published filters, so filtering is current-page-only.
  • /corrections/reviews/:reviewId shows immutable evidence, generic candidate arrays as returned, prior decisions and only the server-published available actions. Resolution requires a note and is never applied in bulk.
  • /corrections/locks/:kind/:id supports only the committed field vocabulary: Track title, track_artist_credits; Release title, original_year, main_artist, classification; Artist display_name, kind. A Track asset lock is separate.
  • /corrections/merge?source=… requires a verified distinct target, a reason and a typed phrase. The server returns the merge journal id and affected counts. There is no dry run or blind batch merge.
  • /corrections/split?mergeId=… requires a known journal id, a reason and a typed phrase. Journal contents cannot be previewed because no GET exists; the page does not claim the restored catalog state.
  • /corrections/transfer exports portable corrections and validates an imported document with the server dry run. Apply is disabled until preview semantics are published.

Quality and artwork​

  • /library/tracks/:trackId/quality displays the returned assessment and deterministic reference calibration. Missing coverage is not zero. Per-Track and global reassessment are gated (see the contract gaps).
  • /library/artwork/:ownerKind/:ownerId accepts JPEG/PNG uploads up to 10 MiB or an allowlisted provider URL. Existing owner artwork cannot be listed because the contract has no lookup. /library/artwork/maintenance is gated: pruning controls are visible but disabled.

Ingest and jobs​

  • /ingest/inbound browses one bounded server-relative directory at a time. Directory selection never enqueues ingestion; “Queue ingest from here” carries the volume and path to the form, not to the URL.
  • /ingest/new requires volume, sourcePath, generation, currentYear, mainArtistKind and creditKind. It returns a job id; it does not claim completion. No browser upload or filesystem access occurs.
  • /ingest/normalize requires volume, sourcePath and outputPath. The media policy is server-owned; no arbitrary codec/bitrate option is offered.
  • /operations/jobs uses server state/kind/active/schedule/volume filters and cursor pagination. Live progress opens only for the selected job, closes on change/unmount, reconnects with bounded backoff and falls back to a bounded GET poll. A cancellation request is not terminal until the server says so.
  • /operations/jobs/:jobId shows the snapshot and eligible controls. Because adminGetJob does not return eligibility, eligibility is read from the selected inventory row or the first bounded inventory page; if absent, actions are disabled rather than guessed. ?action=cancel|retry requires a reason.
  • /operations/job-controls edits full per-kind controls with expectedRevision; a 409 re-reads the server values.
  • /operations/schedules creates/edits/retires interval schedules. The update operation supports only enabled plus revision, so kind/interval/next run are read-only in edit mode. Retirement is a soft retire: future execution stops and occurrence/job/audit history is retained. Run-due is a global bounded action, not a per-schedule “run now”.

Storage​

  • /storage/volumes lists name, kind, status, priority, minimum free and owner epoch. Mount paths are deliberately not displayed. Volumes are created and mounted out of band; there is no create/delete control.
  • /storage/volumes/:volumeId changes status, priority and minimum free bytes using expectedOwnerEpoch. It cannot change the mount path. Status locked refuses new writes; missing means absent with no local fallback.
  • /storage/assets uses the supported filters: volume, format, availability, integrity, preferred, quarantined, locked, track and a creation range. Relative paths are safe metadata; absolute paths are not shown.
  • /storage/assets/:assetId rehydrates from the selected inventory row (or the first bounded page). Move queues a durable job to a distinct active volume and navigates to the returned job id; it never reports an optimistic move. Quarantine and release-quarantine are separate confirmations and availability is re-read, never assumed. No file delete or direct/synchronous move is exposed.

Reports and snapshots​

Catalog, storage, providers, jobs, quality and ingestion reports display exactly the returned values, coverage, dictionary version and generation instant. CSV export uses the documented format=csv; JSON export serializes the returned document. Ingestion supports an explicit date range and IANA timezone, displays the server’s returned fromDay/toDay/watermark and does not interpolate gaps.

Supported snapshot kinds are catalog, storage, quality, jobs and providers. Ingestion snapshot capture is not offered. Snapshots are immutable point-in-time objects; their generic payload is shown as bounded JSON. No delete/retention editor exists.

Users, access and credentials​

  • /access/accounts searches by display name (server q) and shows lifecycle metadata and capability grants. There is no invite/create/delete account operation. Responses omit contacts, token digests and protected paths.
  • /access/accounts/:accountId grants/revokes the six registered capabilities, enables/disables the account and revokes all sessions. Self status changes and last-administrator revocation are rejected by the server. admin_providers has no enforcing operation in 1.0.0.
  • /access/devices manages only the caller’s sessions. The current session signs out through the documented logout; another session revokes by exact id. Device consent and pending approvals belong to the Auth UI.
  • /integrations/automation (see /integrations/automation) issues scoped automation credentials with an explicit purpose, future expiry and the eight published scopes. The token is shown once and removed from history state. The account’s capabilities still bound what a token can do.
  • /integrations/credentials/:id revokes one exact automation or compatibility credential. /access/compatibility manages per-device OpenSubsonic/Jellyfin credentials; the secret is shown once and never stored.
  • /integrations/providers lists provider circuits and resets an exact host with a typed confirmation. It does not edit provider credentials or budgets.

Notifications, legacy and system​

  • /system/notifications monitors bounded delivery records and queues a test. Queued is not delivered. No arbitrary text send, per-delivery retry or channel secret editor is published.
  • /settings/notifications edits the caller’s channel subscriptions and marks only the caller’s in-app notifications read.
  • /system/legacy previews a legacy export and field dispositions; it performs no writes. /system/legacy/reconcile reports matched/ambiguous/unmatched rows and downloads the returned report client-side. No migration commit exists.
  • /system/status shows liveness, capability discovery, authentication methods, bounded metrics and a SHA-256 comparison of the served OpenAPI. Liveness is not readiness; uptime is not reported. No restart, update, log tail, audit feed or backup control exists.

Gated actions​

ActionStateWhy
Correction import applyDisabledOpenAPI does not publish dry-run/preview semantics
Artwork prune / cache pruneDisabledOpaque request schema, no bounds or preview
Quality reassessmentDisabledOpaque body; implementation is an undocumented global batch
Any unsupported create/delete/mount/worker controlAbsentNo published operation
Auth UI continuation to admin routeNot supported upstreamAuth UI allowlist is its own paths only

See ../design/evidence/implementation/contract-gaps.md for operation/field/constraint evidence.