Repository navigation
Release v1.8.0
Box Office now has a user interface. @cratis/showrunner.boxoffice.react tells the signed-in user what their tenant may do, keeps navigation and pages of modules the tenant lacks out of sight, and gives the product's maintainers seats, usage and plan pages.
Added
@cratis/showrunner.boxoffice.react:BoxOfficeProvider,useEntitlements,useModuleFilter,RequiresModule,TrialBanner,SuspensionBanner,NoLicense,PortalButton,SeatsPage,UsagePageandPlanPage, with replaceable texts and a stylesheet built on the Cratis Components tokens. (#51)CurrentEntitlementsquery returning what the signed-in user's tenant may do in one answer: read-only reason, trial, seats and each module's access.CurrentUsagequery, authorized byBoxOffice.ManageCompute, returning where the tenant stands with each meter in its allowance period.LinkToPortalquery and theCustomerPortalUrl,CustomerPortalSigningKeyandCustomerPortalLinkLifetimeoptions: a product can send tenants to the operator's customer portal with a signed, short-lived link. The host fails to start when only one of the address and the key is set.- Documentation for the React components and the customer portal, and the new queries and options on the existing Box Office pages. (#53)