Skip to content

Conversation

@sean-brydon
Copy link
Member

@sean-brydon sean-brydon commented Nov 24, 2025

What does this PR do?

This PR changes the order of creating the team -> paying -> invite users.

The old approach was create team -> invite -> pay. But we are matching the current implementation of how billing works with usage based billing

How should this be tested?

Enable onboarding-v3 flag on your instance
Ensure you have stripe enabled + stripe:listen running
login as [email protected], onboarding
Go through the team setup flow
Pay
Invite
Ensure uers were added to team

Create a new account
disable billing
Test again

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

@graphite-app graphite-app bot requested a review from a team November 24, 2025 10:09
@vercel
Copy link

vercel bot commented Nov 24, 2025

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

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
cal Ignored Ignored Nov 24, 2025 3:13pm
cal-eu Ignored Ignored Nov 24, 2025 3:13pm

@keithwillcode keithwillcode added consumer core area: core, team members only labels Nov 24, 2025
return redirect("/onboarding/teams/invite/email");
const redirectUrl = teamId
? `/onboarding/teams/invite/email?teamId=${teamId}`
: "/onboarding/teams/invite/email";
Copy link
Member Author

Choose a reason for hiding this comment

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

We will try to pull from context if this part of the flow happens (it never should)

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

5 issues found across 7 files

Prompt for AI agents (all 5 issues)

Understand the root cause of the following 5 issues and fix them.


<file name="apps/web/modules/onboarding/hooks/useCreateTeam.ts">

<violation number="1" location="apps/web/modules/onboarding/hooks/useCreateTeam.ts:67">
User-facing error text should use t() instead of a hard-coded English string per the localization guideline.</violation>

<violation number="2" location="apps/web/modules/onboarding/hooks/useCreateTeam.ts:77">
Localize this validation error with t() instead of embedding English text directly.</violation>

<violation number="3" location="apps/web/modules/onboarding/hooks/useCreateTeam.ts:118">
Use the t() localization helper for this fallback invite error instead of a hard-coded string.</violation>
</file>

<file name="apps/web/modules/onboarding/teams/details/team-details-view.tsx">

<violation number="1" location="apps/web/modules/onboarding/teams/details/team-details-view.tsx:84">
createTeam is invoked with a stale onboarding-store snapshot, so the newly entered team name/slug never reach the mutation and the flow bounces the user back to the details step.</violation>
</file>

<file name="apps/web/modules/onboarding/teams/invite/email/team-invite-email-view.tsx">

<violation number="1" location="apps/web/modules/onboarding/teams/invite/email/team-invite-email-view.tsx:81">
Remove the hardcoded English fallback so this toast message always comes from `t()` and remains localizable.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2025

E2E results are ready!

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

looks good. it worked well on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer core area: core, team members only ready-for-e2e size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants