From 8f7ab55267aeec8fa0f9d5e2552b183862d04ed9 Mon Sep 17 00:00:00 2001 From: lilleman Date: Wed, 5 Aug 2026 00:08:35 +0200 Subject: [PATCH] Remove the Settings cog and its Preferences menu from the sidebar footer --- e2e-tests/visual.spec.ts | 1 + public/css/styles.css | 2 +- src/i18n/locales/en-US.ts | 2 -- src/i18n/locales/sv-SE.ts | 2 -- src/ui/icons.ts | 1 - src/ui/shell.test.ts | 4 ++++ todo.md | 2 +- views/partials/icons.ejs | 1 - views/partials/shell.ejs | 6 ------ 9 files changed, 7 insertions(+), 14 deletions(-) diff --git a/e2e-tests/visual.spec.ts b/e2e-tests/visual.spec.ts index 6be79f7..244337c 100644 --- a/e2e-tests/visual.spec.ts +++ b/e2e-tests/visual.spec.ts @@ -101,6 +101,7 @@ test("the public landing at / is ungated and links to sign in + register", async await expect(page.locator(".landing")).toBeVisible(); // the same app shell every page renders — the menu shows even signed out (permission-filtered). await expect(page.locator(".sidebar")).toBeVisible(); + await expect(page.locator('.side-footer use[href="#i-gear"]')).toHaveCount(0); // no settings cog to offer a signed-out visitor await expect(page.getByRole("link", { name: "Log in" })).toHaveAttribute("href", "/login"); await expect(page.getByRole("link", { name: "Create account" })).toHaveAttribute("href", "/registration"); await shot(page, "live-05-public-landing"); diff --git a/public/css/styles.css b/public/css/styles.css index bbea499..989d810 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -282,7 +282,7 @@ span.nav-self { cursor: default; } /* static / non-clickable */ outline: 2px solid var(--focus); outline-offset: 1px; } -/* profile / settings row */ +/* profile row */ .footer-actions { display: flex; align-items: center; gap: 4px; } .profile { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 0fa49a1..293c56d 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -151,9 +151,7 @@ const messages = { "shell.guest": "Guest", "shell.mainNav": "Main navigation", "shell.openMenu": "Open menu", - "shell.preferences": "Preferences", "shell.profile": "Profile", - "shell.settings": "Settings", "shell.sidebar": "Primary", "shell.signedInAs": "Signed in as {{name}}", "shell.signIn": "Sign in", diff --git a/src/i18n/locales/sv-SE.ts b/src/i18n/locales/sv-SE.ts index a2cf95e..2df132f 100644 --- a/src/i18n/locales/sv-SE.ts +++ b/src/i18n/locales/sv-SE.ts @@ -137,9 +137,7 @@ const messages: CoreMessages = { "shell.guest": "Gäst", "shell.mainNav": "Huvudmeny", "shell.openMenu": "Öppna menyn", - "shell.preferences": "Inställningar", "shell.profile": "Profil", - "shell.settings": "Inställningar", "shell.sidebar": "Primär", "shell.signedInAs": "Inloggad som {{name}}", "shell.signIn": "Logga in", diff --git a/src/ui/icons.ts b/src/ui/icons.ts index 95bd3ef..3ea8ffe 100644 --- a/src/ui/icons.ts +++ b/src/ui/icons.ts @@ -16,7 +16,6 @@ export const ICON_NAMES: Record = { "i-copy": "copy", "i-download": "download", "i-edit": "pencil", - "i-gear": "settings", "i-globe": "globe", "i-grid": "layout-grid", "i-kebab": "ellipsis-vertical", diff --git a/src/ui/shell.test.ts b/src/ui/shell.test.ts index d654288..af47c2b 100644 --- a/src/ui/shell.test.ts +++ b/src/ui/shell.test.ts @@ -40,6 +40,9 @@ test("app shell renders sidebar, topbar and the content slot", async () => { assert.match(html, /