feat(access): install prompt + Access-pillar banner for suggested audience bindings (ADR-0090 D5/D9) - #2376
Merged
Merged
Conversation
…ience bindings (ADR-0090 D5/D9) Consumes the framework's new suggested-audience-binding surface (framework#2746): a package permission set shipped with isDefault: true asks the admin to bind it to the builtin everyone position — the server never auto-binds, so the UI now surfaces the "admin confirms" moment. - services/suggestedBindingsApi: client for GET/POST /api/v1/security/suggested-bindings[/:id/confirm|dismiss] (marketplaceApi raw-fetch pattern: Bearer + credentials include) - components/SuggestedBindingsPanel: pending suggestions with per-row Grant / Dismiss, amber pending-action styling, sonner toasts; the server-side anchor-gate denial message is surfaced verbatim; renders nothing when empty or for non-admins (403) - MarketplacePackagePage: panel shown after a successful install into THIS runtime (cloud install dialog + local install banner) - StudioDesignSurface Access pillar: package-scoped panel under the header so suggestions remain resolvable after the install flow - i18n: marketplace.suggestedBindings.* (en/zh) and engine.studio.access.suggest* (metadata-admin en/zh) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DP13MuGwFWLcVxVtuA7rgq
|
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.
摘要
对接 framework 新增的 D5/D9 建议绑定表面(objectstack-ai/objectstack#2746,#2696 的收尾事项):包权限集声明
isDefault: true是安装时的建议("把此权限集授予everyone岗位"),服务端绝不自动绑定——本 PR 补上 UI 侧的"管理员确认"时刻。改动
services/suggestedBindingsApi.ts— 调用GET/POST /api/v1/security/suggested-bindings[/:id/confirm|dismiss];沿用 marketplaceApi 的原生 fetch 模式(Bearer +credentials: 'include'),错误对象带code/status。components/SuggestedBindingsPanel.tsx— 待确认建议列表,逐行「授予 / 忽略」;琥珀色 pending-action 样式(参照PendingDraftsBanner);sonner toast;服务端锚点门禁的拒绝原因(如权限集携带高权限位)原样展示;无建议或非租户管理员(403)时不渲染,可无条件挂载。MarketplacePackagePage— 安装成功后展示面板:云端安装对话框(仅当安装目标就是当前运行时环境;跨环境安装应在目标环境的 Studio 内解决)与本地安装成功横幅两处。StudioDesignSurfaceAccess 支柱 — 头部下方挂载按包过滤的面板,安装流程里没处理的建议在这里仍可确认/忽略。marketplace.suggestedBindings.*(en/zh)与 Studioengine.studio.access.suggest*(metadata-admin en/zh)。验证
pnpm turbo build --filter=@object-ui/app-shell --filter=@object-ui/i18n通过(29 个任务)。pnpm test全绿:452 个测试文件、5521 个用例通过。依赖
服务端端点来自 objectstack-ai/objectstack#2746;在旧后端上面板静默不渲染(list 404/403 被吞),无破坏性。
🤖 Generated with Claude Code
https://claude.ai/code/session_01DP13MuGwFWLcVxVtuA7rgq
Generated by Claude Code