fix(plugin-detail): RelatedList 批量 lookup 标签走 ADR-0079 统一解析器,修复权限集列闪变为 API name (#3330) - #3331
Open
baozhoutao wants to merge 2 commits into
Open
fix(plugin-detail): RelatedList 批量 lookup 标签走 ADR-0079 统一解析器,修复权限集列闪变为 API name (#3330)#3331baozhoutao wants to merge 2 commits into
baozhoutao wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This was referenced Aug 4, 2026
…示名后闪变 API name (#3330) RelatedList 的批量 id→label 解析用硬编码链(name 先于 label),与单元格自身 useLookupName 走的 getRecordDisplayName 结果不一致;批量结果以 options 注入后 优先级更高,导致 sys_permission_set(nameField: 'label')这类对象整列从显示名 闪变为 API name。批量解析现同取目标对象 schema 并走同一解析器,schema 不可用 或解析器落底时回退原链(非回归)。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…-list-flicker-764bcd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3330
问题
用户详情「权限集」相关列表:权限集列先短暂显示显示名(「排班员权限」),随后整列闪变为 API name(
ehr_production_planner)并停留。根因
lookup 列存在两条互相打架的标签解析链:
LookupCellRenderer→useLookupName,走 ADR-0079 统一解析器getRecordDisplayName,尊重sys_permission_set的nameField: 'label',首帧渲染出显示名;RelatedList的批量 id→label 解析用硬编码优先级链full_name || … || name || … || label——name排在label前,对权限集恰好取到 API name。批量结果以
options注入 field meta,而LookupCellRenderer.resolveLabel中 options 优先级高于已解析的显示名,第二帧整列被覆盖为 API name。修复
RelatedList批量解析同步拉取目标对象 schema(dataSource.getObjectSchema(target)),改走同一个getRecordDisplayName;schema 不可用或解析器落到Record #<id>/Untitled兜底时回退原硬编码链(非回归)。两条链答案一致,闪变消失,最终稳定显示为显示名。验证
RelatedList.lookupLabelResolution.test.tsx(nameField 生效 + 无 schema 回退两项),已确认去掉修复代码时测试不过;tsc --noEmit0 错误、eslint 0 错误。🤖 Generated with Claude Code