|
|
5536e39204
|
F2-13: Tab 深链接 + schema title 回填(直开 /page/:id 自动建 Tab)
根因:直接输入 URL /page/:id 时,路由不在 tabs 列表中导致无法激活,
Tab 标题也只显示 templateId 而非真实页面标题。
修法:
1. AppShell useEffect:/page/ 深链接路由自动加入 tabs 并激活
2. TabTitleContext:提供 updateTabTitle 回调给子路由
3. PageRenderPage:schema 加载成功后调 updateTabTitle 回填真实 title
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 23:33:42 +08:00 |
|
|
|
1b37c83044
|
F2-2: 新增 crud-write E2E spec + 修复大 header 限制 + 清理 unused-var
- e2e/crud-write.spec.ts:F2-2 写路径端到端测试(amis form 提交→save→
psql落库→delete清理;权限负例 403 验证)
- playwright.config.ts:webServer command 加 NODE_OPTIONS=--max-http-header-size=65536,
解决 ceshi 用户 JWT token ~17KB 超过 Node http 默认限制导致 431 错误
- 修复 crud-write.spec.ts 3 个 TS unused-var(BACKEND/resp/count)
- 更新 e2e artifacts + screenshots(本次跑测产物)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 22:01:18 +08:00 |
|
|
|
0d8593e022
|
F1-4: schema 页全量接入——错误边界、健康度扫描、抽样渲染实测
渲染链路加固:
- PageRenderPage 加 AmisErrorBoundary class component + SchemaErrorCard,覆盖
schema 拉取失败/JSON 异常/amis 渲染抛错三种路径,不白屏不崩 Tab
- schema 加载成功后调用 recordRecentPage 写入最近打开
- src/api/schema.ts mock 模式下未配置 templateId 自动 fallback 后端接口
全量健康度扫描 (scripts/schema-scan.mjs):
- 登录→psql 拉取 1489 个 template_id→并发≤8 扫描→产出报告
- 结果: 1489/1489 HTTP 200,JSON 可解析率 100%,顶层 type 全为 page,零失败
抽样渲染实测 (e2e/schema-samples.spec.ts):
- 9 种类型 26 个样本,Node 侧预登录注入真实 JWT,断言 amis-host 挂载且无错误卡片
- 结果: 26/26 全部通过,截图存 e2e/artifacts/
配置更新:
- playwright.config.ts 后端反代改为 8093 (dev profile,含所有端点)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 20:32:53 +08:00 |
|