feat: onboarding personality + name step with dynamic email domain#761
Draft
feat: onboarding personality + name step with dynamic email domain#761
Conversation
- Two-step onboarding at /onboarding/name: personality selection (5 presets + custom) then name/email form
- Auto-generates butler email as {butlerName}_{userName}@{domain} for default personalities
- Removes hardcoded getcore.me; derives email domain from LOGIN_ORIGIN env var
- Custom personality option prefills prompt with Alfred voice guide; saves to workspace on submit
- Saves personality selection to user.metadata on completion
- Exports ALFRED_VOICE from personality.ts for reuse
- Adds utils/onboarding-email.ts (deriveEmailDomain, generateButlerEmailSlug, generateButlerEmail) with vitest tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/onboarding/name: personality selection (5 presets + custom "build your own") then name/email form{butlerName}_{userName}@{domain}when a default personality is selectedgetcore.me; derives email domain fromLOGIN_ORIGINenv var at runtimeuser.metadata.personalityon completionALFRED_VOICEfrompersonality.tsfor reuseutils/onboarding-email.tswithderiveEmailDomain,generateButlerEmailSlug,generateButlerEmailhelpers and vitest unit testsTest plan
user.metadata.personalityset to custom IDLOGIN_ORIGIN=https://app.example.comyields domainapp.example.comin emailpnpm --filter webapp testto confirm unit tests pass🤖 Generated with Claude Code