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

Connnect gutenberg widgets screen to widget area endpoints #15779

Conversation

jorgefilipecosta
Copy link
Member

This PR adds a store to keep the state in edit-widgets module, and connects the edit widgets screen to the widget-area endpoints being implemented in #15015.

It allows us to have PoC of the widget screen using blocks, covering the retrieving of legacy widgets, showing them and migrating the structure to blocks.

Legacy widgets are not working as expected because we have a bug on the widgets screen. The attributes of server-side rendered blocks are not correctly parsed in this screen.
If we paste wp.blocks.parse(''); on the console while the editor is open the attributes are correctly parsed on the gutenberg-widgets screen the attributes are not parsed.

This PR was discussed and approved in #15074. But I merged it to the wrong branch, as there is no way to reopen a merged PR I'm creating a second PR.

@jorgefilipecosta jorgefilipecosta added [Type] Task Issues or PRs that have been broken down into an individual action to take [Feature] Widgets Screen The block-based screen that replaced widgets.php. labels May 22, 2019
@jorgefilipecosta jorgefilipecosta merged commit f1bbc00 into master May 22, 2019
@jorgefilipecosta jorgefilipecosta deleted the try/connetc-gutenberg-widgets-screen-to-widget-area-endpoints branch May 22, 2019 15:36
@youknowriad youknowriad added this to the 5.8 (Gutenberg) milestone May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants