Commit bb71f72
authored
fix(onboarding): use brand mark in recovery cards (#115)
## Summary
- replace the generic Sparkles icon in both onboarding recovery states
with the Cheatcode brand mark
- generalize the shared recovery-card visual slot so branded visuals and
Lucide icons use one accessible API
- preserve the existing card dimensions, icon sizing, action behavior,
and Lucide stroke weight
## Context
Direct user-reported onboarding UI defect; no Linear issue or plan
document was created for this focused fix.
## Decisions Made
| Decision | Choice | Alternatives considered | Reasoning |
|---|---|---|---|
| Recovery visual API | Accept a component slot with `className` and
`aria-hidden` | Duplicate a card, add a brand-specific boolean, or wrap
the mark as a fake Lucide icon | Keeps one recovery surface and lets the
caller choose the correct visual without vendor coupling |
| Lucide stroke styling | Apply stroke width through the shared class |
Keep a Lucide-only `strokeWidth` prop | Preserves existing icon
appearance while allowing non-SVG brand components |
## How to Review
1. Review `recovery-card.tsx` for the generalized visual contract.
2. Review `onboarding-flow.tsx` for both branded recovery-state call
sites.
## Verification
- [x] `pnpm lint`
- [x] `pnpm typecheck`
- [x] `pnpm turbo build --force`
- [x] `pnpm deadcode`
- [x] `pnpm architecture:check`
- [x] `pnpm turbo skills:build`
- [x] local stack started through the documented Compose flow
- [x] direct authenticated browser flow reached `Setup needs one more
step`
- [x] DOM confirmed `CheatcodeMark` present, `lucide-sparkles` absent,
and `Finish setup` enabled
- [x] visual screenshot confirmed the 18px mark remains centered in the
existing 44px recovery visual1 parent 806cda4 commit bb71f72
2 files changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | | - | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | | - | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | | - | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | | - | |
| 147 | + | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
| |||
0 commit comments