Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
c7101cf
Adds basic action and modal to set page as homepage
creativecoder Sep 16, 2024
585ef01
Adds permissions and settings checks to set as homepage action
creativecoder Sep 16, 2024
41474da
Adds proper description and handles unpublished pages
creativecoder Sep 17, 2024
921d0f4
Adds action to set homepage to show latest posts
creativecoder Sep 18, 2024
23cefbd
Doesn't show action if there's a front-page template
creativecoder Sep 19, 2024
fb35be0
Creates page for posts, when specified
creativecoder Sep 19, 2024
5de983c
Refactors modal component
creativecoder Sep 30, 2024
0f3a986
Fixes issues from rebase
creativecoder Oct 1, 2024
1bdf2e0
Only show option on published pages
mikachan Oct 7, 2024
937ad00
Update snackbar wording
mikachan Oct 7, 2024
7df97a8
Check item exists before running getItemTitle logic
mikachan Oct 7, 2024
91a8275
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Oct 7, 2024
44feed5
Make key optional on GetEntityRecord
mikachan Oct 7, 2024
768f9cb
Remove some ts-ignore comments
mikachan Oct 7, 2024
a04fb70
Add support for page_for_posts to Settings
mikachan Oct 7, 2024
7462ce7
Remove some more ts-ignores
mikachan Oct 7, 2024
2d2c856
Allow recordId to be optional
mikachan Oct 7, 2024
8bbd86d
Increase size of action modal
mikachan Oct 8, 2024
6fc3490
Implement choose existing page option
mikachan Oct 8, 2024
341a068
Fix number/string comparison
mikachan Oct 8, 2024
b27305f
Add initial e2e test
mikachan Oct 9, 2024
b387c34
Set post actions modal to medium
mikachan Oct 9, 2024
2429d77
Tweak ToggleGroupControl help text
mikachan Oct 9, 2024
57eceb1
Fix initial test
mikachan Oct 9, 2024
49be2ab
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Oct 23, 2024
40568dc
Remove extra useSiteSettings hook
mikachan Oct 23, 2024
489f4d6
Allow setting draft pages to homepage
mikachan Oct 23, 2024
c36e3ac
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Oct 29, 2024
3cb07e9
Fix merge conflict
mikachan Oct 29, 2024
9a5f4d7
Remove item check from getItemTitle
mikachan Oct 31, 2024
c4bd9ae
Remove posts page options
mikachan Nov 8, 2024
46071d7
Don't show homepage option if selected page is the page for posts
mikachan Nov 8, 2024
42e0791
Reload actions list when site settings change
mikachan Nov 8, 2024
3434c3f
Update tests
mikachan Nov 8, 2024
e84a33e
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Nov 8, 2024
baea572
Remove call to __experimentalGetTemplateForLink
mikachan Nov 8, 2024
c413a17
Update tests
mikachan Nov 8, 2024
ba8becb
Remove item check in getItemTitle
mikachan Nov 12, 2024
7687e3c
Use useSelect instead of select
mikachan Nov 12, 2024
81b76f8
Remove PAGE_POST_TYPE constant
mikachan Nov 12, 2024
0ca96b0
Use saveEntityRecord instead of editEntityRecord
mikachan Nov 12, 2024
17754bd
Remove onSetLatestPostsHomepage option
mikachan Nov 12, 2024
e722ceb
Remove select for site settings from isEligible
mikachan Nov 12, 2024
91de6c0
Update post actions with site settings info
mikachan Nov 12, 2024
3c71533
Remove select for templates from isEligible
mikachan Nov 12, 2024
6b2f6b9
Skip last test for now
mikachan Nov 12, 2024
6a1f468
Restore whitespace
mikachan Nov 12, 2024
b81eb1c
Rename _select
mikachan Nov 13, 2024
6d36c1b
Remove sub-objects from additionalContext selectors
mikachan Nov 13, 2024
8b40105
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Nov 15, 2024
3caa096
Remove duplicate page_for_posts definition
mikachan Nov 15, 2024
d20b87b
Fix page/post type error
mikachan Nov 15, 2024
29a1f72
Remove additional groups within additionalContext
mikachan Nov 15, 2024
0c5883a
Fix siteSettings in TitleView
mikachan Nov 15, 2024
24dcf8f
Move hasFrontPageTemplate check to private-actions
mikachan Nov 15, 2024
095bbe3
Add JSDoc to setAsHomepage
mikachan Nov 15, 2024
991ac5c
Refactor siteSettings in post-list
mikachan Nov 15, 2024
f2acc94
Move homepage action to edit-site
mikachan Nov 15, 2024
969ed4a
Revert unnecessary changes
mikachan Nov 15, 2024
259a476
Move getItemTitle to edit-site utils
mikachan Nov 15, 2024
efbf96c
Allow undefined on GetEntityRecord key
mikachan Nov 15, 2024
9de4488
Make it more clear that draft page will be published
mikachan Nov 15, 2024
5cbe7b4
Update draft page wording
mikachan Nov 18, 2024
7a2960a
Add set homepage action to post editor
mikachan Nov 18, 2024
4d45eaf
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Nov 18, 2024
fb2ea4c
Attempt to fix build error
mikachan Nov 18, 2024
1a1f682
Remove homepage action from edit-site
mikachan Nov 18, 2024
c10846b
Remove extra line
mikachan Nov 18, 2024
5e5cf0c
Fix getting current homepage title
mikachan Nov 18, 2024
2b37368
Make key in getEntityRecord optional
mikachan Nov 18, 2024
43dd85f
Use getHomePage selector
mikachan Nov 18, 2024
4cd6988
Move canManageOptions and hasFrontPageTemplate to actions.js
mikachan Nov 18, 2024
b2e88eb
Make key optional in EntityRecordKey
mikachan Nov 19, 2024
953e999
Remove undefined from getEntityRecord calls
mikachan Nov 19, 2024
f01d347
Update packages/editor/src/components/post-actions/actions.js
mikachan Nov 20, 2024
d96e90e
Update getEntityRecord key docs
mikachan Nov 20, 2024
9685c3a
Refactor fetching currentHomePage
mikachan Nov 20, 2024
b029794
Disable modal buttons if saving
mikachan Nov 20, 2024
a9ea268
Store isPageDraft in useRef
mikachan Nov 20, 2024
e438496
Fix lint error
mikachan Nov 20, 2024
04a7ba4
Remove onActionPerformed
mikachan Nov 20, 2024
c97a17d
Fix current homepage test
mikachan Nov 20, 2024
0b8c27e
Remove duplicate getItemTitle function
mikachan Nov 21, 2024
f8df3b9
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Nov 21, 2024
a175adc
Update logic for shouldShowSetAsHomepageAction
mikachan Nov 22, 2024
86af09a
Swap order of list of actions
mikachan Nov 22, 2024
10d97b7
Add comment about manual saveEntityRecord call
mikachan Nov 22, 2024
c23c35b
Remove unnecessary space
mikachan Nov 22, 2024
b1707e4
Remove temporary modalButtonLabel variable
mikachan Nov 22, 2024
d6a7059
Combine draft and publish status tests
mikachan Nov 22, 2024
a696688
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Nov 22, 2024
6d01e34
Only allow action on pages with draft or publish status
mikachan Nov 25, 2024
18aeaf6
Remove handling of draft pages
mikachan Nov 25, 2024
d486bac
Merge branch 'trunk' into try/site-editor-homepage-settings
mikachan Nov 25, 2024
8bacdbb
Move closeModal into finally block
mikachan Nov 27, 2024
e1a7aa9
Refactor and remove renderModalBody
mikachan Nov 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore whitespace
  • Loading branch information
mikachan committed Nov 12, 2024
commit 6a1f468ab2ebd3e141cd6d4c2099dd9031f4742f
3 changes: 1 addition & 2 deletions packages/edit-site/src/components/post-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,9 @@ export default function PostList( { postType } ) {
context: 'list',
} );
const editAction = useEditPostAction();

const actions = useMemo(
() => [ editAction, ...postTypeActions ],
[ editAction, postTypeActions ]
[ postTypeActions, editAction ]
);

const additionalContext = useSelect( ( select ) => {
Expand Down