mirror of
https://github.com/stablyai/orca.git
synced 2026-11-05 19:47:27 +00:00
* refactor(shared): move onboarding, notification and terminal platform defaults out of constants.ts * chore(lint): keep the shapedSidebar naming exemption on the file that now holds it * chore(i18n): regenerate the runtime catalog so it covers main's shipped keys
29 lines
844 B
TypeScript
29 lines
844 B
TypeScript
import type { OnboardingChecklistState, OnboardingState } from './onboarding-state-types'
|
|
|
|
// Why: onboarding wizard's last step index, centralized so backfill, clamps, and UI agree on the bound.
|
|
export const ONBOARDING_FINAL_STEP = 5
|
|
export const ONBOARDING_FLOW_VERSION = 4
|
|
|
|
export function getDefaultOnboardingState(): OnboardingState {
|
|
return {
|
|
flowVersion: ONBOARDING_FLOW_VERSION,
|
|
closedAt: null,
|
|
outcome: null,
|
|
lastCompletedStep: -1,
|
|
checklist: {
|
|
addedRepo: false,
|
|
choseAgent: false,
|
|
ranFirstAgent: false,
|
|
ranSecondAgentOnSameTask: false,
|
|
triedCmdJ: false,
|
|
shapedSidebar: false,
|
|
reviewedDiff: false,
|
|
openedPr: false,
|
|
addedFolder: false,
|
|
openedFile: false,
|
|
ranAgentOnFile: false,
|
|
dismissed: false
|
|
} satisfies OnboardingChecklistState
|
|
}
|
|
}
|