Repository navigation
v0.9.1: billing screens stay current without a reload; guides follow every-gate-is-a-flag (TBP-949) - #50
Merged
Conversation
…ive billing events (TBP-762, TBP-949) A plan added in Bridge now appears on an open plan picker without a reload. Ported from bridge-svelte core/billing-store.ts: one shared read of the plan list and of the billing state, retried once, never blanking the screen, and re-run on tab focus after 30 s, a renewed sign-in and a live subscription or payment event.
…s; guide drift test (TBP-705, TBP-763, TBP-576, TBP-642, TBP-675, TBP-949) - billing, flags and team guides open with the one rule and end with check gates; the billing guide no longer says a paid feature is not a flag - seatsMetric and the seat setup in the team and billing guides - MCP tools named next to the CLI; no more "prefer the CLI" - live-updates page: realtimeStatusDetail reasons and the troubleshooting link - doc-currency test ported from bridge-svelte; new guide-drift test fails when a guide names an export, component, prop, billing option or bridge.* path the package does not have
…es follow every-gate-is-a-flag (TBP-949)
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.
React SDK 0.9.1: the second round of bringing the React package level with the Svelte package. Tracked as TBP-949. It covers TBP-762, TBP-705, TBP-763, TBP-576, TBP-642 and TBP-675.
What changes for developers
Billing screens stay current without a reload (TBP-762). Until now the plan picker, the subscription badge, the billing notice and the subscription pages read the plans once, when they first appeared. A plan added in Bridge did not show until a reload. They now re-read in three cases:
This is the same rule the Svelte package uses. A background re-read never blanks what is on screen. A failed or empty read is tried once more. An answer that arrives after signing out is dropped. An app that never shows a billing screen makes no extra calls.
The agent guides follow "every gate is a flag" (TBP-705).
npx @nebulr-group/bridge-cli check gates.learning/pages did, and now use a flag.Seats (TBP-763). The team and billing guides now explain seat limits:
seatsMetric="seats"on the built-in team page, or@RequireQuota('seats')on the app's own invite handler. They also give the command that sets up the limit.MCP tools (TBP-576). The flags and billing guides name the Bridge MCP tools next to the CLI commands, and no longer say "prefer the CLI when you are an agent".
Live updates (TBP-642, TBP-675). The live-updates page explains
useRealtimeStatusDetail(): each reason, whose side it is on, and a link to the troubleshooting page.Guide drift test. A new test fails when a guide names something the package does not have: an export or entry point, a component, a prop on one of our components, a
billing.*option, a hook, or abridge.*path. It reads the package's own types, so no build is needed. The Svelte package's doc-currency test (no direct role or plan checks; seats taught correctly) is ported too.Checks
Notes
checkout-landing"successRoute lands elsewhere" test fails about one run in three.