You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(web): reorganize admin Libraries page into Libraries, Scan Activity, and Catalog Health tabs - #5087
Related issue: N/A
Validation tasks: none
Other clients: Apple N/A (web admin page with no native client counterpart); Android N/A (web admin page with no native client counterpart); Roku N/A (web admin page with no native client counterpart)
The admin Libraries page crowded three different workflows onto one screen: managing libraries, watching active scan queues, and triaging catalog diagnostics. Active scans appeared in three places at once (a header popover, status-column badges, and inline sub-rows that shifted the table height as autoscan runs started and stopped). Row actions were five unlabeled icon buttons whose icons did not clearly distinguish scanning, refreshing metadata, and verifying mounts. Five collapsible diagnostic sections sat stacked below the table.
Approach
Split /admin/libraries into three URL-backed tabs (Libraries, Scan Activity, and Catalog Health) while keeping the legacy ?tab=autoscan redirect intact.
Libraries tab: Show a single-line live activity summary strip when scans or metadata refreshes are active. Consolidate library type icons, names, and folder counts into one Library column; clicking a library's folder count or path opens the library editor directly on the Folders section. Drop the redundant Enabled pill on healthy libraries, show relative Last Scanned times with exact timestamps on hover, attach scan warnings directly beneath the affected row, and replace the unlabeled icon strip with explicit Scan/Stop and Edit buttons plus a shared labeled overflow menu (Rescan Metadata, Verify Mounts, Confirm Cleanup, and separated Delete). Remove the Catalog Maintenance shortcut from the header.
Scan Activity tab: Replace the header popover and inline table sub-rows with per-library filter chips, active metadata refresh cards, running scan progress bars, collapsed queued scan summaries (Show all / Hide queue), and JobPageControls. Clicking a library's live status pill on the Libraries tab jumps here pre-filtered to that library.
Catalog Health tab: Replace the five stacked diagnostic accordions with a five-tile selector (Unmatched Items, Metadata Matcher, Ambiguous Roots, Troubleshooting, and Stale External IDs) rendering one active panel below. Preserve lazy loading on the three heavy endpoints (Ambiguous Roots, Troubleshooting, and Stale External IDs) until selected.
Added the 25 web admin keys in Silo-Server/silo-translations#145 and pinned the published release (2026.11.22-6592505).
Filed user manual update follow-up: Silo-Server/siloserver.org#451.
Validation
Web formatting, lint, typecheck, production build, and bundle budget check: passed (0 ESLint errors).
Web test suite (make test-web): passed (322 files, 3,161 tests), including AdminLibraries.test.tsx.
None identified. No API contract or database changes; all existing library mutations, drag-and-drop ordering, mobile reorder controls, and diagnostic dialogs remain intact.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
AI Disclosure
Harness: Antigravity (T3 Code)
Tool(s): Antigravity coding agent
Model(s): gemini-4-neon
Involvement: AI-assisted
Adversarial review: n/a
Note
Split admin Libraries page into Libraries, Scan Activity, and Catalog Health tabs
Reorganizes AdminLibraries.tsx into three URL-backed tabs (tab query parameter): libraries, activity, and health. The header scan-queue popover and catalog-maintenance link are removed.
Adds LibraryActivityPanel and LibraryCatalogHealthPanel components; existing sections (UnmatchedItemsSection, MetadataMatcherQueuesSection, AmbiguousRootsSection, SkippedRootsSection, StaleIDsSection) gain an embedded mode with loading, error-retry, and empty states, plus status callbacks for health-tab summary counts.
Reworks library rows and cards: shared LibraryActionMenu, clickable scan/refresh status badges that jump to the Activity tab, inline scan progress on rows, and LibraryEditorDialog opens on a chosen section via initialSection.
Adds translations for the new tabs, actions, and status labels across all locales.
Behavioral Change: healthy enabled libraries no longer show an Enabled badge, and cards no longer show the inline active-work block — activity is reached via the status badges and the Activity tab. Invalid tab values fall back to the Libraries tab.
Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).
The libraries administration page adds URL-backed Libraries, Activity, and Health tabs. It adds scan and metadata-refresh activity views, catalog-health sections, updated library controls, and translations for the new interface.
Changes: Library Administration
Layer / File(s)
Summary
Library controls and status web/src/components/admin/libraries/libraryActivityHelpers.ts, web/src/components/admin/libraries/LibraryEditorDialog.tsx, web/src/components/admin/libraries/useLibraryRows.ts, web/src/components/admin/libraries/LibraryRowParts.tsx, web/src/components/admin/libraries/LibraryCardList.tsx, web/src/components/admin/libraries/useCollapsedScans.ts
Library rows and cards use updated status badges and a shared action menu. Scan progress helpers and editor section selection are added. The collapsed-scan hook and inline active-work display are removed.
Scan and refresh activity web/src/components/admin/libraries/LibraryActivityPanel.tsx
Activity summaries and per-library panels show running and queued scans and refresh jobs. The panel supports filtering, cancellation, and expanding longer scan queues.
Catalog health sections web/src/components/admin/libraries/LibraryCatalogHealthPanel.tsx, web/src/components/admin/libraries/AmbiguousRootsSection.tsx, web/src/components/admin/libraries/MetadataMatcherQueuesSection.tsx, web/src/components/admin/libraries/SkippedRootsSection.tsx, web/src/components/admin/libraries/StaleIDsSection.tsx, web/src/components/admin/libraries/UnmatchedItemsSection.tsx
The health panel provides five selectable sections. Embedded sections report counts or errors where supported and render loading, error, or empty states.
Page tabs and integration web/src/pages/AdminLibraries.tsx, web/src/pages/AdminLibraries.test.tsx
The page connects URL-backed tabs with activity filtering and health counts. Library rows show scan progress and warnings. Tests cover tab behavior, lazy health queries, scan navigation, warnings, and editor sections.
Translations and catalog .silo-translations, web/src/locales/keys.ts, web/src/locales/*.json
Locale files add library activity, catalog health, library action, and unmatched-status messages. They update the libraries-page subtitle and describe the nowPlayingRead API-key scope. The translation keys and manifest version are updated.
sequenceDiagram
actor Admin
participant AdminLibraries
participant LibraryActivityPanel
Admin->>AdminLibraries: Open Activity or select a library activity link
AdminLibraries->>LibraryActivityPanel: Pass scan groups and refresh entries
Admin->>LibraryActivityPanel: Filter activity or cancel active work
Loading
Merge Risk: Low · previous review 33829
The new Libraries, Scan Activity and Catalog Health tabs work, but a failed data load can look like an empty result on the libraries list and in two health sections. Several smaller Activity-tab and accessibility rough edges remain. Fixing the loading and error states before merge would prevent administrators from misreading a failure as "nothing to do".
Architecture risk: Low · up to 33829
The change affects 1 system.
Changed systems:web
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — web (service) was modified; 57 changed files map to changed impact.
Before / after behavior
observed — Modified behavior in web/src/components/admin/libraries/AmbiguousRootsSection.tsx: The component now imports React’s useEffect hook.
observed — Modified behavior in web/src/components/admin/libraries/AmbiguousRootsSection.tsx: AmbiguousRootsSection adds optional embedded and onStatusChange props and derives isOpen so embedded mode is treated as open.
observed — Modified behavior in web/src/components/admin/libraries/AmbiguousRootsSection.tsx: The roots query is enabled according to isOpen instead of only the collapsible section’s open state.
observed — Modified behavior in web/src/components/admin/libraries/AmbiguousRootsSection.tsx: An effect reports status when a callback exists and the trimmed debounced search is empty. It publishes a count only for a single library with a known count; it reports the initial-load failure flag as isError.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the admin Libraries page is split into Libraries, Scan Activity, and Catalog Health tabs. The changeset matches this: AdminLibraries.tsx adds URL-backed tabs, new acti…
Description check
The description explains the problem, the approach, validation, and risks. It matches the changeset: the three tabs, the Libraries table rework, the Scan Activity and Catalog Health panels, the locale…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the admin Libraries page is split into Libraries, Scan Activity, and Catalog Health tabs. The changeset matches this: AdminLibraries.tsx adds URL-backed tabs, new activity and catalog health panels, and locale updates. The title is specific and uses the conventional feat(web) prefix. The title is 97 characters, which is longer than ideal but still readable.
Full details: Description check
Explanation
The description explains the problem, the approach, validation, and risks. It matches the changeset: the three tabs, the Libraries table rework, the Scan Activity and Catalog Health panels, the locale keys, and the lazy-loaded diagnostic endpoints. It is detailed and on-topic.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 13
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Major · Show a library-load error instead of an empty catalog. · AdminLibraries.tsx:112-116
web/src/pages/AdminLibraries.tsx:112-116 Major · Stability & Availability · Quick win
Show a library-load error instead of an empty catalog.
If the first library request fails with no cached data, this code supplies NO_LIBRARIES. Both new empty states then say “No libraries configured yet.” The administrator cannot tell that the inventory failed to load, and neither layout offers a retry. Handle the query error before rendering either empty state. Keep the empty message for a successful empty response. (raw.githubusercontent.com)
Based on learnings, flag missing error UI when failed async data reaches data-dependent JSX.
Use two active libraries to test the shortcut’s filter.
Both scans belong to TV Shows. The test passes if the shortcut opens Scan Activity with All selected. Add an active scan for Movies, then assert that the TV Shows shortcut shows the TV scans but not the Movies scan.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 37d7055c-6b33-41ae-9de3-ed56e968475b
Commits
Reviewing files that changed from the base of the PR and between 7936acb and 3382920.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enhancementNew feature or requestimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/XXXL3000+ added + deleted lines (all files); change volume, not priority.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: none
Other clients: Apple N/A (web admin page with no native client counterpart); Android N/A (web admin page with no native client counterpart); Roku N/A (web admin page with no native client counterpart)
The admin Libraries page crowded three different workflows onto one screen: managing libraries, watching active scan queues, and triaging catalog diagnostics. Active scans appeared in three places at once (a header popover, status-column badges, and inline sub-rows that shifted the table height as autoscan runs started and stopped). Row actions were five unlabeled icon buttons whose icons did not clearly distinguish scanning, refreshing metadata, and verifying mounts. Five collapsible diagnostic sections sat stacked below the table.
Approach
/admin/librariesinto three URL-backed tabs (Libraries,Scan Activity, andCatalog Health) while keeping the legacy?tab=autoscanredirect intact.Librarycolumn; clicking a library's folder count or path opens the library editor directly on the Folders section. Drop the redundantEnabledpill on healthy libraries, show relativeLast Scannedtimes with exact timestamps on hover, attach scan warnings directly beneath the affected row, and replace the unlabeled icon strip with explicitScan/StopandEditbuttons plus a shared labeled overflow menu (Rescan Metadata,Verify Mounts,Confirm Cleanup, and separatedDelete). Remove theCatalog Maintenanceshortcut from the header.Show all/Hide queue), andJobPageControls. Clicking a library's live status pill on theLibrariestab jumps here pre-filtered to that library.Unmatched Items,Metadata Matcher,Ambiguous Roots,Troubleshooting, andStale External IDs) rendering one active panel below. Preserve lazy loading on the three heavy endpoints (Ambiguous Roots,Troubleshooting, andStale External IDs) until selected.Silo-Server/silo-translations#145and pinned the published release (2026.11.22-6592505).Silo-Server/siloserver.org#451.Validation
0ESLint errors).make test-web): passed (322files,3,161tests), includingAdminLibraries.test.tsx.verify-local-paths,verify-case-collisions,verify-bidi,verify-size-ratchet): passed.1280x800) and phone (390x844) viewports with0console errors or warnings.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-5087/
Risks
None identified. No API contract or database changes; all existing library mutations, drag-and-drop ordering, mobile reorder controls, and diagnostic dialogs remain intact.
Checklist
AI Disclosure
Note
Split admin Libraries page into Libraries, Scan Activity, and Catalog Health tabs
tabquery parameter): libraries, activity, and health. The header scan-queue popover and catalog-maintenance link are removed.LibraryActivityPanelandLibraryCatalogHealthPanelcomponents; existing sections (UnmatchedItemsSection,MetadataMatcherQueuesSection,AmbiguousRootsSection,SkippedRootsSection,StaleIDsSection) gain an embedded mode with loading, error-retry, and empty states, plus status callbacks for health-tab summary counts.LibraryActionMenu, clickable scan/refresh status badges that jump to the Activity tab, inline scan progress on rows, andLibraryEditorDialogopens on a chosen section viainitialSection.Enabledbadge, and cards no longer show the inline active-work block — activity is reached via the status badges and the Activity tab. Invalidtabvalues fall back to the Libraries tab.Macroscope summarized 1f30148.