Skip to content

v0.9.1: billing screens stay current without a reload; guides follow every-gate-is-a-flag (TBP-949) - #50

Merged
iman-nebulr merged 3 commits into
mainfrom
feat/react-svelte-parity-wave2
Nov 10, 2026
Merged

iman-nebulr merged 3 commits into
mainfrom
feat/react-svelte-parity-wave2

Conversation

@iman-nebulr

Copy link
Copy Markdown
Contributor

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:

  • the tab regains focus more than 30 seconds after the last read;
  • the sign-in is renewed;
  • a live plan, subscription or payment event arrives.

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).

  • The billing, flags and team guides open with the rule and end with npx @nebulr-group/bridge-cli check gates.
  • The billing guide no longer says a paid feature should not be a flag. That line contradicted the table above it.
  • No guide shows a role or plan check written into app code. Three 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 a bridge.* 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

  • Unit tests: 768 pass, 0 fail (run three times). 0.9.0 had 393.
  • Before and after: 12 of the 14 new billing-refresh tests fail on 0.9.0. The other 2 check that nothing is read when it shouldn't be. On 0.9.0's guides, 15 guide checks fail. All pass on this branch.
  • Typecheck, build, built-dist shared-registry test: pass.
  • Install from the packed tarball with React 18 and React 19, plus the ESM and CJS shared-registry check: pass.
  • Docs link check: no broken links.
  • The end-to-end suite was not run. It needs a running Bridge stack, and these tests fake Bridge rather than call it.

Notes

  • Not merged, published or tagged. The release is done separately.
  • Two tests whose fakes return an empty plan list now set the retry delay to 0, because an empty list is retried once.
  • Already flaky on main and unchanged here: the checkout-landing "successRoute lands elsewhere" test fails about one run in three.

…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
@iman-nebulr
iman-nebulr merged commit 7381a5e into main Nov 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants