fix(ui): revalidate request list after approving or declining a request#3283
fix(ui): revalidate request list after approving or declining a request#3283aaamoeder wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAfter a successful request modification, ChangesRequest modification flow
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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 |
Description
When approving or declining a request from the request list, only the individual request item and the request counts are revalidated — the list itself is not. With the default "Pending" filter active, the approved/declined request therefore stays visible in the list until a full page refresh.
The delete actions in the same component (
deleteRequest,deleteMediaFile) already callrevalidateList()after their API call;modifyRequestdoes not. This PR adds that call tomodifyRequestso the list updates immediately after approving or declining, consistent with the existing delete behavior.I could not find an open issue for this; it is reproducible on 3.3.0 and current
develop.How Has This Been Tested?
pnpm buildsucceeds.pnpm i18n:extractproduces no changes (no new translation keys).Screenshots / Logs (if applicable)
N/A — one-line behavioral fix.
Checklist:
pnpm buildpnpm i18n:extractAI Disclosure: This fix was identified and authored with AI assistance (Claude Code). I reviewed the one-line change myself and verified the resulting behavior on my own live instance before submitting.
Summary by CodeRabbit