Skip to content

fix(core): v0.4 browser acceptance — blank report page and audit calendar titles - #57

Merged
marchtian merged 2 commits into
mainfrom
claude/project-thread-qviy5b
Oct 24, 2026
Merged

marchtian merged 2 commits into
mainfrom
claude/project-thread-qviy5b

Conversation

@marchtian

@marchtian marchtian commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by 田騏 · project thread

v0.4 出口浏览器验收(#34)中发现的两处控制台显示问题,都是平台渲染缺陷,hotsrm 先用临时写法绕开,代码注释指向平台 issue。

改了什么

  1. 报表 srm_delivery_scorecard(供应商交付与质量(按期间)):label、description 从内联多语言写法 { 'zh-CN', en } 改为中文字符串。
  2. 供应商审核「审核日历」视图:calendar.titleField 从 supplier(lookup)改为 audit_no。

为什么

  1. 打开「分析 › 供应商交付与质量」整页白屏,控制台报 React error #31 … object with keys {zh-CN, en}:ReportView 把报表标签直接当文本渲染。报表在翻译包里没有词条组,内联写法是唯一的翻译途径,所以先退回中文字符串,英文暂缺。平台 issue:objectui#13470。
  2. 审核日历里每条事件都显示「[object Object]」:日历把 lookup 值(展开后的对象)直接转成字符串。先用审核编号做标题,供应商名在点开记录后可见。平台 issue:objectui#13471。

平台修好后两处都改回原写法。

怎么验证的

  • 本地 pnpm dev、浏览器验收:修改前报表白屏、日历显示「[object Object]」;修改后报表正常显示 7 家供应商 2026-09 的交付行数、准时率、批次合格率、PPM(与样例表格手算一致:总计 15 行、OTD 60.0%、批次合格率 66.7%),日历显示 5 条年度审核计划的审核编号。
  • pnpm validate、pnpm lint、pnpm typecheck、pnpm i18n:check 本地通过;测试与构建看 CI。

🤖 Generated with Claude Code

https://claude.ai/code/session_01E7UNrUkwEKDrg7BXnKF5LU

The console renders a report's inline locale-map label and description
as a React child (objectui#13470), so the report page crashed for every
viewer. Use plain Chinese strings until the platform resolves report
labels; switch back to the locale map (and restore English) then.

Found in the v0.4 browser acceptance run.

Claude-Session: https://claude.ai/code/session_01E7UNrUkwEKDrg7BXnKF5LU
Co-authored-by: Claude <noreply@anthropic.com>
@marchtian marchtian self-assigned this Oct 24, 2026
The calendar view titled events by the supplier lookup, which the console
stringifies raw (objectui#13471). Title them by audit number until the
platform resolves lookup titles.

Found in the v0.4 browser acceptance run.

Claude-Session: https://claude.ai/code/session_01E7UNrUkwEKDrg7BXnKF5LU
Co-authored-by: Claude <noreply@anthropic.com>
@marchtian marchtian changed the title fix(core): delivery scorecard report page rendered blank fix(core): v0.4 browser acceptance — blank report page and audit calendar titles Oct 24, 2026
@marchtian
marchtian merged commit 53e9b67 into main Oct 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants