-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: 🐛 Add Reset
button for scheduled stories
#13471
Conversation
const floatingDate = | ||
['draft', 'pending', 'auto-draft'].includes(status) && | ||
['draft', 'pending', 'auto-draft', 'future'].includes(status) && | ||
(date === modified || date === null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this condition ever true for scheduled posts? I think a post with status future
will always have a non-null date, and the scheduled date will always be different from the modified date.
In other words, do we need this? Can we revert this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A story will be marked as future
whenever we schedule it. Thus, including it solved the issue!
Updating floatingDate
will display "Immediate"
label and show Reset
button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I guess if it works it works! :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect 🥳
Plugin builds for f50d7e2 are ready 🛎️!
|
Size Change: +7 B (0%) Total Size: 2.75 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm!
Summary
The goal of the PR is to show
Reset
button for scheduled stories.User-facing changes
With this PR,
Reset
button will be shown in calendar for the scheduled stories. Clicking on theReset
button will enable user to publish story immediately.Animated GIF:
Testing Instructions
This PR can be tested by following these steps described in the issue #13428.
Reviews
Does this PR have a security-related impact?
No.
Does this PR change what data or activity we track or use?
No.
Does this PR have a legal-related impact?
No.
Checklist
Type: XYZ
label to the PRFixes #13428