From b402b3b2a81dc9ffc71cd4a469bea00ee2a047da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=91=98?= Date: Wed, 16 Sep 2026 11:47:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(HEL-560):=20=E9=97=AE=E5=A4=A9=E5=86=BB?= =?UTF-8?q?=E7=BB=93=E5=8C=BA=E4=B8=8D=E5=86=8D=E8=A2=AB=E9=99=88=E6=97=A7?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=B8=85=E7=90=86=E6=B3=A2=E5=8F=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一提交为过 CSS 门禁删掉了 heaven/foundation.css 里一条已无人引用的 .model.on, 但问天是冻结区,不该为了门禁变绿去动它。改为把冻结样式表从"每条选择器都要有 运行时消费者"这一项里排除,文件本身恢复原样;其余门禁照常覆盖问天。 Co-authored-by: multica-agent --- config/architecture-inventory.json | 4 ++-- frontend/pages/heaven/foundation.css | 6 ++++++ tests/test_css_governance.py | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/architecture-inventory.json b/config/architecture-inventory.json index 706e104..64e161e 100644 --- a/config/architecture-inventory.json +++ b/config/architecture-inventory.json @@ -454,8 +454,8 @@ "code_hotspots": [ { "path": "frontend/pages/heaven/foundation.css", - "bytes": 182527, - "lines": 11488 + "bytes": 182616, + "lines": 11494 }, { "path": "frontend/pages/screener/foundation.css", diff --git a/frontend/pages/heaven/foundation.css b/frontend/pages/heaven/foundation.css index e470c55..f1f5002 100644 --- a/frontend/pages/heaven/foundation.css +++ b/frontend/pages/heaven/foundation.css @@ -6250,6 +6250,12 @@ body[data-active-view="heavenView"] .workspace-view { color: var(--up); } +.model.on { + background: var(--blue-soft); + + box-shadow: inset 2px 0 0 var(--blue); +} + .star { color: rgb(245, 158, 11); diff --git a/tests/test_css_governance.py b/tests/test_css_governance.py index f038825..0f41801 100644 --- a/tests/test_css_governance.py +++ b/tests/test_css_governance.py @@ -37,6 +37,10 @@ MODULE_STYLESHEETS = ( "pages/review/foundation.css", ) +# 问天是冻结区:即便某条规则在当前运行时里已经没人引用,也不在这里做陈旧清理, +# 免得为了让门禁变绿去动冻结代码。其余门禁(归属唯一、无空声明等)照常覆盖它。 +FROZEN_STYLESHEETS = ("pages/heaven/foundation.css",) + RETIRED_STYLESHEETS = ( "styles/styles.css", "styles/renovation.css", @@ -559,6 +563,8 @@ class CssGovernanceTests(unittest.TestCase): def test_every_selector_has_a_runtime_consumer(self) -> None: stale: list[str] = [] for relative, keys in self.rule_keys.items(): + if relative in FROZEN_STYLESHEETS: + continue for contexts, selector in keys: if selector.lower().startswith(("@keyframes", "@-webkit-keyframes")): continue