From b7964918f3dcd56ff8724150baae4e54b3866865 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 21 Oct 2026 20:14:07 +0800 Subject: [PATCH] docs: add website change preview rule to AGENTS.md Co-Authored-By: Claude --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index ce6abc29..cf4b7568 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,3 +18,5 @@ Apply [CONTRIBUTING.md](CONTRIBUTING.md) (admission, entry format, ordering) whe ## Website Read [DESIGN.md](DESIGN.md) before changing anything under `website/templates/` or `website/static/`. + +When showing the user a website change, keep a desktop view and a phone view of the same branch build open at the same time, in separate browser tabs, so the user never has to switch the viewport. An emulated viewport can reset between turns, so build the phone view as a page of 375px-wide iframes (home, sponsorship, one category page) pointing at that build. Show each visual change as before/after images at both widths.