Skip to content

[pull] main from tldraw:main#293

Merged
pull[bot] merged 1 commit intocode:mainfrom
tldraw:main
Nov 28, 2025
Merged

[pull] main from tldraw:main#293
pull[bot] merged 1 commit intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Nov 28, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Add fairy feature flags and invite system:
- Feature flag system (fairies_enabled, fairies_purchase_enabled) with
admin UI
  - Update pricing page with Paddle payment integration
- Fairy invite flow should work for signed out users, redirects them
after sign in
  - Redirect to home when fairy flags disabled
  - Admin page for toggling feature flags
  - Extract payment logic from sidebar to reusable usePaddle hook
  - Add descriptions and reddemedby to fairy invites.

### Change type

- [x] `other`



<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds KV-backed feature flags (fairies, fairies_purchase) with admin
controls, gates UI/DO/routes, enhances fairy invites
(description/redeemedBy, signed-out flow), and centralizes Paddle
checkout used on pricing and sidebar.
> 
> - **Feature Flags (global)**:
> - Add KV-backed flags `fairies` and `fairies_purchase` with
`/app/feature-flags` API and polling `FeatureFlagsFetcher` +
`useFeatureFlags`.
> - Gate client hooks (`useFairyAccess`), UI (sidebar/purchase/pricing),
and DO `/fairy/has-access` + invite redemption by flags.
> - **Checkout / Pricing**:
> - Extract Paddle integration to `usePaddle` and use in pricing page
and sidebar link.
> - Pricing page: sign-in redirect (`redirect-to`), conditional button
labels, deep-link checkout via `?checkout=true`.
> - **Fairy Invites**:
> - Add `description` and `redeemedBy` tracking (DB migration) and show
in Admin table; include description on create.
> - Signed-out invite flow stores token and triggers sign-in, then
processes via root handler.
> - **Admin**:
> - New Feature Flags section (toggle flags) and updated Fairy Invites
management (grant/remove access unified, description input, copy link).
> - **Backend/Worker**:
> - New feature flag utils (get/set, defaults by env), admin routes for
flags, worker route exposure, KV bindings in wrangler.
> - **i18n/UI**:
> - Add strings for “Home”, “Start your fairy adventure”, “Your fairies
are waiting for you! →”.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
bc78b6f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@pull pull Bot locked and limited conversation to collaborators Nov 28, 2025
@pull pull Bot added the ⤵️ pull label Nov 28, 2025
@pull pull Bot merged commit 8940b13 into code:main Nov 28, 2025
@pull pull Bot had a problem deploying to deploy-staging November 28, 2025 21:13 Failure
@pull pull Bot had a problem deploying to deploy-production November 28, 2025 21:13 Failure
@pull pull Bot had a problem deploying to deploy-staging November 28, 2025 21:13 Failure
@pull pull Bot had a problem deploying to deploy-staging November 29, 2025 00:22 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant