Skip to content

Conversation

yashjawale
Copy link
Contributor

@yashjawale yashjawale commented Aug 28, 2025

What?

Closes #71377

This PR tries to resolve issue of not being able to pin the comments sidebar after unpinning it once

Previously, once the sidebar was unpinned, the icon/button disappeared from the toolbar and there was no intuitive way to restore it.

Why?

Pinning the Comments sidebar is a user setting and should be easily reversible.

How?

Interactions which open the Comments sidebar now activates pinnable sidebar

This ensures that the star button remains available for user to pin comment sidebar

Testing Instructions

  1. Open a post or page in the editor.
  2. Ensure there are comments or add a block comment.
  3. Pin the Comments sidebar using the star icon.
  4. Unpin the Comments sidebar.
  5. Interact with a block comment or use the comment toolbar button to open the sidebar.
  6. Confirm the Comments icon/button reappears in the toolbar and can be pinned again.

Screenshots or screencast

Screen.Recording.2025-08-29.at.4.26.10.PM.mov

@yashjawale yashjawale changed the title trial: remove double sidebars & use just one to see if the issue is f… [WIP] Fix: Unable to pin comment sidebar after unpinning Aug 28, 2025
@yashjawale yashjawale marked this pull request as ready for review August 29, 2025 11:05
@yashjawale yashjawale changed the title [WIP] Fix: Unable to pin comment sidebar after unpinning Fix: Unable to pin comment sidebar after unpinning Aug 29, 2025
Copy link

github-actions bot commented Aug 29, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: yashjawale <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: adamsilverstein <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka Mamaduka added [Type] Bug An existing feature does not function as intended Collaborative Workflows Phase 3 of the Gutenberg roadmap around all-things related to collaborative workflows labels Sep 9, 2025
@Mamaduka
Copy link
Member

Mamaduka commented Sep 9, 2025

@yashjawale, can you rebase this branch on top of the latest trunk? That should resolve CI checks.

@yashjawale
Copy link
Contributor Author

yashjawale commented Sep 9, 2025

Apologies to everyone for pings 🙇‍♂️🙇‍♂️
I thought rebasing would be better but didn't know it would cause this... sticking to merge in the future 🥲

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @yashjawale!

The fix works as expected ✅

@Mamaduka Mamaduka merged commit 5a5c67c into WordPress:trunk Sep 9, 2025
185 of 190 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.7 milestone Sep 9, 2025
talldan pushed a commit that referenced this pull request Sep 10, 2025
…1386)

Co-authored-by: yashjawale <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: adamsilverstein <[email protected]>
adamsilverstein added a commit to adamsilverstein/gutenberg that referenced this pull request Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Collaborative Workflows Phase 3 of the Gutenberg roadmap around all-things related to collaborative workflows [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to pin comment sidebar after unpinning
2 participants