From 0279d7db26398d30728b582b81153451ba0269c8 Mon Sep 17 00:00:00 2001 From: Indra Gunawan Date: Thu, 15 Oct 2026 22:41:35 +0700 Subject: [PATCH 1/3] feat: S9 instant navigation (hx-boost, preload, head-support), progress bar, light PWA Co-Authored-By: Claude Sonnet 5.5 --- AGENTS.md | 2 ++ docs/DESIGN-SYSTEM.md | 11 ++++++++++- docs/UI-REVAMP-PLAN.md | 1 + docs/ui-revamp/perf-s9.md | 27 +++++++++++++++++++++++++++ internal/http/templates/apps_add.html | 4 ++++ 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 docs/ui-revamp/perf-s9.md diff --git a/AGENTS.md b/AGENTS.md index d29a35c..9723a8a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -32,6 +32,8 @@ go mod tidy # clean dependencies # Run once (no auto-reload) DOCKIFY_HOST=127.0.0.1 DOCKIFY_DATA_DIR=./data go run ./cmd/dockify serve +# Boost/PWA: page scripts must be idempotent (docs/DESIGN-SYSTEM.md §7.1); ui.mjs covers boosted navigation + # Verify templates parse go test ./internal/http/... -run TestTemplates diff --git a/docs/DESIGN-SYSTEM.md b/docs/DESIGN-SYSTEM.md index ac9e651..1e98336 100644 --- a/docs/DESIGN-SYSTEM.md +++ b/docs/DESIGN-SYSTEM.md @@ -170,7 +170,16 @@ Radius: kartu 16, kontrol/tombol 12, lencana 6, chip/pill penuh. Target sentuh a ## 7. Performa dan aksesibilitas (diukur, `tests/e2e/ui.mjs`) Viewport 390, CPU 4×, latensi 80 ms, median 5 ulangan: navigasi antar halaman utama ≤300 ms (localhost). DOM ≤12 node per baris daftar, <2.500 node untuk 200 baris. -Garis progres 3px saat navigasi >150 ms (htmx `hx-boost` opsional). Fokus terlihat 3px `accent`; Escape menutup sheet; `aria-pressed`; `aria-labelledby` di dialog. +Garis progres 3px (`#progress`) saat navigasi boosted >150 ms, hormati reduced-motion. Fokus terlihat 3px `accent`; Escape menutup sheet; `aria-pressed`; `aria-labelledby` di dialog. +### 7.1 Navigasi boosted (S9) +- ``. Setiap halaman kerja membungkus **seluruh** isi (konten, sheet, `