Skip to content

feat(web): open Cap Infra to every account - #4164

Merged
richiemcilroy merged 9 commits into
mainfrom
feat/infra-public
Nov 13, 2026
Merged

richiemcilroy merged 9 commits into
mainfrom
feat/infra-public

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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.

  • canUseInfra in apps/web/lib/infra-access.ts now 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.
  • The landing page already reads that same function: it now shows "Start building" (to /dashboard/infra) instead of "Request access", and the preview note is gone.
  • Self-hosted deployments were already open and behave the same.

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.

RetriggerView in GreptileConfidence 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 canUseInfra always return true.

  • Every account can pass the Cap Infra access check.
  • Visitors can start from the Infra page or the product footer.

Reviews (1) · Last reviewed commit: "test(web): expect Infra billing actions ..." · Reviewed by Greptile

@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 13, 2026 1:10pm UTC

@richiemcilroy
richiemcilroy marked this pull request as ready for review November 13, 2026 13:06
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 13, 2026 13:10 Inactive

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

@richiemcilroy
richiemcilroy merged commit 18d84db into main Nov 13, 2026
39 checks passed

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cap-web — bab3a7d6 Deployed Nov 13, 2026 by vercel[bot]
Preview – cap-status — bab3a7d6 Deployed Nov 13, 2026 by vercel[bot]
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.

1 participant