[ui] Library cards show the raw namespace instead of a friendly name #142
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_books#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.