Refresh relative due date display in task list - #3235
Conversation
The due date shown in the task list (e.g. "Today", "Yesterday") was computed once when the task item was rendered and never updated afterwards, since moment().calendar() defaults to the time at evaluation and Vue only recomputes when a tracked reactive dependency changes. If a task stayed on screen for a while (e.g. across midnight), the list kept showing a stale relative label while the sidebar, which re-mounts per task selection, showed the correct one. Track a periodically updated timestamp and pass it as the reference time to calendar(), so the computed properties stay reactive to the passage of time. Fixes nextcloud#3203 Signed-off-by: xhon-pelushi <xhon@pelushi.com>
d780f91 to
0cd54f2
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Summary
Today/Yesterday/ …) are recomputed on a timer so they stay in sync with the sidebar detail view.Fixes #3203
Test plan