Skip to content

fix(onboarding): offer choose my provider once bids are in, with a bid picked - #4630

Merged
baktun14 merged 1 commit into
mainfrom
fix/onboarding-choose-provider-after-bids
Oct 29, 2026
Merged

baktun14 merged 1 commit into
mainfrom
fix/onboarding-choose-provider-after-bids

Conversation

@baktun14

@baktun14 baktun14 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Why

Part of CON-1431

In the Oct 26-27 failure-session report, 13 of 35 new Hello World and Space Agent users left the one-click flow within 30 s. Nine of them pressed "Choose my provider", mostly before any bid had come in, and landed on an empty bid list. One of the 13 got a lease, against 16 of the 22 who let the deploy run.

What

  • "Choose my provider" shows only once every placement has an open bid. It no longer shows while the deployment is being created.
  • Choosing it opens the bid list with the autopilot's pick already selected, so pressing Deploy goes straight to the usual review step. The pick is the provider the autopilot matched if it got that far, otherwise the first open bid it would try, skipping any provider whose lease already failed.
  • Skip shows "Your deployment keeps going" when the deployment carries on without the page: its lease was sent or created, or the API took the whole one-click deploy on (background_auto_lease).
  • Analytics: onboarding_choose_provider_click gains dseq and numberOfBids, and onboarding_left gains deploymentKeepsGoing.

Gap: while the page itself drives the deployment (no API auto lease), skipping during create or matching still closes it, and the existing dialog says so. The API only takes over the lease of a deployment it created with autoLease, so keeping it going there needs an endpoint that hands an open deployment to the AutoLease job. Turning background_auto_lease on removes this path for new one-click deploys.

Testing: unit tests for each change. The deploy-web unit suite, lint and tsc (no new errors) pass locally, and the mutation check on changed lines scores 100%.

…d picked

"Choose my provider" showed while the deployment was still being created and
opened an empty bid list, and most people who pressed it left. It now shows
once every placement has an open bid, and the manual pick opens with the bid
the autopilot would have leased already selected, so Deploy is ready to press.

Skip now says the deployment keeps going when it really does: its lease was
sent or created, or the api took the whole one-click deploy on. While the page
still drives the deployment, Skip keeps asking before it closes it.

Fixes CON-1431
@baktun14
baktun14 requested a review from a team as a code owner October 29, 2026 18:50

@claude claude 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.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 15 billable files and costs up to $3.75.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 46 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 387af8b and 13908dc.

Files selected for processing: 15
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/AutoDeployFlow/AutoDeployFlow.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/AutoDeployFlow/AutoDeployFlow.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigureDeploymentForm/ConfigureDeploymentForm.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/ConfigureDeploymentForm/ConfigureDeploymentForm.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentFlowProvider/DeploymentFlowProvider.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/DeploymentFlowProvider/DeploymentFlowProvider.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/useDeploymentFlow/useDeploymentFlow.spec.tsx
  • apps/deploy-web/src/components/deployments/ConfigureDeployment/useDeploymentFlow/useDeploymentFlow.ts
  • apps/deploy-web/src/components/deployments/PhasedDeploymentProgress/PhasedDeploymentProgress.spec.tsx
  • apps/deploy-web/src/components/deployments/PhasedDeploymentProgress/PhasedDeploymentProgress.tsx
  • apps/deploy-web/src/components/onboarding-picker/SkipOnboardingButton/SkipOnboardingButton.spec.tsx
  • apps/deploy-web/src/components/onboarding-picker/SkipOnboardingButton/SkipOnboardingButton.tsx
  • apps/deploy-web/src/hooks/useAutoDeploymentFlow/deployPhases.ts
  • apps/deploy-web/src/hooks/useAutoDeploymentFlow/useAutoDeploymentFlow.spec.ts
  • apps/deploy-web/src/hooks/useAutoDeploymentFlow/useAutoDeploymentFlow.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.91%. Comparing base (387af8b) to head (13908dc).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4630      +/-   ##
==========================================
+ Coverage   93.73%   93.91%   +0.17%     
==========================================
  Files        1813     1704     -109     
  Lines       52620    49814    -2806     
  Branches    12946    12388     -558     
==========================================
- Hits        49323    46782    -2541     
+ Misses       2953     2704     -249     
+ Partials      344      328      -16     
Flag Coverage Δ *Carryforward flag
api 96.11% <ø> (ø) Carriedforward from 387af8b
deploy-web 92.16% <100.00%> (+0.01%) ⬆️
log-collector ?
notifications 96.03% <ø> (ø) Carriedforward from 387af8b
provider-console 81.68% <ø> (ø) Carriedforward from 387af8b
provider-inventory ?
provider-proxy 92.21% <ø> (ø) Carriedforward from 387af8b
tx-signer ?

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...figureDeployment/AutoDeployFlow/AutoDeployFlow.tsx 100.00% <100.00%> (ø)
...onfigureDeploymentForm/ConfigureDeploymentForm.tsx 95.11% <100.00%> (+0.20%) ⬆️
.../DeploymentFlowProvider/DeploymentFlowProvider.tsx 100.00% <100.00%> (ø)
...eDeployment/useDeploymentFlow/useDeploymentFlow.ts 97.98% <100.00%> (+<0.01%) ⬆️
...sedDeploymentProgress/PhasedDeploymentProgress.tsx 100.00% <100.00%> (+1.96%) ⬆️
...cker/SkipOnboardingButton/SkipOnboardingButton.tsx 100.00% <100.00%> (ø)
...eb/src/hooks/useAutoDeploymentFlow/deployPhases.ts 75.00% <ø> (ø)
...oks/useAutoDeploymentFlow/useAutoDeploymentFlow.ts 94.76% <100.00%> (+0.28%) ⬆️

... and 109 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ No blocking issues — one semantic nit inline.

Reviewed changes
A first full pass over the PR (1 commit, 15 files, deploy-web onboarding auto-deploy flow).

  • Bid-gated "Choose my provider" — the CTA now renders only in the matching phase and only once every placement has an open bid to pick from, instead of unconditionally during matching or creating.
  • Hand-off with a pick — setBidStrategy now carries recommendedBidIds (per placement: the autopilot's matched provider, else the first open bid, skipping providers a failed lease went to), and the manual form records those selections once via selectProvider, so pressing Deploy goes straight to the review step.
  • Skip messaging — the leave guard gains keepsDeployingWithoutPage (lease sent/created, or the api took the one-click deploy on), and skipping then enqueues an info snackbar ("Your deployment keeps going") instead of leaving silently.
  • Analytics — onboarding_choose_provider_click gains dseq and numberOfBids; onboarding_left gains deploymentKeepsGoing.

Verified locally: all 7 touched spec files pass (572 tests), tsc -p tsconfig.build.json and eslint on the touched files are clean, and the Snackbar usage matches the @akashnetwork/ui contract (info variant registered on the provider).

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GLM-5.3 | 𝕏

@baktun14
baktun14 added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 880ac0c Oct 29, 2026
82 checks passed
@baktun14
baktun14 deleted the fix/onboarding-choose-provider-after-bids branch October 29, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant