Frontend Developer
|
bf5ad4a7aa
|
Sprint 4 T-B-25 · Bundle 优化验证
- vite.config.ts: production sourcemap=false (build time 17.89s → 6.89s)
- scripts/bundle-report.cjs: 输出 raw/gzip 大小 + 预算校验 (500KB total / 150KB per chunk)
- package.json: build pipeline 末尾自动跑 bundle-report
实测(无 sourcemap,9 chunks):
Total gzip: 301.41 KB (预算 500 ✅)
Main chunk: 85.57 KB gzip (预算 150 ✅)
Heavy vendor (>80 KB): chart-vendor 101 KB / index 86 KB
可优化点:ShareDialogPage + recharts 走 lazy load (留 T-B-26 处理)
G3 闸门:build 项 ✅,main chunk 下降 87.85 → 85.57 KB
|
2026-07-04 10:15:01 +08:00 |
|
Frontend Developer
|
61ba0ca987
|
Sprint 4 T-B-24 · Lighthouse CI (G3 闸门真实化)
- apps/web/lighthouserc.cjs: desktop preset, 3 runs, P/A/B/S ≥ 90 断言
- apps/web/scripts/lhci-scores.cjs: 本地汇总脚本(median P/A/B/S + ✅/❌ 标记)
- .github/workflows/web-ci.yml: 新增 lighthouse job,treosh/lighthouse-ci-action@v12
- apps/web/package.json: +lhci script
- apps/web/.gitignore: .lighthouseci/ 加入忽略(避免本地 12 个 run 报告污染 repo)
本地验证(desktop preset, 3 runs × 4 URLs):
perf=100 a11y=95-96 best=96 seo=91 (全部 ≥ 90 ✅)
G3 闸门状态:typecheck ✅ / lint ✅ / vitest 69 ✅ / e2e 84/84 ✅
/ build 87.85KB ✅ / Lighthouse P/A/B/S ✅
/ 真实后端 ⏳(T-B-27)/ Poster CLI Docker ⏳(T-C-44)
|
2026-07-04 10:08:10 +08:00 |
|
Frontend Developer
|
e554215335
|
finish sprint 1-3 frontend contract closure
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-07-03 21:28:50 +08:00 |
|
Frontend Developer
|
e8b8ad079e
|
feat(sprint-2): V10 选项 B 完整切换 + G1 闸门通过
框架切换:Next.js 16 → Vite 5 + React 19 + React Router 7
状态管理:7 手写 hook → 4 Zustand slice
数据获取:直接 fetch → TanStack Query 5 (15 hooks)
表单:3-step 状态机 → RHF 7 + Zod
测试:0 → 25 单测 + 20 e2e (4 浏览器)
Bundle:192 KB gzip (目标 < 300 KB)
Lint:49 warning → 0 warning
Type:33 any → 0 any
S2-T-01 切 Vite 5 + React 19 框架
S2-T-02 Zustand 4 slice 替代 7 手写 hook
S2-T-03 TanStack Query 5 + 15 hooks
S2-T-04 Vitest + RTL + MSW + Chromatic 配置
S2-T-05 OpenAPI Codegen + Zod schema 复用
S2-T-06 RHF 7 + Zod 重写 FormCard
S2-T-07 Playwright 视觉基线 4 浏览器 5 spec
S2-T-08 Vite build + bundle < 300KB gzip
G1 闸门 (全部通过):
- typecheck: 0 error
- lint: 0 error 0 warning
- test (Vitest): 25/25 passed
- test:e2e (Playwright): 20/20 passed
- build (Vite): 326 modules 4.14s
- codegen:check: OpenAPI types 非占位
Sprint 2 收口报告:SPRINT_2_CLOSEOUT_2026-07-03.md
|
2026-07-03 15:51:03 +08:00 |
|