Hero Books Features to Recover and Clean #78

Closed
opened 2026-03-11 15:33:37 +00:00 by mik-tf · 2 comments
Owner

Situation

  • Hero books works now with e.g. make demo
  • But it is missing features that were there before
  • Will show screenshot and explain the UX

Screenshots

  • toolbar at the top: libraries, tools, docs

image

  • tools option: import collections, and markdown to pdf

image

image

  • In tools we had markdown to pdf. Can take any url or local file and it integrated it into hero books

image

  • Docs section

image

  • Versions in the past, this is there, so we have a lot of features that are OK

image

  • we can filter by topics/categories or by books

image

  • we can filter by categories

image

  • we can ask the librarian via text or record audio

image

  • We can do searches per single library, but also per book

image

  • We have relevancy on top right of each entry

image

  • Important: we cannot do cross libraries search, it is just a search per library. It is a required specs. It is possible to set it for cross libraries search, but we dont want this. So we should remove the search at the top. The UX is: you go to a library (or a book) and then you ask the librarian

image

# Situation - Hero books works now with e.g. make demo - But it is missing features that were there before - Will show screenshot and explain the UX # Screenshots - toolbar at the top: libraries, tools, docs ![image](/attachments/37a8674b-4714-4719-80d5-e408547c1f3b) - tools option: import collections, and markdown to pdf ![image](/attachments/fd8483d1-cf3a-4d54-b0b0-2c39bef26452) ![image](/attachments/589213af-1202-4968-80d4-880d744d17e8) - In tools we had markdown to pdf. Can take any url or local file and it integrated it into hero books ![image](/attachments/6c916efe-9612-468c-a39c-10e3f438e349) - Docs section ![image](/attachments/5e475071-4833-481d-a248-3678bf6ca8e3) - Versions in the past, this is there, so we have a lot of features that are OK ![image](/attachments/381b589c-1ada-4d5c-a359-b8185bd95d4c) - we can filter by topics/categories or by books ![image](/attachments/cdd82b83-bcf2-47f6-9c12-2b9fa4212a21) - we can filter by categories ![image](/attachments/9689dfe0-5cf7-4295-9e6e-bffa57442e3b) - we can ask the librarian via text or record audio ![image](/attachments/9400d9e7-66f1-4387-b0a2-13c2be962c9a) - We can do searches per single library, but also per book ![image](/attachments/37804488-85b3-4f38-a71e-6b4a36bd0a1a) - We have relevancy on top right of each entry ![image](/attachments/3b3e2cb8-0c71-4bdb-8fa0-99efe306a3a4) - Important: we cannot do cross libraries search, it is just a search per library. It is a required specs. It is possible to set it for cross libraries search, but we dont want this. So we should remove the search at the top. The UX is: you go to a library (or a book) and then you ask the librarian ![image](/attachments/9907df56-fd2c-4ab6-8e41-ed3318f0f1cd)
Author
Owner

Update

All features, toolbar navigation (Libraries/Tools/Docs), Import Collections, Markdown-to-PDF conversion, and the Docs page with versioning, were fully functional before commit 5aeb9fc, which cleaned up dead code and moved the server to a socket-only architecture. During that refactor, some working UI route handlers were inadvertently removed along with the truly unused code, and when the hero_books_viewer crate was later created as the new frontend, only the core library browsing was implemented initially.

To restore, the original templates (import.html, convert.html, docs.html) and the full navbar still exist in crates/hero_books_server/templates/, and the corresponding route handlers (including build_router() with all routes) can be referenced from the parent commit 5aeb9fc~1. The work involves porting those HTML routes and handlers into the viewer crate, wiring them to proxy the existing server RPC methods (import, PDF conversion, etc.), and removing the global cross-library /search route so search only works per-library through the librarian.

# Update All features, toolbar navigation (Libraries/Tools/Docs), Import Collections, Markdown-to-PDF conversion, and the Docs page with versioning, were fully functional before commit 5aeb9fc, which cleaned up dead code and moved the server to a socket-only architecture. During that refactor, some working UI route handlers were inadvertently removed along with the truly unused code, and when the hero_books_viewer crate was later created as the new frontend, only the core library browsing was implemented initially. To restore, the original templates (import.html, convert.html, docs.html) and the full navbar still exist in crates/hero_books_server/templates/, and the corresponding route handlers (including build_router() with all routes) can be referenced from the parent commit 5aeb9fc~1. The work involves porting those HTML routes and handlers into the viewer crate, wiring them to proxy the existing server RPC methods (import, PDF conversion, etc.), and removing the global cross-library /search route so search only works per-library through the librarian.
Author
Owner

Update

  • WIP on development_mik7 branch, going well all back will bring to development and update on the herodemo
# Update - WIP on development_mik7 branch, going well all back will bring to development and update on the herodemo
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#78
No description provided.