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

PluginSidebarMoreMenuItem component is not rendering anymore #67538

Closed
3 of 6 tasks
matiasbenedetto opened this issue Dec 3, 2024 · 2 comments · Fixed by #67557
Closed
3 of 6 tasks

PluginSidebarMoreMenuItem component is not rendering anymore #67538

matiasbenedetto opened this issue Dec 3, 2024 · 2 comments · Fixed by #67557
Assignees
Labels
[Package] Edit Site /packages/edit-site [Type] Bug An existing feature does not function as intended

Comments

@matiasbenedetto
Copy link
Contributor

matiasbenedetto commented Dec 3, 2024

Description

PluginSidebarMoreMenuItem component is not rendering anymore.
This is causing users to be unable to access the plugin's menu.

Step-by-step reproduction instructions

  1. Install and activate plugin using PluginSidebarMoreMenuItem to add a button like Create Block Theme plugin. Reference: https://github.com/WordPress/create-block-theme/blob/trunk/src/plugin-sidebar.js#L91-L100
  2. Browse the site editor and check that the plugin's button is not rendering with Gutenberg trunk.
  3. Switch to Gutenberg 19.7 (latest stable release) and observe that the button is rendering as expected.

Screenshots, screen recording, code snippet

Expected (Gutenberg 19.7) Actual (Gutenberg trunk)
Image Image

Environment info

  • WordPress 6.7.1
  • Gutenberg trunk

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@matiasbenedetto matiasbenedetto added the [Type] Bug An existing feature does not function as intended label Dec 3, 2024
@matiasbenedetto
Copy link
Contributor Author

matiasbenedetto commented Dec 3, 2024

I'm not 100% sure, but this issue could be caused by the changes added in #67162
cc. @youknowriad @ntsekouras

@matiasbenedetto
Copy link
Contributor Author

matiasbenedetto commented Dec 3, 2024

I'm confirming that #67162 causes this issue.
If you want to confirm that:

  • Install and activate 'Create Block Theme' plugin.
  • Checkout trunk branch in the last commit before merging Site Editor: Unify layout with posts dataviews #67162 (git checkout d02c4b4cec4923bb1d97327d997da4a9c8d7fe75)
  • Build Gutenberg npm run dev
  • Browser the site editor and observe the plugin button.
  • Checkout the commit where Site Editor: Unify layout with posts dataviews #67162 was merged into trunk: git checkout 758b750ee3347cba4f1d334d1ab378387657f837.
  • Build Gutenberg npm run dev
  • Browser the site editor and observe that the plugin plugin button is no longer there.

Commits timeline:
Image

@matiasbenedetto matiasbenedetto added the [Package] Edit Site /packages/edit-site label Dec 3, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Dec 4, 2024
@matiasbenedetto matiasbenedetto removed the [Status] In Progress Tracking issues with work in progress label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Edit Site /packages/edit-site [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants