Skip to content

Comments

Fix/campaign donation refresh#590

Merged
Ebube111 merged 2 commits intostagingfrom
fix/campaign-donation-refresh
Feb 17, 2026
Merged

Fix/campaign donation refresh#590
Ebube111 merged 2 commits intostagingfrom
fix/campaign-donation-refresh

Conversation

@aunali8812
Copy link
Collaborator

@aunali8812 aunali8812 commented Feb 16, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Improved data consistency by ensuring campaign information refreshes reliably after donations are processed.

@aunali8812 aunali8812 requested a review from Ebube111 as a code owner February 16, 2026 18:04
@vercel
Copy link

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
potlock-next-app Ready Ready Preview, Comment Feb 16, 2026 6:05pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 16, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

Introduces a cache invalidation helper function that uses SWR's mutate API to clear campaign-related cache after successful donation transactions. The helper is invoked on both standard and Ft donation completion paths to ensure campaign data freshness.

Changes

Cohort / File(s) Summary
Cache Invalidation Helper
src/features/donation/models/effects/index.ts
Added revalidateCampaignData(campaignId) utility function that invalidates SWR cache keys for useCampaign and useCampaignDonations. Integrated calls after successful donations (both Ft and non-Ft paths) to trigger cache revalidation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A helper hops in, so spry and so neat,
Cache keys now dancing to invalidation's beat,
Fresh data springs forth when donations are done,
SWR mutations making fundraising fun!

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix/campaign donation refresh' clearly and concisely describes the main change: implementing cache refresh functionality for campaign donations after mutations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into staging

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/campaign-donation-refresh

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Ebube111 Ebube111 merged commit 4d21777 into staging Feb 17, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants