From 12c3b8112b975e7e39bf447cc4e92e112798d896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 02:14:55 +0100 Subject: [PATCH 1/8] fix tab title handling --- index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/index.html b/index.html index 5ee864b28..d0a8cd8a9 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,23 @@
From 09ea3430a080638029c23f01e5b21136d715a663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 02:23:07 +0100 Subject: [PATCH 3/8] not sure why would this break anything --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f45e45b82..9a6a7eca6 100644 --- a/index.html +++ b/index.html @@ -34,8 +34,11 @@ document.title = `${prefix}${title} - The Homebrewery`; } - const isAdmin = window.location.pathname.startsWith('/admin'); - import(isAdmin ? '/client/admin/main.jsx' : '/client/homebrew/main.jsx'); + if (window.location.pathname.startsWith('/admin')) { + import('/client/admin/main.jsx'); + } else { + import('/client/homebrew/main.jsx'); + } From 13150aca0d281edd22764541d7296d309bd2284c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 02:27:38 +0100 Subject: [PATCH 4/8] if no title still append prefix --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9a6a7eca6..0719e622a 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,9 @@ if (title) { document.title = `${prefix}${title} - The Homebrewery`; - } + } else { + document.title = `${prefix} - The Homebrewery`; + } if (window.location.pathname.startsWith('/admin')) { import('/client/admin/main.jsx'); From 0363747d6e818e674c8ea0e1877d5dbed7776f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 02:28:02 +0100 Subject: [PATCH 5/8] small dash --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 0719e622a..7e3ee4268 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@ } if (title) { - document.title = `${prefix}${title} - The Homebrewery`; + document.title = `${prefix} - ${title} - The Homebrewery`; } else { document.title = `${prefix} - The Homebrewery`; } From 51b8c9c70a349205da8ccaf9893efe259e1e8e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 10:16:34 +0100 Subject: [PATCH 6/8] remove dash --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 7e3ee4268..5c5ef7947 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@ const match = url.match(/pr-(\d+)/); if (match) prefix = `PR-${match[1]} `; } else if (url.includes('://localhost')) { - prefix = 'LOCAL - '; + prefix = 'LOCAL '; } if (title) { From 1337612d3d143360f94bac943192a7c4d1603ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 10:18:45 +0100 Subject: [PATCH 7/8] stage --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5c5ef7947..214c51957 100644 --- a/index.html +++ b/index.html @@ -23,11 +23,13 @@ let prefix = ''; - if (url.includes('://homebrewery-pr-')) { + if (url.includes('://homebrewery-stage.')) { + prefix = `Stage `; + } else if (url.includes('://homebrewery-pr-')) { const match = url.match(/pr-(\d+)/); if (match) prefix = `PR-${match[1]} `; } else if (url.includes('://localhost')) { - prefix = 'LOCAL '; + prefix = 'Local '; } if (title) { From d52452dad7eabc1330a25f12355109ce4cd0fca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sun, 22 Mar 2026 10:21:53 +0100 Subject: [PATCH 8/8] safely destructure --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 214c51957..82ba8c22a 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,9 @@