{hint}
: null}` —— 用 JSX 片段作为 `hint` 传入,**不要**改成纯文本。
`ResourcesPage` 没有 toolbar,不传 children。
- [ ] **Step 3: build 并肉眼 diff 产物 HTML 结构**
Run: `cd apps/web && npm run build && npm test`
Expected: 全绿;DOM 结构与替换前逐字一致。
- [ ] **Step 4: commit**
```bash
git add apps/web/src && git commit -m "refactor(web): extract shared PageHeader component"
```
---
## Task 8: web 测试挂进 CI
**Files:**
- Modify: `.github/workflows/ci.yml`
- [ ] **Step 1: 在 `package-web` job 的 "Build console10" 之前插入测试步骤**
```yaml
- name: Web unit tests
working-directory: apps/web
run: |
npm ci
npm test
```
- [ ] **Step 2: 本地干跑等价命令**
```bash
cd apps/web && npm ci && npm test && npm run build
```
Expected: 全绿。
- [ ] **Step 3: commit**
```bash
git add .github/workflows/ci.yml
git commit -m "ci(web): run console10 unit tests before packaging"
```
> `package-web` 只在 push 到 main 时跑(`if: github.ref == 'refs/heads/main'`)。
> 若希望 PR 也跑 web 测试,需要另开一个不带该 `if` 的 job —— 本批不做,记入第二批待议。
---
## 收尾
全部任务完成后:`npm test && npm run build`,然后向用户报告 diff 规模与文件行数前后对比。
**不 commit 到远端、不部署**,等用户确认后再走 push / deploy 流程。
## 第二批(IA)待办清单 —— 本批不动,只登记
1. `defaultDomains` 三个控件合一,从 provider 折叠面板里提到全局区。
2. MailTab 配置区 / 运维区分离(保存型 vs 破坏型操作)。
3. 六处 raw JSON `` 的去留。
4. Settings 平铺表单分组;`cpa_remote_inject (intent)` 等内部术语改写。
5. `email_providers` 两页不对称规则的 UI 化表达(现在靠 4 段 hint 文字)。
6. Register footer「自检 →」链接伪装成按钮。
7. 41 个跨文件重复 class 的 CSS 收敛;`run.css` 611 行拆分。
8. 资源页三层 tab 嵌套。
9. CI 里给 PR 也跑 web 测试。