CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Block comments: Add the ability to reopen resolved comments #71250
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
Block comments: Add the ability to reopen resolved comments #71250
Conversation
β¦nstead of using onCommentResolve
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yashjawale, this is functionally working great! I'm curious if the use of the undo icon was taken from any designs for this feature that you were referencing or if it was just an implementation decision?
I'd be interested in moving the UI to reopen the comments to the DropdownMenu
rather than showing a button to reopen closed comments.
@joemcgill the undo icon was just an implementation decision Yeah moving the UI to ![]() |
Updated to move Reopen option inside Options displayed: Screen.Recording.2025-08-21.at.11.39.14.AM.mov |
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
This is looking good @yashjawale - thanks for working on this and posting the screencasts. Some feedback (see also my comment on the issue):
|
Updates to the PR...
Screen.Recording.2025-08-25.at.6.30.06.PM.mov |
Thanks for the screencast @yashjawale - functionally that looks great! I will give it a test and a code review soon. I noticed in your screencast and in my testing that it is possible to leave a comment on an empty block. This behavior feels a little buggy to me, I will open a separate issue to discuss this with the wider group. One other odd behavior worth discussing more that I saw was splitting a text block with a comment (by hitting enter) makes that comment apply to both blocks. It should probably only apply to the first block. This issue could still happen text fragment commenting - by hitting enter in the middle of a commented string. |
Yes I'm able to replicate the behavior of splitting the text block on my side too imo keeping the comment to just first block makes more sense |
I agree, but could be swayed either way. I left a comment on the parent issue to start. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/editor/src/components/collab-sidebar/comment-quick-reply.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
After resolving conflicts, I think we can also remove these styles, as we added a size prop to the button.
Updated β |
What?
Closes #71242
This PR adds the ability to reopen the resolved block comments
Why?
Currently in the experimental block level commenting feature does not allow a resolved comment to be reopened once it is marked as resolved, nor can any additional comments be added to that block.
How?
Now instead of showing a unclickable checkmark icon, resolved comments show a "Undo" icon button instead for reopening the comment
Testing Instructions
Screenshots or screencast
Before
Screen.Recording.2025-08-20.at.1.12.11.PM.mov
After
Screen.Recording.2025-08-20.at.1.13.16.PM.mov