You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Challenges: agent window sequence and Revenue AI tab progress follow the prototype #319
#212 (PRD: website redesign v2, delivery steps J1 to J6)
Context
Each challenge page has an AI bridge section with an agent window (app/components/challenges/agent-window.tsx). The Revenue AI day scenes reuse it. In the prototype (pw-* classes in every enjeux-*.html page of the prototype repo), the window plays a short sequence when it enters the viewport. In production it shows its final state at once.
Prototype sequence, once the window is in view:
Three typing dots bounce (hwDot, 1s loop, staggered by 0.15s), then hide after 0.9s (hwHide).
The message lines fade and slide up into place (pw-s: opacity and 5px translate, 0.4s).
Score bars fill from the left (iw-bar2, pw-score: scaleX 0 to 1).
Hovering the window lifts it by 4px with a deeper shadow.
On the Revenue AI day (challenge-ai-day.tsx), each tab change replays the sequence for the new scene. Each tab also shows the progress bar of the prototype (dyProg: fills over the tab duration).
Reduced motion: final state at once, no typing dots, no progress fill.
Server-rendered HTML keeps the full text, so the content does not depend on JavaScript.
Acceptance criteria
On the six challenge pages, the agent window plays the sequence once in view. Checked against the prototype on the Vercel preview.
On Revenue AI, each tab replays the sequence and shows its progress bar.
With reduced motion on, the window shows its final state and nothing moves.
The full text is in the server-rendered HTML.
pnpm typecheck, pnpm check and pnpm test:run pass.
Activity