Repository navigation
Link eligible orgs to Executor v2's import from the sidebar - #2266
Merged
Merged
Conversation
RhysSullivan
added this pull request to stack #2268
October 11, 2026 21:55
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | 5c8d467 | Oct 11 2026, 10:57 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | 5c8d467 | Commit Preview URL Branch Preview URL |
Oct 11 2026, 10:55 PM |
Contributor
Cloudflare previewTorn down — the PR is closed. |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
RhysSullivan
marked this pull request as ready for review
October 12, 2026 02:40
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.
Summary
Adds a "Move to Executor v2" link to the cloud dashboard sidebar. It opens v2's workspace import (
/v1-importon v2's app host) in a new tab.Only users v2 would let import the selected org see it, using v2's rules:
free/free-pay-as-you-gothat has not expired.Billing is read without creating anything:
AutumnService.findCustomercalls Autumn's read-onlyPOST /v1/customers.get(autumn-js 1.2.8 has no SDK method for it) with the existing secret, server URL and the SDK's API version, and decodes the answer with a schema. A 404customer_not_foundmeans no customer, which is free. Any other failure hides the link.Everyone else sees nothing, and so does anyone whose check fails.
GET /api/auth/v2-importreturns{ url }, which is null unless the user is eligible. The dashboard fetches it once per load and caches it for 5 minutes. Reads stop at the first refusal.v2's origin is not a new setting. It comes from the existing
V2_SIGN_UP_URLvar (its origin, which the edge already treats as v2's app host) and is validated byparseV2Edge. Where the v2 settings are absent, there is no link.Tests are in the PR stacked on top.
Verification
customers.getfor an unknown id answers 404customer_not_foundand creates nothing; a known customer returnssubscriptions[].plan_id/statusbun run format:check,bun run lint, cloud and reacttypecheck, cloudbun run test(847 passed)cloud/v2-import-link.test.ts(4 passed): free sole member sees the link, a missing Autumn customer counts as free, both members of a shared org do not, a paid sole member does not