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, `