Skip to content

fix: SCO-214 skip the product catalog step for reps in onboarding - #400

Merged
scottcarlton merged 2 commits into
devfrom
fix/sco-214-onboarding-rep-products
Oct 29, 2026
Merged

scottcarlton merged 2 commits into
devfrom
fix/sco-214-onboarding-rep-products

Conversation

@scottcarlton

Copy link
Copy Markdown
Owner

Summary

  • Adds products to REP_SKIPPED_SUBS in /onboarding, and filters the rep Import phase through it (that branch previously returned every base sub unfiltered).
  • Rep Import subtitle: "Your brands, team, accounts, and orders".

Why

The product import needs selfBrandId, which the onboarding loader only resolves for brand orgs. Every rep upload or manual entry on the "Add your product catalog" step failed with "Product imports need a brand catalog, and that's only set up for brand organizations right now."

Resume

The saved cursor is clamped and products sat before orders, so a rep saved anywhere in Import resumes on the right step. One cosmetic edge: a rep who had already skipped the products step will see Orders marked skipped in the completion summary, because sub-state keys are index-based.

Verification

  • bun run lint passes
  • bun run check passes (0 errors)
  • bun run test:run passes apart from the 10 known local recent-searches failures (Node v26 localStorage), which pass in CI
  • Not exercised in the browser: needs a fresh rep account

Test plan

  • New rep: Import phase goes brands, team, accounts, orders, with no product step.
  • New brand: product step still present and imports into the self brand.

Closes SCO-214

🤖 Generated with Claude Code

Minillama and others added 2 commits October 29, 2026 16:14
The product import writes into the org's own brand catalog, which only a
brand org has, so every rep upload or manual entry on that step failed.
Reps now skip it like the address and payment steps, and the rep Import
subtitle no longer lists products.

SCO-214

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
threadline Ready Ready Preview Oct 29, 2026 10:16pm UTC

@scottcarlton
scottcarlton merged commit b8c6e3d into dev Oct 29, 2026
8 checks passed
@scottcarlton
scottcarlton deleted the fix/sco-214-onboarding-rep-products branch October 29, 2026 22:18

This branch was successfully deployed

1 active deployment
Preview — de56e948 Deployed Oct 29, 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