feat: Revamp EPUB import process with batch upload support and enhanced API integration
Build and Push Reader Image / docker (push) Failing after 22s
Build and Push Reader Image / docker (push) Failing after 22s
- Introduced a new batch import client for handling multiple EPUB files simultaneously. - Updated API routes for previewing and importing EPUB files, improving error handling and response management. - Enhanced genre management during import, allowing for dynamic creation and association of genres. - Implemented long-fetch handling to accommodate lengthy processing times for large EPUB files. - Refined UI components for better user experience in the import workflow.
This commit is contained in:
@@ -257,6 +257,10 @@ export function ImportClient() {
|
||||
setSelectedGenreIds(ensuredIds)
|
||||
}
|
||||
setShortDescription(data?.shortDescription || "")
|
||||
const st = typeof data?.suggestedStatus === "string" ? data.suggestedStatus.trim() : ""
|
||||
if (st === "Đang ra" || st === "Hoàn thành" || st === "Tạm ngưng") {
|
||||
setStatus(st)
|
||||
}
|
||||
toast.success("Đã áp dụng gợi ý AI")
|
||||
} catch (error) {
|
||||
toast.error(error instanceof Error ? error.message : "AI suggest lỗi")
|
||||
|
||||
Reference in New Issue
Block a user