[ui] Library cards show the raw namespace instead of a friendly name #143

Open
opened 2026-05-31 14:40:40 +00:00 by mik-tf · 0 comments
Owner

On the Hero Books library overview, each library card shows the raw namespace with only the first letter capitalised, so the four default libraries read "Docs_hero" and "Docs_public_geomind" rather than "Hero" and "Geomind". The display-name helper (namespace_display_name) only special-cases a few short names and title-cases everything else, so the docs_ and docs_public_ prefixes leak through. It should map the known library namespaces to clean names (Hero, Geomind, OurWorld, Mycelium) and, as a default, strip a leading docs_public_ or docs_ before title-casing.

On the Hero Books library overview, each library card shows the raw namespace with only the first letter capitalised, so the four default libraries read "Docs_hero" and "Docs_public_geomind" rather than "Hero" and "Geomind". The display-name helper (namespace_display_name) only special-cases a few short names and title-cases everything else, so the docs_ and docs_public_ prefixes leak through. It should map the known library namespaces to clean names (Hero, Geomind, OurWorld, Mycelium) and, as a default, strip a leading docs_public_ or docs_ before title-casing.
Sign in to join this conversation.
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#143
No description provided.