Repository navigation
Reactivation page: instant activation after payment, desktop layout, ways to pay - #1782
Merged
Merged
Conversation
helpcodeai
enabled auto-merge (squash)
November 17, 2026 19:52
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Three changes to the no-login reactivation page (
/reactivate/<token>, Cloud only), from the read of its first ten days:The page's Telegram price test is unchanged. Self-hosted is unchanged: every route of the page answers 404 there.
Changes
LicenseService.claimPaidLicenceFor(organizationId): asks the licence site for that workspace's unactivated licences and binds those that name it, without the sweep's two-minute wait. At most one request per workspace every 5 seconds. The per-licence binding of the sweep moved intobindListedLicence, used by both.POST /api/license/reactivate/:token/claim: the page calls it when?paid=1is in the URL. It answers the workspace's state. It binds only a licence the site sold for the token's workspace, so the link gives its holder nothing but what was paid for.It needs HelpCode-ai/anythingmcp-website#608 for the speed-up. Deploy order does not matter: against the current site the claim finds nothing new and the sweep works as today.
Type
Testing
In
packages/backend, afternpm ciandprisma generate:npx jest src/license src/mcp-server/trial-blocked-call --maxWorkers=4: 22 suites, 432 tests passed. New: 5 tests forclaimPaidLicenceFor(binds a licence sold 10 seconds ago, ignores an older site's general list, leaves a paying workspace alone, one site request per workspace in 5 seconds, nothing off Cloud or without the service token) and 5 for the claim route.npx tsc --noEmit -p tsconfig.json: clean.npm run lint: no changes.In
packages/frontend:npx playwright test tests/e2e/reactivate-link.spec.ts --workers=2: 25 passed. New: the claim on return from Stripe, the return still working when the claim fails, no claim on a normal visit, "What happens next" under the plans on a desktop and after the explanation on a phone, the ways to pay, the quiet sign-in link.npx tsc --noEmit -p tsconfig.jsonandnpx eslinton the changed files: clean.Not tested against production: the end-to-end timing can only be measured after both deploys, on the next purchases from the page.
Checklist
npm test): the full suite runs in CIRelated Issues
Follows #1574 (the page) and #1769 (the page for every workspace).