feat(plugin-security): customized flag on packaged permission sets — Setup badge (ADR-0094)#2913
Merged
Merged
Conversation
…sion sets (ADR-0094) The Setup list couldn't tell a pristine packaged permission set from one an admin has overlaid — you had to open the Studio layered diff. Stamp it on the projection: - the env projector sets `customized: true` on a managed_by:'package' row while an overlay shadows its shipped baseline, and clears it on reset (data-door delete). Env-authored rows are never flagged (they ARE the definition, not a customization of one). - new read-only boolean field on sys_permission_set + added to the "All" Setup list view alongside managed_by. Verified on the real showcase stack: showcase_contributor goes customized=false → true (data-door PATCH) → false (data-door reset), with managed_by:'package' preserved throughout. Covered by the projection dogfood proof and unit tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SXjD7g2JkEsdqhZFZgAo1Q
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 2 package(s): 12 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
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.
ADR-0094 的 UX 收尾之一(承接已合并的 #2901 / #2905)。浏览器实测时确认的两个缺口之一:Setup 列表分不清"原厂包集"和"被环境 overlay 定制过的包集",要进 Studio 分层视图才看得出。
改动
managed_by:'package'行,当有 overlay 遮蔽其发布基线时打上customized: true,重置(数据门删除)时清除。环境自有行永不打标(它本身就是定义,不是对定义的定制)。sys_permission_set新增只读布尔字段customized,并加入 "All" Setup 列表视图(与managed_by并列)——SDUI,objectui 原生渲染,无需前端改动。验证(真实 showcase 栈,权威 API)
showcase_contributor全生命周期实测:managed_by=package, customized=falselabel变、managed_by=package(保留)、customized=truelabel回退发布值、customized=false单测:plugin-security 337 全通过;projection dogfood 7 项(含新增
customized断言)真实栈全绿。配套的 objectui 侧(删除按钮文案 = 重置语义)在单独 PR。
🤖 Generated with Claude Code
https://claude.ai/code/session_01SXjD7g2JkEsdqhZFZgAo1Q
Generated by Claude Code