fix: drop "Phoenix Framework" from page titles #58
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!58
Loading…
Reference in a new issue
No description provided.
Delete branch "jtk/page-title"
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?
The root layout's
live_titlestill had the generator'ssuffix=" · Phoenix Framework", so every tab read "… · Phoenix Framework".Change
page_titleshow "FuzzyCatalog". The three pages that set one show it as is, e.g. "User Management".live_titleadds the suffix to the default as well, which would give "FuzzyCatalog · FuzzyCatalog" on most pages, since few set a title. If you want the app name on titled pages, I can add it to thosepage_titles.Tests: the home page title is "FuzzyCatalog", the admin users title is "User Management", and neither has "Phoenix Framework".
mix precommitpasses.Fixes #51
Review from Nye (approved) —
b2389e0, CI greenDrops the suffix; the default "FuzzyCatalog" stays for pages without page_title. Tests cover a controller page and a LiveView.
suffix=" · FuzzyCatalog"would keep the app name visible across tabs. Fine either way.test/fuzzy_catalog_web/controllers/page_controller_test.exs, so whichever merges second needs a trivial rebase (root.html.heexmerges cleanly).