POC - User can create "Remind me to review content" task from post edit screen#405
POC - User can create "Remind me to review content" task from post edit screen#405
Conversation
|
Test on Playground |
|
EDIT: I see that's already done, so ignore previous comment |
|
I have merged development branch and made necessary changes, to sync this PR with the recent CPT refactor. @aristath , I have decided to use meta_query in order not to display tasks until they are available - since we fetch user tasks only on page load it looked like a simplest solution. Alternatively, we can use an |
|
Reminders should not be hardcoded to 30 days. User should be able to choose if they want a month, 3 months, 6 months, or a year. |
✅ Code Coverage Report
📊 File-level Coverage Changes (4 files)📉 Coverage Decreased
ℹ️ About this report
|
This is just a POC of what can be done now when we have refactored Todos into User tasks.
This PR adds a button on the Post edit screen which generates a new User (todo) task as reminder to review post content in 30 days. The task will not show up in the widget until 30 days pass.
For the purpose of this video I have changed the
available_atparam to betime()(without the extra 30 days), so task is visible immediately.Screen.Recording.2025-04-03.at.13.12.56.mov