feat(business-unit): interface entitlement control (Phase 1 platform)#39
Merged
Conversation
Super-admin control for which external-system interface brands a business unit is licensed for. Adds a self-contained card on the BusinessUnitEdit advanced slot that loads and saves the BU's entitlement via the gateway's super-admin-gated endpoints. - interfaceCatalog.ts — interface brand keys (`<category>_<brand>`) grouped by category, mirroring the inventory frontend's registry - interfaceEntitlementService.ts — GET/PUT `/api-system/platform/business-units/:bu_code/interface-entitlement` - InterfaceEntitlementCard.tsx — grouped checkbox selector with per-category All/None and its own save; an empty selection means "not restricted" (BU sees every interface), matching the gateway's show-all default - wired into BusinessUnitEdit (existing-BU only), gated on isSuperAdmin tsc clean; 3 component tests pass; new files lint clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Platform half of Interface Brands + Platform Visibility — Phase 1 (spans 3 repos).
What
Super-admin control for which external-system interface brands a business unit is licensed
for. A self-contained card on
BusinessUnitEdit(advanced slot, existing BUs only) loads andsaves the BU's entitlement via the gateway's super-admin-gated endpoints.
interfaceCatalog.ts— interface brand keys (<category>_<brand>) grouped by category,mirroring the inventory frontend's registry
interfaceEntitlementService.ts— GET/PUT/api-system/platform/business-units/:bu_code/interface-entitlementInterfaceEntitlementCard.tsx— grouped checkbox selector with per-category All/None and itsown save; an empty selection means "not restricted" (BU sees every interface), matching
the gateway's show-all default
BusinessUnitEdit, gated onisSuperAdminDepends on
The gateway PR (endpoints +
PlatformSuperAdminGuard). The platform app-id must allowlistplatform-bu-interface.list/.set.Verification
tsc --noEmitclean · 3 component tests passing · new files lint clean.🤖 Generated with Claude Code