From 391a6343e847a74885ea85359b9f5ed8193fa8cc Mon Sep 17 00:00:00 2001 From: SandObserver <260779319+SandObserver@users.noreply.github.com> Date: Sat, 22 Aug 2026 20:54:14 -0400 Subject: [PATCH] Docs: refresh widget code copies and document the wallpaper failure toast --- public/js/badge-logic.js | 8 ++++---- public/js/dashboard.js | 2 +- src/content/docs/docs/troubleshooting.md | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/js/badge-logic.js b/public/js/badge-logic.js index 99faa00..0be0e4a 100644 --- a/public/js/badge-logic.js +++ b/public/js/badge-logic.js @@ -165,10 +165,10 @@ export function computeBadgeVisual({ const reason = health ? healthReason(healthDetail) : ''; if (reason) aria = aria + ': ' + reason; - const effectiveBg = - bg || - (cls.includes('red') ? NAMED.red : cls.includes('green') ? NAMED.green : cls.includes('blue') ? NAMED.blue : ''); - const color = effectiveBg && needsDark(effectiveBg) ? '#1c1c1e' : ''; + /* Only a user's own colour is inked here, and then always. A named badge is + filled from a token and takes --on-fill, which the empty string leaves in + place. NAMED does not hold those token values and never decided this. */ + const color = bg ? (needsDark(bg) ? '#1c1c1e' : '#ffffff') : ''; return { cls, txt, bg, aria, color, title: reason }; } diff --git a/public/js/dashboard.js b/public/js/dashboard.js index 90f55e4..f965368 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -26,7 +26,7 @@ import { initI18n, t, currentLang } from '/js/i18n.js?v=d056c9c5'; import { pwStrength, passwordMismatch } from '/js/password-strength.js?v=42f45ac7'; import { sanitizeItemLinks } from '/js/link-url.js?v=54adb40f'; import { initUI, mkFolder, openFolderDesktop, openFolderMobile, buildMobile } from '/js/ui.js?v=371827cc'; -import { badgeMinimum, badgeSignature, computeBadgeVisual, readBadgeUpdate } from '/js/badge-logic.js?v=e2857764'; +import { badgeMinimum, badgeSignature, computeBadgeVisual, readBadgeUpdate } from '/js/badge-logic.js?v=771f3230'; import { configChanged, landingAfterSetup, diff --git a/src/content/docs/docs/troubleshooting.md b/src/content/docs/docs/troubleshooting.md index a6d63bd..72b0ff1 100644 --- a/src/content/docs/docs/troubleshooting.md +++ b/src/content/docs/docs/troubleshooting.md @@ -218,6 +218,7 @@ Messages shown in the admin, and what each one means. | `Ping failed` / `Ping returned ` | The URL was reached but did not answer as expected. | | `That image is too large for the server to accept.` | Over the 2 MB upload limit. | | `That is not a color. Use #rrggbb or a CSS color name.` | The wallpaper colour field rejects anything else. | +| `Wallpaper failed: ` | The image was not stored. The link was unreachable, the file is not a JPEG, PNG, WebP, AVIF or GIF, or it is over 16 MB. | | `Set a password before turning authentication on.` | Authentication needs a password to exist first. | | `Nothing to import, the file matches your current config.` | The imported file is identical to what is already stored. | | ` is not a gethomepage or Dashy config.` | Only those two formats are recognised. See [Migrating](/docs/import-export/migrating/). |