Files
ReadMeABook/documentation/TABLEOFCONTENTS.md
T
kikootwo c8bfcdb611 Add admin Bulk Import feature
Introduce a Bulk Import feature for admins to scan server folders, match discovered audiobook folders against Audible, review matches, and queue batch imports.

What changed:
- Added documentation: documentation/features/bulk-import.md and TABLEOFCONTENTS update.
- Backend: SSE scan endpoint (POST /api/admin/bulk-import/scan) streams discovery and matching events; execute endpoint (POST /api/admin/bulk-import/execute) validates paths, creates/resolves audiobook & request records, and queues organize_files jobs. Both endpoints enforce admin-only access and validate allowed root directories (download_dir, media_dir, /bookdrop).
- Frontend: Modal wizard and steps for folder selection, scan progress, and match review (BulkImportWizard + ScanFolderStep, ScanProgressStep, MatchReviewStep + shared types).
- Utilities: bulk-import-scanner for folder discovery and ffprobe metadata extraction; shared types for scanned books/events.
- UI: Added Bulk Import quick action to admin dashboard (src/app/admin/page.tsx).

Key details:
- Audible searches are rate-limited (≈1.5s) and matching results include library/request status checks.
- Reuses existing organize_files job queue and manual-import pipeline; no new database tables introduced (state is ephemeral during the wizard).
- Includes error handling, path normalization, and security checks for allowed directories.

This commit wires frontend, backend, and docs together to provide an admin-only multi-step bulk import workflow.
2026-03-13 12:03:21 -04:00

15 KiB

Documentation Table of Contents

Purpose: Quick navigation for AI to locate relevant documentation without reading all files.

Authentication & Users

Configuration & Setup

Database & Data Models

Plex Integration

Audiobookshelf Integration

Reading Shelves (Goodreads, Hardcover)

Audible Integration

E-book Support (First-Class)

Automation Pipeline

Background Jobs

Logging

Notifications

Frontend Components

BookDate (AI Recommendations)

Admin Features

Fixes & Improvements

Deployment

Testing

Feature-Specific Lookups

"How do I add a new audiobook?"integrations/audible.md (scraping), phase3/README.md (automation) "How do I configure multiple download clients?"phase3/download-clients.md "How do torrent downloads work?"phase3/qbittorrent.md, backend/services/jobs.md "How do Usenet/NZB downloads work?"phase3/sabnzbd.md, phase3/download-clients.md, backend/services/jobs.md "Can I use both qBittorrent and SABnzbd?"phase3/download-clients.md "How do I use NZBGet instead of SABnzbd?"phase3/download-clients.md "How do I use Transmission instead of qBittorrent?"phase3/download-clients.md "How do I set different download paths per client?"phase3/download-clients.md "How does Plex matching work?"integrations/plex.md "How does e-book support work?"integrations/ebook-sidecar.md "How do I enable e-book downloads?"integrations/ebook-sidecar.md, settings-pages.md "How do I configure ebook sources (Anna's Archive vs Indexer)?"settings-pages.md "How does ebook indexer search work?"integrations/ebook-sidecar.md "How do I configure ebook categories per indexer?"settings-pages.md "How does ebook ranking work?"phase3/ranking-algorithm.md "What happens when I delete an ebook request?"integrations/ebook-sidecar.md "Why do ebook requests have an orange badge?"integrations/ebook-sidecar.md "How do scheduled jobs work?"backend/services/scheduler.md "How do I configure external services?"setup-wizard.md, settings-pages.md "What's the database schema?"backend/database.md "How does authentication work?"backend/services/auth.md "How do I change my password?"backend/services/auth.md (local users only - accessed via user menu in header) "How do I delete requests?"admin-features/request-deletion.md "How do I approve/deny user requests?"admin-features/request-approval.md "How do I enable auto-approve for requests?"admin-features/request-approval.md "How do I customize audiobook folder organization?"settings-pages.md, phase3/file-organization.md "How do I deploy?"deployment/docker.md (multi-container), deployment/unified.md (all-in-one) "How do I use the unified container?"deployment/unified.md "Why can't RMAB find my downloaded files?"deployment/volume-mapping.md "How do I set up volume mapping for qBittorrent/Transmission/SABnzbd/NZBGet?"deployment/volume-mapping.md "OAuth redirects to localhost / PUBLIC_URL not working"backend/services/environment.md "What environment variables do I need?"backend/services/environment.md "How does chapter merging work?"features/chapter-merging.md "How does logging work?"backend/services/logging.md "How do BookDate card stack animations work?"features/bookdate-animations.md "How does Audiobookshelf integration work?"src/lib/services/audiobookshelf/api.ts, src/lib/services/library/AudiobookshelfLibraryService.ts "How do I use OIDC/Authentik/Keycloak?"backend/services/auth.md "How do I switch from Plex to Audiobookshelf?" → Setup wizard (re-run setup with different backend mode) "How does library thumbnail caching work?"features/library-thumbnail-cache.md "Why do BookDate library books show placeholders?"features/library-thumbnail-cache.md "How does file hash matching work?"fixes/file-hash-matching.md "Why is ABS matching the wrong book?"fixes/file-hash-matching.md (file hash prevents false positives) "How do I customize my home page?"features/home-sections.md "How do Audible categories work?"features/home-sections.md "How do I add category sections to the home page?"features/home-sections.md "How do Goodreads shelves work?"backend/services/goodreads-sync.md "How do Hardcover shelves work?"backend/services/hardcover-sync.md "How do I add a new shelf provider?"backend/services/goodreads-sync.md "How does the shelf sync core work?"backend/services/goodreads-sync.md "How does bulk import work?"features/bulk-import.md "How do I import multiple audiobooks at once?"features/bulk-import.md "How does the bulk import scanner detect audiobooks?"features/bulk-import.md