From 0d965526983e43715d12fa008907960ce72973b3 Mon Sep 17 00:00:00 2001 From: Jan Unterbrink <19386509+subpathdev@users.noreply.github.com> Date: Mon, 30 Nov 2026 12:15:19 +0100 Subject: [PATCH] feat: simplify the page with platform features from Modern Web Guidance From a review of the page against Modern Web Guidance 1.0 (Chrome, Firefox and Edge, built on Baseline): - Forbid framing (CSP frame-ancestors 'none' and X-Frame-Options DENY). A framed page's requests are same-origin, so the cross-origin check alone didn't stop another website from tricking a tap. - One set of color tokens with light-dark() instead of a second set in a prefers-color-scheme media query. - Drop the legacy apple-mobile-web-app-* and mobile-web-app-capable tags, which the manifest covers, and give the manifest an id. - Time out the room refresh with AbortSignal.timeout, so a hung request can't hold back the refreshes after it. - Announce errors with role="alert" and put the content in
. Co-Authored-By: Claude Opus 5.5 --- internal/web/static/index.html | 38 +++++++++++++----------- internal/web/static/manifest.webmanifest | 1 + internal/web/web.go | 13 +++++++- internal/web/web_test.go | 15 +++++++++- 4 files changed, 47 insertions(+), 20 deletions(-) diff --git a/internal/web/static/index.html b/internal/web/static/index.html index be500e0..4eff374 100644 --- a/internal/web/static/index.html +++ b/internal/web/static/index.html @@ -5,29 +5,27 @@ - - - - - + Heating