Skip to content

fix(cli): show not-enabled guidance on 404 for project create#3096

Draft
jorgemoya wants to merge 1 commit into
canaryfrom
jorgemoya/ltrac-1089-project-create-shows-cryptic-not-found-when-the
Draft

fix(cli): show not-enabled guidance on 404 for project create#3096
jorgemoya wants to merge 1 commit into
canaryfrom
jorgemoya/ltrac-1089-project-create-shows-cryptic-not-found-when-the

Conversation

@jorgemoya

Copy link
Copy Markdown
Contributor

Linear: LTRAC-1089

What/Why?

createProject mapped 403 to a friendly "Infrastructure Projects API not enabled — contact support to join the beta" message, but a 404 (what the API appears to return when the flag is off) fell through to a cryptic Failed to create project: Not Found. This treats 404 the same as 403, surfacing the actionable guidance via UserActionableError.

Open question: the exact status the API returns when the flag is disabled should be confirmed with the API team — this handles both 403 and 404 to be safe.

Testing

  • project.spec.ts covers the not-enabled path (44 tests pass).
  • typecheck and lint pass.

Migration

None.

The Infrastructure Projects API returns 404 (not just 403) when the beta
feature flag is off for a store, which previously fell through to a cryptic
"Not Found" error. Treat 404 the same as 403 and surface the actionable
"contact support to join the beta" guidance via UserActionableError.

Refs LTRAC-1089
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 40b5b28

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
catalyst Building Building Preview Jul 10, 2026 3:54pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

Comparing against baseline from 8d9f9a9 (2026-07-10).

No bundle size changes detected.

@github-actions

Copy link
Copy Markdown
Contributor

Unlighthouse Performance Comparison — Vercel

Comparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores.

Summary Score

Aggregate score across all categories as reported by Unlighthouse.

Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Score 89 92 91 95

Category Scores

Category Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Performance 75 84 73 82
Accessibility 95 92 95 92
Best Practices 100 100 100 100
SEO 88 100 100 100

Core Web Vitals

Metric Prod Desktop Prod Mobile Preview Desktop Preview Mobile
LCP 3.7 s 4.4 s 4.5 s 4.8 s
CLS 0.001 0 0.039 0
FCP 1.2 s 1.1 s 1.2 s 1.2 s
TBT 0 ms 0 ms 0 ms 40 ms
Max Potential FID 50 ms 40 ms 40 ms 80 ms
Time to Interactive 3.7 s 4.4 s 4.5 s 6.7 s

Full Unlighthouse report →

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