Skip to content
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

Add custom save button #24

Merged
merged 24 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1775d23
Minor text change on settings page
alecgeatches Aug 20, 2024
0d707c9
Add WIP code, using "Custom Save" sidebar button styled to look like …
alecgeatches Aug 20, 2024
cdeeb88
Add example "plugin sidebar button" that doesn't open a sidebar. For …
alecgeatches Aug 20, 2024
6c19267
Minor variable refactoring
alecgeatches Aug 20, 2024
bfc2f0b
Add useInterceptPluginSidebar and useInterceptActionDispatch hooks fo…
alecgeatches Aug 22, 2024
09344c9
Fix `useInterceptActionDispatch()` callback issues by providing a sta…
alecgeatches Aug 26, 2024
10e81a3
Comment clairifications to `useInterceptActionDispatch()`
alecgeatches Aug 26, 2024
04ff180
Update `useInterceptPluginSidebar()` to handle only delegate disable …
alecgeatches Aug 27, 2024
3f943ca
Remove native save button when in workflow states. Make direct post s…
alecgeatches Aug 27, 2024
48ce8a7
Do not show custom button before initial save
alecgeatches Aug 27, 2024
cf0d3c4
Split sidebar into separate component, combine into a single register…
alecgeatches Aug 27, 2024
7be689b
Remove :has() CSS pseudo-class in favor of aria-controls selector
alecgeatches Aug 27, 2024
699e3fd
General component refactoring, comment additions, component renaming
alecgeatches Aug 28, 2024
850d1f0
Ensure custom save button is only enabled with "Publish Guard" feature
alecgeatches Aug 28, 2024
82de303
Add descriptions to settings fields
alecgeatches Aug 28, 2024
9192768
When using the debug "edit" button in the sidebar, immediately update…
alecgeatches Aug 28, 2024
f932997
Wait until post has saved to update button text, use disabled state w…
alecgeatches Aug 28, 2024
29c5918
Truncate "Move to" button status on smaller viewport sizes
alecgeatches Aug 28, 2024
acee05f
Fix eslint errors
alecgeatches Aug 28, 2024
2245de7
Merge branch 'trunk' into add/custom-save-button
alecgeatches Aug 28, 2024
047bcce
More safely test `enableComplementaryArea` arguments
alecgeatches Aug 29, 2024
240034c
Add ToDo, use `term` instead of `t` for mapped variable
alecgeatches Aug 29, 2024
a70ec58
Allow custom save button to exist alongside real save button when pub…
alecgeatches Aug 29, 2024
a1b5086
Add help text below manually-editable status section
alecgeatches Aug 29, 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
2 changes: 1 addition & 1 deletion dist/modules/custom-status/custom-status-block-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modules/custom-status/custom-status-block.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-i18n', 'wp-plugins'), 'version' => '0f355dd1b07b0c9993cf');
<?php return array('dependencies' => array('react', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-preferences'), 'version' => '39ed7770a96307847df4');
2 changes: 1 addition & 1 deletion dist/modules/custom-status/custom-status-block.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion dist/modules/custom-status/custom-status-block.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/modules/custom-status/util.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => '33078016c5e1e9f07c35');
1 change: 1 addition & 0 deletions dist/modules/custom-status/util.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(()=>{"use strict"})();
2 changes: 1 addition & 1 deletion dist/modules/preview/preview-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading