feat: Refactor Import Client for EPUB management with enhanced UI and functionality
Build and Push Reader Image / docker (push) Successful in 1m17s

- Implemented a multi-step wizard for importing EPUB files, including search, metadata review, chapter preview, and import progress tracking.
- Added genre management features, allowing users to create, select, and delete genres during the import process.
- Enhanced asset search functionality with improved API integration and user feedback.
- Updated the UI components for better user experience and responsiveness.
- Removed unused AI Tool links from the Novel Client and Mod Dashboard.
- Cleaned up the HomePage API response handling to streamline data fetching for popular and latest novels.
- Adjusted TypeScript definitions for route types in the Next.js environment.
This commit is contained in:
2026-05-03 20:57:50 +07:00
parent a6acb2b816
commit 5f2c6d26f6
11 changed files with 652 additions and 252 deletions
+10
View File
@@ -38,3 +38,13 @@ Luon xem `reader-api` la canonical behavior.
- Rating: `POST /api/truyen/{id}/rate`.
- Recommendation: `/api/user/recommendations`.
- Error rules: follow `CONTRACT.md`.
## Flow 5: MOD EPUB Import Wizard
- Route: `/mod/import`
- Steps:
1. Search source asset by name (`GET /api/import/assets/search`)
2. Review metadata + AI suggestion (`preview-metadata`, `ai-suggest`, `review`)
3. Parse preview with TOC/regex-start (`POST /api/import/assets/{id}/parse-preview`)
4. Start import and poll progress (`start-import`, `GET /api/import/sessions/{sessionId}`)
- Rule: reviewer confirms metadata before import starts.