chore: update frontend tooling and Chinese copy
This commit is contained in:
@@ -2,6 +2,55 @@
|
||||
|
||||
这份记录用于演示前快速说明“当前本地 Docker 环境已经验证到什么程度”。新的验证记录按时间倒序追加。
|
||||
|
||||
## 2026-04-28 拉取后回归与 Voice Studio 文案收敛
|
||||
|
||||
- 已拉取远端 `main` 到 `55ca098 Add voice analytics filters and metrics` 后完成本地回归。
|
||||
- 后端复用仓库内 Windows `.venv` 执行全量测试,`118 passed`。
|
||||
- 后端 `ruff check app/ tests/` 通过。
|
||||
- 用户端与管理端 `npm run build` 均通过;依赖和文案收敛后再次构建通过,且不再出现 `baseline-browser-mapping` 数据偏旧提示。
|
||||
- Voice Studio、生成轨迹、故事库和供应商管理页已将用户可见的 `session`、`turn`、`attention`、`fallback`、`Finalize`、`Provider` 等工程词收敛为中文表达,并补充转写来源、语音事件类型和事件状态的中文展示。
|
||||
- 用户端与管理端执行依赖安全收敛后,`vite` 升至 `6.4.2`,`esbuild` 升至 `0.25.12`,`autoprefixer` 升至 `10.5.0`,`postcss` 升至 `8.5.12`,`baseline-browser-mapping` 升至 `2.10.23`。
|
||||
- 用户端与管理端完整 `npm audit --registry=https://registry.npmjs.org` 均为 0 vulnerabilities。
|
||||
- Alembic 当前只有一个 head:`0013_add_voice_sessions_phase_a`;迁移链从 `0012_story_text_status` 到 head 连续。
|
||||
- `scripts/demo_smoke.sh` shell 语法检查通过,`curl` 与 `jq` 可用。
|
||||
- 当前 WSL 发行版未启用 Docker Desktop 集成,且本地 `52000/52800/52080` 未监听;本轮无法执行完整 `SMOKE_VOICE=1 ./scripts/demo_smoke.sh`。
|
||||
|
||||
验证命令:
|
||||
|
||||
```bash
|
||||
cd backend && .venv/Scripts/python.exe -m pytest
|
||||
cd backend && .venv/Scripts/python.exe -m ruff check app/ tests/
|
||||
cd frontend && npm run build
|
||||
cd admin-frontend && npm run build
|
||||
cd frontend && npm audit fix --registry=https://registry.npmjs.org
|
||||
cd admin-frontend && npm audit fix --registry=https://registry.npmjs.org
|
||||
cd frontend && npm install autoprefixer@latest -D --registry=https://registry.npmjs.org
|
||||
cd admin-frontend && npm install autoprefixer@latest -D --registry=https://registry.npmjs.org
|
||||
cd frontend && npm install vite@^6.4.2 -D --registry=https://registry.npmjs.org
|
||||
cd admin-frontend && npm install vite@^6.4.2 -D --registry=https://registry.npmjs.org
|
||||
cd frontend && npm audit --omit=dev --registry=https://registry.npmjs.org
|
||||
cd admin-frontend && npm audit --omit=dev --registry=https://registry.npmjs.org
|
||||
cd frontend && npm audit --registry=https://registry.npmjs.org
|
||||
cd admin-frontend && npm audit --registry=https://registry.npmjs.org
|
||||
cd backend && .venv/Scripts/python.exe -m compileall -q app tests
|
||||
cd backend && .venv/Scripts/python.exe -m alembic heads
|
||||
cd backend && .venv/Scripts/python.exe -m alembic history --verbose -r 0012_story_text_status:head
|
||||
bash -n scripts/demo_smoke.sh
|
||||
git diff --check
|
||||
docker compose config --quiet
|
||||
curl -fsS --max-time 2 http://localhost:52000/health
|
||||
curl -fsS --max-time 2 http://localhost:52800/health
|
||||
curl -fsS --max-time 2 http://localhost:52080/health
|
||||
```
|
||||
|
||||
结果:
|
||||
|
||||
- `pytest` 通过,118 passed,耗时约 4 分 25 秒。
|
||||
- 后端 lint、Python compileall、用户端构建、管理端构建均通过;代码/文档 diff 空白检查通过,lockfile 保持仓库既有 CRLF 行尾风格。
|
||||
- 用户端与管理端构建不再出现 `baseline-browser-mapping` 数据偏旧提示。
|
||||
- 用户端与管理端完整 audit 均返回 0 vulnerabilities。
|
||||
- `docker compose config --quiet` 因当前 WSL 找不到 `docker` 命令未执行成功;完整 Docker demo smoke 待启用 Docker Desktop WSL 集成后补跑。
|
||||
|
||||
## 2026-04-24
|
||||
|
||||
补充验证:
|
||||
|
||||
Reference in New Issue
Block a user