-
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
Tracking: Style Revision UX Improvements #55776
Comments
Sorry, wrong issue. |
Note to self - looking into this, I think the following needs to occur:
Some untested pseudo code: import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
import { useMemo, useContext } from '@wordpress/element';
import { getBlockTypes } from '@wordpress/blocks';
import { unlock } from '../../lock-unlock';
const { GlobalStylesContext, getRevisionChanges } = unlock( blockEditorPrivateApis );
function foo() {
const { user: currentEditorGlobalStyles } =
useContext( GlobalStylesContext );
const blockNames = useMemo( () => {
const blockTypes = getBlockTypes();
return blockTypes.reduce( ( accumulator, { name, title } ) => {
accumulator[ name ] = title;
return accumulator;
}, {} );
}, [] );
const changeDescription = getRevisionChanges(
currentEditorGlobalStyles,
{},
blockNames
);
....
} |
👋 Hello team. Whats the update on this feature for WP 6.5? Is it likely to land and if so which features (as originally outlined in the roadmap) will make it. Thanks in advance 🙏 |
Thanks @getdave This issue can be closed off. The following, outstanding task is ongoing, but comprises a refactor only and I'd say not required for 6.5 All other relevant PRs attached to this issue have Core backport PRs already (well, one): |
I'm documenting some discussion around improvements to style revisions in the block editor. Specifically refinements to improve the UX and discoverability of the feature. These will be broken out as separate issues over time, but this can act as a tracking issue.
Future once these are done: #53484
Related
The text was updated successfully, but these errors were encountered: