Improve waitlist submitted state - #296
Conversation
|
@SeanCordovaGit bounty.new is in early access. Link your GitHub account at https://bounty.new/integrations to get started. |
|
@SeanCordovaGit is attempting to deploy a commit to the Bounty Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds SSR-safe localStorage guards, persists an optional waitlist position returned by the API into stored cookie data, exposes hydrated ChangesWaitlist Success UI Redesign
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/web/src/components/landing/waitlist-demo.tsx`:
- Around line 201-210: The Position UI is showing the live waitlistCount instead
of the user's fixed spot; update the joinWaitlist onSuccess handler to capture
the returned position from the mutation, extend the WaitlistCookieData type to
include position, persist that position in the cookie (alongside
submitted/timestamp/email), and change the Position render (NumberFlow value) to
prefer the stored cookie position (fallback to waitlistCount if none). Locate
references to waitlistCount, joinWaitlist/onSuccess, WaitlistCookieData, and
NumberFlow to implement these changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 08a6ecea-73d7-4968-ba06-ac22660acbbe
📒 Files selected for processing (1)
apps/web/src/components/landing/waitlist-demo.tsx
BOUNTY.NEW
Summary
Bounty
Closes #231
Validation
bunx ultracite format apps/web/src/components/landing/waitlist-demo.tsxbunx ultracite lint apps/web/src/components/landing/waitlist-demo.tsxhttp://localhost:3000and verified the submitted state DOM containsSubmitted,You're on the list, andConfirmed.Notes
bun check:webcurrently fails on pre-existing@bounty/uipath/type errors documented inAGENTS.md; this change is limited to the landing waitlist demo component.Summary by CodeRabbit
UI/UX Improvements
Bug Fixes