From 43ac6c5a613413f7ec2202a4bb707d9d3280d48d Mon Sep 17 00:00:00 2001 From: OpenAI Codex Date: Tue, 31 Mar 2026 17:10:47 +0800 Subject: [PATCH] Add visible versioning to 20nm compare page --- AGENTS.md | 12 +++++++++ STEP_RECORD.md | 4 +++ src/pbf/navsea-compare-karatsu-20nm.html | 31 ++++++++++++++++++++---- 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index b83e0db..595e6ee 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -52,6 +52,9 @@ Rules: - do not create additional comparison pages unless explicitly requested - prefer improving the current 20nm compare page over replacing it - keep the click-pick inspection panel working on both left and right maps +- every visible compare-page revision must bump a human-readable version string on the page itself +- show that version near the reload button so visual review can confirm refresh state +- use the same version string as a cache-busting base for style / tile reloads ## Working Rules @@ -98,6 +101,15 @@ Key references: - [`NavSea_Delivery_Preflight_Audit_Spec.md`](/root/sourceserver/pbf/NavSea_Delivery_Preflight_Audit_Spec.md) - [`STEP_RECORD.md`](/root/sourceserver/pbf/STEP_RECORD.md) +### 5. Make Visual Revisions Traceable + +When changing the primary compare page: + +- bump the compare page version string +- display it near the reload button +- redeploy the HTML to `/mnt/sda1/www/newpec/navsea-compare-karatsu-20nm.html` +- if the visual change depends on style updates, redeploy the corresponding style JSON too + ## Resume Checklist At the start of a session: diff --git a/STEP_RECORD.md b/STEP_RECORD.md index 03a1153..9f27e8b 100644 --- a/STEP_RECORD.md +++ b/STEP_RECORD.md @@ -44,6 +44,10 @@ Remote: `ssh://git@nas:2222/tei/pbf.git` - 不再新增新的 compare 页面 - 后续视觉比较统一只看上面这一张固定页面 - 对比页必须保持左右联动和点击拾取功能可用 +- 对比页每次可见修改都必须 bump 版本号,并显示在“重新加载”按钮附近 +- 当前固定对比页版本号: + - `20nm-r3-20260331-1637` +- 这个版本号同时作为 style / tile reload 的 cache-busting 基准 ## Detail PBF JP Field Inventory diff --git a/src/pbf/navsea-compare-karatsu-20nm.html b/src/pbf/navsea-compare-karatsu-20nm.html index 03b47c0..d47310a 100644 --- a/src/pbf/navsea-compare-karatsu-20nm.html +++ b/src/pbf/navsea-compare-karatsu-20nm.html @@ -68,6 +68,22 @@ align-items: center; } + .version-chip { + display: inline-flex; + align-items: center; + min-height: 40px; + padding: 0 14px; + border-radius: 999px; + border: 1px solid rgba(23, 35, 43, 0.16); + background: rgba(250, 248, 242, 0.9); + color: var(--ink); + font-size: 12px; + font-weight: 700; + letter-spacing: 0.01em; + white-space: nowrap; + box-shadow: 0 10px 22px rgba(23, 35, 43, 0.08); + } + button { height: 40px; padding: 0 14px; @@ -240,6 +256,7 @@
左侧是原始版 style.json,右侧是当前交付线使用的 delivery 样式 + 唐津 20 海里 delivery PBF。两边联动同步,点击任一对象可查看属性,适合直接肉眼排差异。
+
版本: 加载中
@@ -288,6 +305,7 @@