Skip to content

Consolidate snoozing commponents

What does this MR do and why?

This consolidates the snoozing functionality into a single component that handles snoozing and un-snoozing to-do items. This ensures the logic is better encapsulated.

This also fixes a bug where todo counts would not update after snoozing a to-do item.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

counter_sync

How to set up and validate locally

  1. Enable the todos_snoozing feature flag: http://gdk.test:3000/rails/features/todos_snoozing / https://gdk.test:3443/rails/features/todos_snoozing.
  2. Navigate to the todos dashboard: https://gdk.test:3443/dashboard/todos.
    • When snoozing a to-do, the counter in the To Do tab should get updated.

Related to #17712

Edited by Paul Gascou-Vaillancourt

Merge request reports

Loading