7665ef4d10
Replace the static "recent requests" list with a proper table of all Jellyseerr requests, sorted by date added (newest first by default) with standard sorting and filtering. Backend: - JellyseerrClient.requests(max_count=500): paginated GET /api/v1/request (sort=added), mapped with type (movie/tv), status, media_status, and created_at labels. Returns up to 500 so the table can sort/filter client-side. - fetch_jellyseer_requests(service) reuses the per-service cached client (shared with the stats widgets). - new GET /api/jellyseerr/requests endpoint. Frontend: - JellyseerRequestsTable: TanStack Table (sorting via getSortedRowModel, pagination via getPaginationRowModel) reusing the Table primitives + TablePagination. Columns: Name / Type / Status / Media / Requested, all sortable; default sort Requested desc. A search box filters by name and a status dropdown defaults to "Open" (pending+approved+processing) with All/Pending/Approved/Declined options. (The shared DataTable is deliberately visibility-only, so this is a dedicated sortable table.) - RequestsTab renders the stats grid + the new table (the compact recent list stays on the Requests overview widget). - useJellyseerRequests hook + fetchJellyseerRequests API client. Tests: client requests() mapping + single-page stop; fetch helper not-configured; RequestsTab test mocks both hooks. 404/404 backend + 184/184 frontend pass; build (tsc -b && vite build) + ESLint clean.
1.4 KiB
1.4 KiB
frontend/src/components (index)
dir: frontend/src/components
role
Shared UI component library providing reusable React components for tables, cards, charts, dialogs, and dashboard widgets across the frontend application.
parent
index: frontend/src/.pi-map.index.md map: frontend/src/.pi-map.md
children
- frontend/src/components/tests index: frontend/src/components/tests/.pi-map.index.md map: frontend/src/components/tests/.pi-map.md
- frontend/src/components/ui index: frontend/src/components/ui/.pi-map.index.md map: frontend/src/components/ui/.pi-map.md
files
- BackupAlertsTable.tsx
- BackupDashboardWidget.tsx
- BackupJobsTable.tsx
- BackupRunsTable.tsx
- ConfirmDialog.tsx
- DialogFooter.tsx
- HoverEditButton.tsx
- JellyseerRequestsTable.tsx
- LibraryOverview.tsx
- LineSeriesChart.tsx
- MetricCard.tsx
- NowPlaying.tsx
- PinnedServiceLink.tsx
- SectionCard.tsx
- SelectionRailCard.tsx
- ServiceTestPanel.tsx
- SessionActivityPanel.tsx
- TabbedCard.tsx
- WidgetConfigDialog.tsx
- WidgetInstance.tsx
links
index: frontend/src/components/.pi-map.index.md map: frontend/src/components/.pi-map.md
workflows
- change components behavior read: BackupAlertsTable.tsx, BackupDashboardWidget.tsx, BackupJobsTable.tsx
- explore components subdirectories index: frontend/src/components/tests/.pi-map.index.md, frontend/src/components/ui/.pi-map.index.md