Skip to content

Commit 58e36d3

Browse files
lambasuclaude
andcommitted
P07: replace p7Step/p7UpdateDone with scripted beat system (beats 1-6)
Each beat reveals more content and shows a Next button or DemoArrow: - Beat 1: msgs 1-4 (team planning) + Next → button - Beat 2: msgs 1-9 (Lovable v1 card) + DemoArrow pointing to View Live Preview - Beat 3: Stage View opens; rail msgs 1-12 (team feedback) + Next → in rail - Beat 4: rail msgs 1-13 (In Progress card) + DemoArrow in rail - Beat 5: update animation playing - Beat 6: all messages revealed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c245856 commit 58e36d3

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

src/components/ChatView.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@
5050
flex-shrink: 0;
5151
}
5252

53+
.p7-step-next {
54+
flex-shrink: 0;
55+
background: transparent;
56+
border: 1px solid #b8860b;
57+
color: #4a3000;
58+
padding: 3px 10px;
59+
border-radius: 4px;
60+
cursor: pointer;
61+
font-size: 12px;
62+
font-weight: 600;
63+
white-space: nowrap;
64+
}
65+
.p7-step-next:hover {
66+
background: rgba(0,0,0,0.06);
67+
}
68+
5369

5470
/* Header styles live in ChatHeader.css. Compose styles live in Compose.css. */
5571

src/components/StageView.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,22 @@
250250
flex-shrink: 0;
251251
}
252252

253+
.sv-rail-step-next-btn {
254+
flex-shrink: 0;
255+
background: transparent;
256+
border: 1px solid #b8860b;
257+
color: #4a3000;
258+
padding: 2px 9px;
259+
border-radius: 4px;
260+
cursor: pointer;
261+
font-size: 11px;
262+
font-weight: 600;
263+
white-space: nowrap;
264+
}
265+
.sv-rail-step-next-btn:hover {
266+
background: rgba(0,0,0,0.06);
267+
}
268+
253269
.sv-rail-messages {
254270
flex: 1;
255271
overflow-y: auto;

src/components/StageView.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ export default function StageView({ version = 'v1', onVersionChange, beat, onBea
251251
// It lags behind `version` to allow the update animation to play first.
252252
const [displayVersion, setDisplayVersion] = useState('v1')
253253
const [bannerState, setBannerState] = useState(null) // null | 'updating' | 'done'
254-
const [updateComplete, setUpdateComplete] = useState(false)
255254
const prevVersionRef = useRef(version)
256255

257256
useEffect(() => {
@@ -261,7 +260,6 @@ export default function StageView({ version = 'v1', onVersionChange, beat, onBea
261260
const applyTimer = setTimeout(() => {
262261
setDisplayVersion(version)
263262
setBannerState('done')
264-
setUpdateComplete(true)
265263
onUpdateComplete?.()
266264
const clearTimer = setTimeout(() => setBannerState(null), 2200)
267265
return () => clearTimeout(clearTimer)

0 commit comments

Comments
 (0)