Optimize todo widget refetch behavior for homepage consistency
What does this MR do and why?
Optimize todo widget refetch behavior for homepage performance
Add similar event handling for todo actions based on context, currently there was a mismatch:
- Regular page: Skip refetch on snooze to maintain UI responsiveness
- Regular page: Immediate refetch on mark-done for instant feedback
- Homepage: Refetch on all actions for consistency
This MR ensures there's consistency in UX for both pages.
References
Closes: #567688 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
| Screen_Recording_2025-09-14_at_3.33.59_PM | Screen_Recording_2025-09-14_at_3.28.28_PM |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Example:
- Feature.enable(:personal_homepage, User.first)
- Visit homepage,
localhost:3000 - Snooze and mark as done for todo
- When snoozing, it won't go away
- when marking as done, it will refetch.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Anas Shahid