Repository navigation
feat(web): open Cap Infra to every account - #4164
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
# Conflicts: # apps/web/__tests__/unit/infra-landing.test.ts
richiemcilroy
marked this pull request as ready for review
November 13, 2026 13:06
Member
Author
|
hey @greptileai, please re-review the PR |
This branch was successfully deployed
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.
What this changes
Cap Infra has been limited to one preview account on Cap's own deployment. This opens it to every signed-in account.
canUseInfrainapps/web/lib/infra-access.tsnow answers yes for every account, and for a call with no account. Every console page, console action, credit route, auto top-up, billing email and API route that checked it keeps its check, so nothing else in the call sites changes. Sign-in is still required everywhere it was./dashboard/infra) instead of "Request access", and the preview note is gone.Tests
The tests that asserted the preview list now assert open access:
infra-access.test.ts: every account and a call with no account are allowed.developer-actions-preview-gate.test.ts: signed-out visitors are still refused by all eight console actions; any signed-in account reaches them.developer-credits-checkout.test.ts: any signed-in account reaches the purchase on Cap's own deployment.infra-auto-top-up.test.ts: billing emails go to any account owner.infra-landing.test.ts: the page offers "Start building" and no preview wording.Locally the unit suite has the same set of failures with and without this change (all pre-existing, from the local Node version); none are in these files.
Merge order
This merges last, after the other launch PRs, with a production check from an account that was outside the preview list.


Confidence Score: 5/5
The PR appears safe to merge; opening access keeps existing sign-in, ownership, and billing safeguards.Summary
Opens Cap Infra to every account by making
canUseInfraalways return true.Reviews (1) · Last reviewed commit: "test(web): expect Infra billing actions ..." · Reviewed by Greptile