Files
multica/packages/core/onboarding/index.ts
Jiayuan Zhang a61a8ecfed feat(onboarding): merge About-you step, collect source after agents deliver value (#5786)
Flow drops from five steps to three: role + use_case merge into a
single About-you screen (one Skip covers both; Continue stamps skip
markers on whichever group was left unanswered), and the source
question leaves onboarding entirely.

Source is now collected only by the workspace source-backfill prompt,
which additionally waits until agents/squads have completed at least
SOURCE_BACKFILL_MIN_AGENT_DONE_ISSUES (3) issues in the workspace —
attribution is asked after Multica has visibly delivered value, not
before. The count rides a limit:1 issues query keyed under
issueKeys.all so realtime invalidations keep it fresh, enabled only
for users who still owe an answer.

Server: questionnaire complete() narrows to role + use_case so the
funnel step doesn't stall on the now-deferred source; a new
metrics-only onboarding_source_submitted event (+ Prometheus counter)
tracks the backfill prompt's answer/decline transition once per user.

Co-authored-by: Lambda <lambda@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-23 01:57:44 +08:00

25 lines
547 B
TypeScript

export type {
OnboardingStep,
OnboardingCompletionPath,
QuestionnaireAnswers,
Source,
Role,
UseCase,
} from "./types";
export {
saveQuestionnaire,
completeOnboarding,
joinCloudWaitlist,
} from "./store";
export { ONBOARDING_STEP_ORDER } from "./step-order";
export {
needsSourceBackfill,
SOURCE_BACKFILL_MAX_DISMISSALS,
SOURCE_BACKFILL_MIN_AGENT_DONE_ISSUES,
} from "./needs-backfill";
export { agentCompletedIssueCountOptions } from "./queries";
export {
useWelcomeStore,
type WelcomeSignal,
} from "./welcome-store";