fix: narrow YieldExplainers action prop type to remove unused claim variant#12073
fix: narrow YieldExplainers action prop type to remove unused claim variant#12073
Conversation
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
🧪 QA ReportChanges Reviewed
Code Review ✅
Testing Required
VerdictApproved. CI passes ✅ No runtime impact. |
🤖 QABot Report (2026-03-03)Testing completed. See dashboard for full results. 📊 Dashboard: |
NeOMakinG
left a comment
There was a problem hiding this comment.
QABot Code Review ✅
Summary: Type narrowing is correct and verified.
Analysis:
YieldExplainerscomponent is only rendered when!isManageActionisManageAction = isClaimAction || isWithdrawAction- Therefore,
YieldExplainersis never called with'claim'or'withdraw' - Removing unused
'claim'variant is correct
Risk: None - type-only change with no runtime impact.
Already has QABot test: https://qabot-kappa.vercel.app/runs/8db66f0a-18b6-4eb9-89cd-f65375c53fa7
Description
Narrows the YieldExplainers action prop type to remove unused
claimvariant.Changes
'enter' | 'exit' | 'claim'to'enter' | 'exit'Testing
Type-only change - no runtime behavior change. CI build verification.
QA Report ✅
Tested: 2026-03-03
Tester: QABot (CI Verification)
Branch: fix/11824-yield-explainers-type
Test Results
claimvariantVerification
Verified code change removes unused
claimfrom action union type. CI static checks (TypeScript + lint) passed.QABot Report: https://qabot-kappa.vercel.app/runs/8db66f0a-18b6-4eb9-89cd-f65375c53fa7