feat(app-shell): C2-β — AccessExplainPanel record 粒度渲染 (framework#2920) - #2502
Merged
Conversation
AccessExplainPanel 支持记录级解释(ADR-0095): - 记录选择器(输入/RecordPickerDialog),请求带 recordId - 逐层行级归因:outcome 徽标、命中 rules[](权限集→岗位→共享→行规则,含三态圆点)、 有效行过滤 rowFilter、matchesRecord - 顶部 record.visible 结论横幅 + decidedBy 决定性层 - posture 档位徽标 + 每层 kernelTier(租户墙 vs 业务 RLS)标签 - i18n en + zh-CN 全量 key 不带 recordId 时行为与对象级完全一致(向后兼容)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019QRUvVfpvSycAHMMF2xTxs
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
C2-β — AccessExplainPanel record 粒度渲染
UI 侧实现,消费引擎侧 record 粒度契约。tracking issue framework#2920。
引擎侧对端 PR:objectstack-ai/objectstack#2939(同分支名)。
变更
AccessExplainPanel支持记录级解释(ADR-0095):RecordPickerDialog(绑定当前对象)选择一条recordId;请求带上recordId。带清除按钮。record归因——outcome徽标(准入/排除/未评估)、命中rules[](权限集 → 岗位 → 共享 → 行规则 链,每条 kind/grants/via + admits/excludes/neutral 三态圆点)、有效行过滤(rowFilterJSON)、matchesRecord。record.visible结论横幅(该记录为何可见/不可见)+decidedBy决定性层。posture档位徽标;每层显示 kernel tier(租户墙 vs 业务 RLS)标签;tenant_isolationLayer 0 作为首层渲染。向后兼容
不带
recordId时请求体与渲染与对象级完全一致——无 record 横幅、无 posture、无 kernelTier、无逐层 record 块。类型层新增字段全部 optional。验证
AccessExplainPanel.test.tsx:3 原测(对象级)+ 1 新测(发送 recordId、渲染记录判定横幅 + posture 徽标 + tenant_isolation 层 + 逐层 record 归因 + 有效行过滤)= 4 全绿。@object-ui/app-shelltype-check0 error 通过。Relates to framework#2920.
🤖 Generated with Claude Code
https://claude.ai/code/session_019QRUvVfpvSycAHMMF2xTxs
Generated by Claude Code