From bb929dfe5fcd503154cef6f2b99289d526efc200 Mon Sep 17 00:00:00 2001 From: Louis King Date: Thu, 2 Jul 2026 21:30:07 +0100 Subject: [PATCH] refactor(web): remove deprecated class names and hoist map marker colors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zero-visual-delta cleanups: - Drop input-bordered/select-bordered (removed in daisyUI v5; emitted no CSS) from all inputs and selects. - Rename bare `shadow` to `shadow-sm` — in Tailwind v4 bare `shadow` is a deprecated alias with the identical value. - Hoist the hardcoded map marker hex colors into CSS variables in the app.css palette block (same values; markers sit on map tiles and stay theme-independent by design). - Convert the five text-base-content/* outliers to the repo's dominant opacity-* muted-text idiom (identical rendering on plain text). - Remove a dead ternary in renderNodeDisplay and an unused iconLock import. Co-Authored-By: Claude Fable 5 --- src/meshcore_hub/web/static/css/app.css | 6 ++++++ .../web/static/js/spa/components.js | 10 +++++----- .../web/static/js/spa/pages/advertisements.js | 8 ++++---- .../web/static/js/spa/pages/channels.js | 8 ++++---- .../web/static/js/spa/pages/maintenance.js | 2 +- .../web/static/js/spa/pages/map.js | 18 +++++++++--------- .../web/static/js/spa/pages/messages.js | 6 +++--- .../web/static/js/spa/pages/node-detail.js | 12 ++++++------ .../web/static/js/spa/pages/nodes.js | 8 ++++---- .../web/static/js/spa/pages/not-found.js | 2 +- .../web/static/js/spa/pages/packet-detail.js | 2 +- .../static/js/spa/pages/packet-group-detail.js | 2 +- .../web/static/js/spa/pages/packets.js | 8 ++++---- .../web/static/js/spa/pages/profile.js | 12 ++++++------ 14 files changed, 55 insertions(+), 49 deletions(-) diff --git a/src/meshcore_hub/web/static/css/app.css b/src/meshcore_hub/web/static/css/app.css index 90d6991..c0b3bcd 100644 --- a/src/meshcore_hub/web/static/css/app.css +++ b/src/meshcore_hub/web/static/css/app.css @@ -29,6 +29,12 @@ --color-members: oklch(0.72 0.17 50); /* orange */ --color-neutral: oklch(0.3 0.01 250); /* subtle dark grey */ --color-radio: oklch(0.75 0.15 210); /* cyan — radio tile icons */ + + /* Map marker colors — theme-independent, chosen for contrast on map tiles */ + --color-marker-infra: #3b82f6; + --color-marker-infra-border: #1e40af; + --color-marker-public: #22c55e; + --color-marker-public-border: #15803d; } /* Light mode: darker section colors for contrast on light backgrounds */ diff --git a/src/meshcore_hub/web/static/js/spa/components.js b/src/meshcore_hub/web/static/js/spa/components.js index ce342b9..b2eac88 100644 --- a/src/meshcore_hub/web/static/js/spa/components.js +++ b/src/meshcore_hub/web/static/js/spa/components.js @@ -74,7 +74,7 @@ export function mobileSortSelect({ currentSort, currentOrder, navigate, basePath return html`
${t('common.sort_by')} - @@ -402,7 +402,7 @@ export function copyToClipboard(e, text) { export function renderNodeDisplay({ name, description, publicKey, advType, size = 'base' }) { const displayName = name || null; const emoji = getNodeEmoji(name, advType); - const emojiSize = size === 'sm' ? 'text-lg' : 'text-lg'; + const emojiSize = 'text-lg'; const nameSize = size === 'sm' ? 'text-sm' : 'text-base'; const descSize = size === 'sm' ? 'text-xs' : 'text-xs'; @@ -718,7 +718,7 @@ export function renderAuthSection(container, config) {
${pictureHtml}
-