-
Notifications
You must be signed in to change notification settings - Fork 1
[pro-web] feat: add Pro Onboarding #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
• Create ProOnboarding container that mounts DialogWizard with steps array • Implement StepQ1 with Accordion sections (Local/Service/Online/Other) and selectable pill Buttons • Define types (Group, GroupItem) and provide static groups dataset with specialties • Add Lucide icon map + getIcon helper for each business type • Include sticky step header/footer and scrollable content area • Add keyboard accessibility (Enter/Space) and aria-pressed state handling • Open all accordions by default; single-select state with Continue and Skip actions
Reviewer's GuideIntroduces a Pro onboarding flow in the Pro Web app by adding a new ProOnboarding container that leverages DialogWizard and implementing the first step (StepQ1) which provides an accordion-based business category selector with full keyboard accessibility, icon mapping, and skip/continue controls. Class diagram for new onboarding components and typesclassDiagram
class ProOnboarding {
+open: boolean
+DialogWizard steps: WizardStep[]
+headerTitle: string
+handleCloseWizard()
}
class DialogWizard {
+steps: WizardStep[]
+dialogOpen: boolean
+headerTitle: string
+handleCloseWizard()
+next()
}
class StepQ1 {
+selectedId: string | null
+handleSelect(id: string)
+handleKeyDown(e, id)
+handleContinue()
+handleSkip()
}
class WizardStep {
+name: string
+component: React.ComponentType
}
class Group {
+id: 'local' | 'service' | 'online' | 'other'
+title: string
+subtitle: string
+items: GroupItem[]
}
class GroupItem {
+id: string
+label: string
+specialties: string
}
ProOnboarding --> DialogWizard
DialogWizard --> StepQ1
StepQ1 --> Group
Group --> GroupItem
DialogWizard --> WizardStep
Flow diagram for StepQ1 business type selection logicflowchart TD
A["User interacts with StepQ1"] --> B["Accordion groups displayed (all open)"]
B --> C["User selects a business type pill"]
C --> D["selectedId state updated"]
D --> E["Continue button enabled"]
E --> F["User clicks Continue"]
F --> G["DialogWizard advances to next step"]
C --> H["User clicks Skip for now"]
H --> I["Default selection used"]
I --> G
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📖 Description
This PR adds the initial Pro Onboarding flow for Pro Web, including the main
ProOnboarding
container and the first step (StepQ1
) that allows users to select their business type through interactive Accordion sections and selection pills.✅ Changes Made
ProOnboarding
component that mountsDialogWizard
with steps array.StepQ1
with Accordion groups (Local, Service, Online, Other).groups
) defining types, labels, and specialties.getIcon
helper for business categories.aria-pressed
state.🖼️ Media (screenshots/videos)
Screen.Recording.2025-10-15.090539.mp4
Summary by Sourcery
Introduce the initial Pro Web onboarding flow by adding a DialogWizard container and a first step (StepQ1) for selecting a business type using interactive accordions, iconized selection pills, and full keyboard accessibility.
New Features:
Enhancements: