Skip to content

fix(billing): put only a self-serve signup on the free allowance - #358

Merged
artempartos merged 1 commit into
developfrom
artempartos/billing-state-default
Sep 29, 2026
Merged

artempartos merged 1 commit into
developfrom
artempartos/billing-state-default

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

Found while checking what a production deploy would do.

companies.billing_state defaulted to trialing, and the admin's new-company form does not set the field. So every company made any way other than self-serve signup was put on a trial it never asked for — an operator creating a workspace for a paying customer in production would have watched it stop after a hundred queue-hours, with nothing on the screen connecting that to a column default.

The migration that shipped set every existing company to active, which is why nobody has hit this yet. The next company created would have.

The default is now what an operator means, and WorkspaceOnboardingForm says trialing out loud for the one path that grants one — the same shape as the session limit, which is required on that path and nowhere else.

🤖 Generated with Claude Code

The column defaulted to trialing, so every company made any other way was on a
trial it never asked for: the admin form does not set the field, so an operator
creating a workspace for a paying customer in production would have watched it
stop after a hundred queue-hours with nothing to connect that to.

The default is now what an operator means, and WorkspaceOnboardingForm says
trialing out loud for the one path that grants one — the same shape as the
session limit, which is required there and nowhere else.

Signed-off-by: Artem Petrov <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@artempartos
artempartos merged commit 232958e into develop Sep 29, 2026
7 checks passed
artempartos added a commit that referenced this pull request Oct 8, 2026
A company created from the admin kept the column default `active`, which
in the hosted product means somebody is paying. With no Stripe customer
behind it, its Billing tab showed an empty period and no way to add a
card, and the meter dropped its minutes (staging's Tuesday: 70
worker-hours, invoiced nowhere).

In saas the admin's create action now starts a company `trialing` and
requires a worker limit, like a self-serve signup. That reverses #358's
"allowance for self-serve only" rule: the trial is chosen by the path,
next to a visible Managed by Aixle checkbox, and the column default
stays `active`.

`managed_by_aixle` marks a company we carry. It is never billable, stays
`active`, has no Billing tab or Checkout, starts with two workers, and
only a platform administrator can change its limit. The migration marks
every saas company that is `active` with no Stripe customer, which is
what they already were in effect.

Signed-off-by: Artem Petrov <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
dvislov added a commit that referenced this pull request Dec 2, 2026
… of skipping

Getting started follows direction A2 (List) from task #358: one column of
illustrated cards, light and dark, with the tour, templates and Build with
AI held back until an agent is connected; Personal MCP stays open. The
sidebar's Build with AI waits for an agent too.

Skip tour sat on every step and finished the tour for good, taking Getting
started with it. Closing a step now pauses the tour; it resumes from
Getting started or the user menu, and is turned down once, on Getting
started. Progress moves to localStorage, keyed by member and company, so a
paused tour survives signing out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
artempartos pushed a commit that referenced this pull request Dec 2, 2026
… of skipping

Getting started follows direction A2 (List) from task #358: one column of
illustrated cards, light and dark, with the tour, templates and Build with
AI held back until an agent is connected; Personal MCP stays open. The
sidebar's Build with AI waits for an agent too.

Skip tour sat on every step and finished the tour for good, taking Getting
started with it. Closing a step now pauses the tour; it resumes from
Getting started or the user menu, and is turned down once, on Getting
started. Progress moves to localStorage, keyed by member and company, so a
paused tour survives signing out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
artempartos pushed a commit that referenced this pull request Dec 2, 2026
* feat(onboarding): record product tours and land new members on Getting started

Tour completion is stored per company membership, like onboarding, so a
viewer in one company still gets the full tour where they can run things.
Existing members are backfilled as finished. Everything sits behind the
product_tour release flag.

Refs #51

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* feat(onboarding): add the product tour engine with tours A and B

Driver.js draws one step at a time; the step order, page changes and
progress belong to ProductTourProvider, mounted around the Inertia app
because only that tree outlives page visits. Steps find their targets by
data-tour attributes on existing components. The user menu gets Start
product tour while the product_tour flag is on.

Refs #51

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* feat(onboarding): add the Getting started page

Refs #51

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* docs: describe Getting started and the product tour

Refs #51

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* docs: link the product tour design note to its pull request

Refs #51

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* chore(onboarding): regenerate routes, types and yarn.lock for the product tour

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* fix(onboarding): make the product tour branch pass lint and type checks

The Getting started cards become labelled sections so the Build with AI
button in the card can be told apart from the one in the layout banner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* fix(onboarding): reserve the tour sections and fix the tour's failing tests

getting_started and product_tour are company sections, so a company slug
must not take them. The remove-by badge test now travels past the first
release flag to expire, which is product_tour, not external_runners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* feat(onboarding): run tour A's first workflow from the board

Hello Flow researches the company named by a board card and fails on a run
started by hand, so the tour now has the member switch its trigger on, add
a card named after a company and drag it into Researching, then follows
that card's run, instead of pressing Run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* feat(onboarding): redesign Getting started and pause the tour instead of skipping

Getting started follows direction A2 (List) from task #358: one column of
illustrated cards, light and dark, with the tour, templates and Build with
AI held back until an agent is connected; Personal MCP stays open. The
sidebar's Build with AI waits for an agent too.

Skip tour sat on every step and finished the tour for good, taking Getting
started with it. Closing a step now pauses the tour; it resumes from
Getting started or the user menu, and is turned down once, on Getting
started. Progress moves to localStorage, keyed by member and company, so a
paused tour survives signing out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

---------

Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
Signed-off-by: Dmitry Vislov <[email protected]>
Co-authored-by: Aixle Flow <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Dmitry Vislov <[email protected]>
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