文件
hyb-oa/.trellis/tasks/05-31-deploy-menu-naming-public-check/implement.md
T

59 行
3.0 KiB
Markdown
原始文件 Blame 文件历史

此文件含有模棱两可的 Unicode 字符
此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。
# 实施记录
## 执行方案
1. 补齐 Trellis PRD、上下文和验证口径。
2. 启动任务后执行部署前只读检查。
3. 使用 `SYNC_ENV=0 LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash deploy/trialrun/deploy.sh` 部署当前 `main`。
4. 部署后执行公网 `/ready`、public bundle scan、live smoke readiness。
5. 使用 Playwright/浏览器保存重点页面截图,并检查是否仍出现旧命名或通用 `台账工具`。
6. 将部署 hash、检查命令、结果和限制写回本文件,提交任务证据。
## 结果
已完成。
## 部署记录
- 部署基线:`df26922`
- 目标地址:`https://oa.hyinda.com`
- 部署命令:
```bash
SYNC_ENV=0 LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash deploy/trialrun/deploy.sh
```
- `.env` 同步:跳过,保留远端 `/opt/hyb-oa-trialrun/deploy/trialrun/.env`。
- 远端目录:`/opt/hyb-oa-trialrun`
## 检查结果
- `node deploy/trialrun/validate-env-contract.js`:通过。
- `git diff --check`:通过。
- `bash -n deploy/trialrun/deploy.sh`:通过。
- `node --check server/src/scripts/smoke-trialrun-runtime.js`:通过。
- 部署脚本:通过。
- 远端 frontend build/typecheck:通过。
- Prisma migration deploy/status:无待执行迁移,通过。
- external deps smoke:企业微信、SMTP、腾讯 OCR、消息桥接配置通过。
- runtime smoke:通过。
- live smoke:3 passed。
- public bundle scan:`findings=0`。
- 独立 `/ready`:`{"requestId":"eb85630d-465f-4789-ad44-693b377b5045","data":{"ok":true}}`
- 独立 `node scripts/qa/check-public-bundle-copy.mjs https://oa.hyinda.com`:`findings=0`。
- 独立 `LIVE_SMOKE_BASE_URL=https://oa.hyinda.com bash scripts/qa/run-live-smoke-readiness.sh`:通过,报告目录 `artifacts/qa-flow/live-smoke-readiness-20260531-151949`。
- pending OCR 扫描:`SKIP`,原因是本地 shell 缺少 `DATABASE_URL`。
- live smoke:3 passed。
- live OCR 辅助复核:1 passed,样票终态为可解释的重复票据类别。
- 公网视觉/文案复检:通过,截图目录 `output/playwright/05-31-deploy-menu-naming-public-check/`。
- 检查页面:`/portal`、`/workflow/tasks`、`/reimbursements`、`/purchase-requests`、`/contracts-registry`、`/projects`、`/assets`、`/payment-batches`、`/ap-operations`、`/invoice-pool`。
- 检查角色:财务主管 live smoke 角色。
- 未发现可见旧文案:`台账工具`、`合同台账`、`资产台账`、`票据中心`。
## 视觉审计摘要
- 菜单命名已统一为短名:`报销`、`采购`、`合同`、`项目`、`资产`、`付款`、`应付账款`、`票据`。
- 采购、合同、资产、付款、应付账款、票据均为单列表首屏,没有再出现默认左列表/右详情分栏。
- 业务页操作区使用具体动作,如 `新增合同`、`新建采购`、`新增资产`、`上传票据`、`导出`、`筛选`,未出现通用 `台账工具`。
- 工作台和待我处理页仍有试运行数据与提醒数字,这是数据状态,不是本次部署回退。