From d3d5d1e7063848989dc51255b30e36f704dcb451 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 5 Mar 2026 13:51:28 -0600 Subject: [PATCH] feat: add TowerOps suffix to all page titles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add '| TowerOps' suffix to page titles so users can easily identify TowerOps tabs when multiple browser tabs are open. Examples: - Dashboard → 'Dashboard | TowerOps' - Equipment Details → 'Router-1 | TowerOps' - No page_title → 'TowerOps' Uses Phoenix LiveView's suffix parameter on live_title component. --- CHANGELOG.txt | 7 +++++++ lib/towerops_web/components/layouts/root.html.heex | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 22b98af0..ab5db0de 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,4 +1,11 @@ 2026-03-05 +feat: add TowerOps suffix to all page titles for better tab identification + - Page titles now show "Page Title | TowerOps" format + - Helps users identify TowerOps tabs when multiple tabs are open + - Uses live_title suffix parameter for automatic appending + - Falls back to just "TowerOps" when no page_title is set +Files: lib/towerops_web/components/layouts/root.html.heex + fix: add --skip-if-loaded flag to test alias to prevent prompts - Test alias now uses 'ecto.load --skip-if-loaded' to avoid prompts - Prevents "structure already loaded" confirmation when running mix test diff --git a/lib/towerops_web/components/layouts/root.html.heex b/lib/towerops_web/components/layouts/root.html.heex index 7317c9da..0587578b 100644 --- a/lib/towerops_web/components/layouts/root.html.heex +++ b/lib/towerops_web/components/layouts/root.html.heex @@ -26,8 +26,8 @@ - <.live_title default="TowerOps"> - {assigns[:page_title]} + <.live_title suffix=" | TowerOps"> + {assigns[:page_title] || "TowerOps"}