~james/core

core/web/src/lib/components/welcome/steps.ts -rw-r--r-- 464 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// display order only; not shared with appview's onboarding schema
export const WELCOME_STEPS = [
	{ key: "profile", label: "Profile" },
	{ key: "emails", label: "Emails" },
	{ key: "social", label: "Discover" },
	{ key: "keys", label: "SSH keys" },
	{ key: "finish", label: "Finish" }
] as const;

export type WelcomeStepKey = (typeof WELCOME_STEPS)[number]["key"];

export const WELCOME_TOTAL = WELCOME_STEPS.length;

export const LAST_STEP = WELCOME_TOTAL - 1;