feat(app-shell): A4 — 权限来源三态徽标 (framework#2920)#2501
Merged
Conversation
The Studio permission-matrix provenance badge was two-state (package/custom); it is now tri-state platform / package / admin(custom), mirroring the unified sys_*.managed_by vocabulary from framework#2920. - PermissionMatrixEditor: managedBy==='platform' -> Platform badge; 'package' (or an active packageId) -> Package; else (incl. legacy 'user') -> Custom. - New perm.badge.platform i18n key (en + zh-CN). 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.
A4 — 权限来源三态徽标(objectui 侧)
Tracking: objectstack-ai/framework#2920。配对 framework PR:objectstack-ai/framework#2934。
Studio 权限矩阵编辑器的来源徽标此前是二态(package / custom)。本 PR 扩为三态 platform / package / admin(custom),与 framework#2934 统一的
sys_*.managed_by词表对齐,使 Studio 矩阵与 Setup 记录页读同一套来源标签。改动
PermissionMatrixEditor(L529 附近):managedBy === 'platform'→ Platform 徽标;'package'(或存在packageId)→ Package;其余(含遗留'user')落到 Custom。perm.badge.platform(enPlatform/ zh-CN平台内置)。Setup 记录页
Setup 记录页的来源展示走 framework 对象现已为
select的managed_by字段(由通用记录渲染器渲染),故此处无需改记录页。注:Studio AccessPillar 会按 provenance 过滤掉 platform 默认集(StudioDesignSurface.tsx),三态徽标真正落在 Setup 记录链路 —— 但矩阵编辑器的徽标仍扩为三态以保持一致。验证
PermissionMatrixEditor.badge.test.tsx(platform/package/admin/legacy-user 四分支);与既有PermissionMatrixEditor.scope.test.tsx同跑 —— 8 passed。pnpm --filter @object-ui/app-shell type-check—— 干净通过。🤖 Generated with Claude Code
https://claude.ai/code/session_019QRUvVfpvSycAHMMF2xTxs
Generated by Claude Code