-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Data Views: Add action for pages to set site homepage #65426
Conversation
ab1c828
to
0f3a986
Compare
Size Change: +734 B (+0.04%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
@creativecoder is this one ready for review? :) |
@jameskoster A few things that still need doing
I'm not sure when I'll be able to get back to this, so if anyone wants to pick this up--feel free! |
Thanks @creativecoder! I'm going to have a go at picking this up. I'll start by addressing the items you listed above, and then I'll mark as ready for review. |
Thanks again for all the continued feedback and help here ❤️ I'll summarise the latest changes since @oandregal's approval:
I'm really happy with the current state, so I'm hoping this is now ready for a final review 🤞 Thank you! |
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.
Thanks for all the changes. I feel this is really close
I've got some concerns about statuses and also noticed some more UI bugs.
# Conflicts: # packages/editor/src/components/post-actions/actions.js
@getdave Thanks for such a detailed review 🙏 I think I've addressed all your feedback, with the larger changes being:
|
👍 I'll re-review this. |
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.
Overall I think this is in good shape.
Left a few nits both nothing major.
Tested with slow network and all responding really well.
One thing I noticed is that it's not possible to "unset" the Page as the homepage. Not sure if that's planned or necessary but thought it might be worth mentioning for a followup.
Thanks for all the work to refine this 👏
Thanks for all the help with landing this 🙏 There are a couple of follow-ups that I think can be split by their priority. I think these are the highest priority, and roughly in this order:
And these are less urgent but still related:
I'm planning to start on the ones I've marked as the highest priority above soon. |
👋 I noticed a conflict with this PR while working on #65390. Should we move this action to the |
@gigitux not sure what the conflict is, but this conversation is worth looking at: action was intentionally left in editor for the moment. At that point of the review, it augmented the item with some data. When I approved it no longer did it but it still access some global state in the |
What?
Adds an action to set the home page from the site editor.
Fixes #63666
Why?
Currently there is no way to change the home setting (Settings > Reading) from the site editor. This PR adds a way to do that.
How?
Adds a dataview action for pages to set the page as the site homepage that can be triggered from the pages data view.
Testing Instructions
Screenshots or screencast