-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fix lander rewards to be group scoped #2912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughConsolidated rewards and discount retrieval into getGroupRewardsAndDiscount within the lander preview, replaced RewardsDiscountsPreview with direct LanderRewards usage, adjusted props and layout to pass rewards and discount consistently, and removed the obsolete rewards-discounts-preview component. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant LP as LanderPreview
participant S as getGroupRewardsAndDiscount
participant LR as LanderRewards
U->>LP: Open lander preview
LP->>S: Fetch {rewards, discount} for group
S-->>LP: {rewards, discount}
LP->>LR: Render with rewards, discount
LR-->>U: Display rewards & discount
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code graph analysis (1)apps/web/ui/partners/groups/design/previews/lander-preview.tsx (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (4)
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 |
Summary by CodeRabbit
Refactor
Chores