fix: drop "Phoenix Framework" from page titles #58

Merged
jfro merged 2 commits from jtk/page-title into main 2026-10-18 22:42:47 +00:00
Owner

The root layout's live_title still had the generator's suffix=" · Phoenix Framework", so every tab read "… · Phoenix Framework".

Change

  • Dropped the suffix. Pages without a page_title show "FuzzyCatalog". The three pages that set one show it as is, e.g. "User Management".
  • I didn't swap in a " · FuzzyCatalog" suffix: live_title adds 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 those page_titles.

Tests: the home page title is "FuzzyCatalog", the admin users title is "User Management", and neither has "Phoenix Framework". mix precommit passes.

Fixes #51

The root layout's `live_title` still had the generator's `suffix=" · Phoenix Framework"`, so every tab read "… · Phoenix Framework". **Change** - Dropped the suffix. Pages without a `page_title` show "FuzzyCatalog". The three pages that set one show it as is, e.g. "User Management". - I didn't swap in a " · FuzzyCatalog" suffix: `live_title` adds 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 those `page_title`s. **Tests**: the home page title is "FuzzyCatalog", the admin users title is "User Management", and neither has "Phoenix Framework". `mix precommit` passes. Fixes #51
jfro added this to the 0.6.2 milestone 2026-10-18 21:52:27 +00:00
fix: drop "Phoenix Framework" from page titles
All checks were successful
CI / test (pull_request) Successful in 1m44s
b2389e0194
Fixes #51
Author
Owner

Review from Nye (approved) — b2389e0, CI green

Drops the suffix; the default "FuzzyCatalog" stays for pages without page_title. Tests cover a controller page and a LiveView.

  • Nit (optional): titles are now just "User Management" etc.; suffix=" · FuzzyCatalog" would keep the app name visible across tabs. Fine either way.
  • Merge note: #58 and #59 both add tests at the same spot in test/fuzzy_catalog_web/controllers/page_controller_test.exs, so whichever merges second needs a trivial rebase (root.html.heex merges cleanly).
Review from Nye (approved) — b2389e0, CI green Drops the suffix; the default "FuzzyCatalog" stays for pages without page_title. Tests cover a controller page and a LiveView. - **Nit** (optional): titles are now just "User Management" etc.; `suffix=" · FuzzyCatalog"` would keep the app name visible across tabs. Fine either way. - **Merge note:** #58 and #59 both add tests at the same spot in `test/fuzzy_catalog_web/controllers/page_controller_test.exs`, so whichever merges second needs a trivial rebase (`root.html.heex` merges cleanly).
Merge remote-tracking branch 'origin/main' into jtk/page-title
All checks were successful
CI / test (pull_request) Successful in 46s
b396d14fab
# Conflicts:
#	test/fuzzy_catalog_web/live/admin_users_live_test.exs
jfro merged commit a437f25116 into main 2026-10-18 22:42:47 +00:00
Sign in to join this conversation.
No reviewers
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
jfro/fuzzy_catalog!58
No description provided.