Import UX: auto-refresh book list and add navigation link after import #47

Closed
opened 2026-02-13 05:57:41 +00:00 by mik-tf · 0 comments
Owner

Problem

After importing a library via the Import UI, the new library does not appear on the homepage until the server is restarted. The import progress page also provides no navigation after completion.

Solution

  1. After the import pipeline completes, trigger a re-export of the newly imported books so they appear on the homepage immediately
  2. Add a "View Libraries" link/button on the import progress page after completion

Context

The import pipeline already writes the book TOML to books_dir and uploads embeddings. The missing step is calling export_books_for_serving() (or a lighter per-namespace variant) at the end of the import handler so the in-memory book list is refreshed.

## Problem After importing a library via the Import UI, the new library does not appear on the homepage until the server is restarted. The import progress page also provides no navigation after completion. ## Solution 1. After the import pipeline completes, trigger a re-export of the newly imported books so they appear on the homepage immediately 2. Add a "View Libraries" link/button on the import progress page after completion ## Context The import pipeline already writes the book TOML to `books_dir` and uploads embeddings. The missing step is calling `export_books_for_serving()` (or a lighter per-namespace variant) at the end of the import handler so the in-memory book list is refreshed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#47
No description provided.