From 3cbfe10d626461c9105b80e1b937f47dc108f0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=BF=E4=BA=91=E7=A7=8B=E6=9C=88?= <15273589815@163.com> Date: Mon, 14 Sep 2026 01:42:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(portal):=20=E8=A1=A5=E9=BD=90=E8=BF=90?= =?UTF-8?q?=E8=90=A5=E4=B8=89=E4=B8=AA=E6=96=B0=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E5=90=8C=E5=90=8D=20css=20=E5=85=A5=E5=8F=A3=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=90=88=E5=B9=B6=E8=BF=9B=E6=9D=A5=E7=9A=84=E7=BA=A2?= =?UTF-8?q?=E7=81=AF=E5=A5=91=E7=BA=A6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 合并组员的运营工作台提交后,`test_every_portal_page_has_local_js_and_css_entry` 红了:门户每个页面都要有与目录同名的 `js`/`css` 入口,而新加的 `nl2sql` / `offsite` / `promotion` 三个页面**只有 js**,样式统一引 `operator-workspace.css`。 ## 改动 给三个页面补上同名样式入口,并在各自 `index.html` 里引用(放在共用的 `operator-workspace.css` 之后,便于页面覆盖): - `employee-operations/nl2sql/nl2sql.css` - `employee-operations/offsite/offsite.css` - `employee-operations/promotion/promotion.css` 三个文件当前**没有规则**,只写了用途说明 —— 它们的价值是把"页面专属样式"的位置 **确定下来**:这个约定的意义正在于此,否则将来只会继续往共用文件里堆。 ⚠️ 只在每个 `index.html` 的 `
` 里**加了一行 link**,未改动组员的其它内容。 验证:`tests/unit/api/test_portal_frontend.py` 37 passed; unit+contract **1398 passed**;integration **110 passed**;ruff 通过; mypy 251 文件 0 错;三个页面与三个 css 均 200;e2e 冒烟 **40/40**。 --- app/static/portal/employee-operations/nl2sql/index.html | 1 + app/static/portal/employee-operations/nl2sql/nl2sql.css | 8 ++++++++ app/static/portal/employee-operations/offsite/index.html | 1 + app/static/portal/employee-operations/offsite/offsite.css | 8 ++++++++ .../portal/employee-operations/promotion/index.html | 1 + .../portal/employee-operations/promotion/promotion.css | 8 ++++++++ 6 files changed, 27 insertions(+) create mode 100644 app/static/portal/employee-operations/nl2sql/nl2sql.css create mode 100644 app/static/portal/employee-operations/offsite/offsite.css create mode 100644 app/static/portal/employee-operations/promotion/promotion.css diff --git a/app/static/portal/employee-operations/nl2sql/index.html b/app/static/portal/employee-operations/nl2sql/index.html index 886feef..70169cb 100644 --- a/app/static/portal/employee-operations/nl2sql/index.html +++ b/app/static/portal/employee-operations/nl2sql/index.html @@ -7,6 +7,7 @@ +