Commit bd24575
authored
[pro-web] feat: implement brand kit wizard with multi-step creation flow (#597)
* refactor(media-tab): extract WorkspaceDialog reusable component
- Create WorkspaceDialog component for standardized dialog structure
- Refactor version-history-dialog to use new component
- Improve code reusability across media tab wizards
* feat(media-tab): add BrandKitEntry component for brand creation and import
* feat(media-tab): implement BrandKitWizard with steps for brand creation
* feat(media-tab): add BrandKitDialog and integrate with MediaWizards and MediaSidebar
* feat(media-tab): implement brand kit wizard with vibe selection step
- Add dynamic subtitle showing org name + "Logo & Style" in wizard mode
- Implement sticky wizard stepper and navigation buttons layout
- Create VibeStep with 12 brand vibes, 2-selection limit, and color preview
- Add proper scroll container for wizard content with fixed header/footer
- Style BadgeCheck icon and color dots with proper borders for dark mode
- Update wizard container to use viewport-based height for proper layout
* feat(media-tab): implement fonts step with vibe-based recommendations
- Add FontsStep with primary/secondary font selection
- Create Google Fonts integration with 70+ font families
- Implement vibe-based font recommendations system
- Add role badges (primary/secondary) for selected fonts
- Include font preview with multiple samples
- Update Brand Kit state management in useWorkspaceMedia hook
- Adjust wizard and dialog padding for better spacing
- Fix VibeStep to use shared state from context
* refactor(media-tab): improve fonts step with sticky selection bar and scroll optimization
- Add sticky bar showing selected fonts with removal capability
- Implement vertical scroll snap carousel for font grid
- Update font state management with role-based structure
- Optimize scroll behavior in VibeStep and wizard stepper
- Remove border from stepper for cleaner visual separation
* feat(media-tab): implement colors step with palette selection and live preview
- Add ColorsStep with 8 curated color palettes across multiple categories
- Implement live preview card with selected fonts and organization name
- Add AA contrast ratio validation with gentle auto-adjustment
- Create shuffle functionality for random palette selection
- Build carousel navigation for palette browsing
- Display color strips with primary, accent, bg, and text tokens
- Add palette state management to useWorkspaceMedia hook
- Integrate selected fonts from previous step into color preview
* feat(media-tab): enhance ColorsStep layout with improved scrolling and responsive design
* feat(media-tab): refactor ColorsStep for theme-based color adjustments and improve contrast handling
* feat(media-tab): add checkpoint step to brand kit wizard
- Create CheckpointStep component to review selected brand elements
- Display color scheme with palette circles and category information
- Show font family preview with primary and secondary fonts
- Add font switching functionality between primary and secondary roles
- Integrate organization name and vibe label in checkpoint UI
- Replace placeholder LogoStep with functional CheckpointStep
- Add flag icon to final step in wizard stepper for visual clarity
* fix(media-tab): adapt checkpoint step for single source and validate sources by vibes
* feat(media-tab): add persistence with IDB sync and checkpoint handlers
* fix(media-tab): restore wizard step when changing organizations
* feat(hasura): add brand_kit jsonb column to organization
* fix(media-tab): improve validation and error handling for brand kit flow1 parent a0720d9 commit bd24575
File tree
28 files changed
+6796
-3706
lines changed- apps
- hasura
- metadata/databases/masterbots/tables
- migrations/masterbots/1766505347896_alter_table_public_organization_add_column_brand_kit
- pro-web
- app
- actions
- api/organizations
- [id]
- components
- routes/workspace/media-tab
- ui
- brand-kit
- wizard
- steps
- sidebar
- wizards
- ui/workspace-dialog
- lib
- constants
- hooks
- queries
- types
- packages
- mb-drizzle/src/drizzle
- mb-genql/generated
28 files changed
+6796
-3706
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
| 48 | + | |
47 | 49 | | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
| 57 | + | |
55 | 58 | | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
557 | 558 | | |
558 | 559 | | |
559 | 560 | | |
| |||
575 | 576 | | |
576 | 577 | | |
577 | 578 | | |
| 579 | + | |
578 | 580 | | |
579 | 581 | | |
580 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
| |||
163 | 176 | | |
164 | 177 | | |
165 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
166 | 193 | | |
167 | 194 | | |
168 | 195 | | |
| |||
172 | 199 | | |
173 | 200 | | |
174 | 201 | | |
| 202 | + | |
175 | 203 | | |
176 | 204 | | |
177 | 205 | | |
| |||
188 | 216 | | |
189 | 217 | | |
190 | 218 | | |
| 219 | + | |
191 | 220 | | |
192 | 221 | | |
193 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
Lines changed: 74 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments