Add additional actions to CommentThread#162750
Conversation
There was a problem hiding this comment.
Thanks for the PR! This is looking good. I'm seeing some bad alignment of the actions row:



I also don't really like the separator, but I'd like to get @daviddossett's opinion on that.
src/vs/workbench/services/actions/common/menusExtensionPoint.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.ts
Outdated
Show resolved
Hide resolved
|
Thank you very much for the review!
I tried to simply fix the problem with the bottom offsetting but it seems to me that there is a bigger problem in play & that is that the height calculation does not fullly align with the actual container height. This problem seems to occur in the actual version with replys as well. See below that the different amount of replys causes different offsets at the bottom (caused by the height calculation). So I would suggest we open a bug for that and treat it as a separate issue.
The main reasoning for this from my point of view, is the clear separation between the actions connected to the Reply area & the CommentThread. Once the reply area is opened and reply buttons are shown, without the clear visual separation it may be a bit confusing for the users (And may look a bit like a broken view). The main question here is -> do you not like the Idea of the separator? or just the actual styling? One last question at the end from me This PR expects that the first button would be shown as primary. Do we want to change it to show all buttons in this row as secondary (reffering to the conversation in the parent issue) ? As there already will be a primary button attached in the Reply area, which would go against the UX guidelines to some extent. |
There was a problem hiding this comment.
The main question here is -> do you not like the Idea of the separator? or just the actual styling?
It's the syling I don't like, but we can figure that out outside of this PR.
Do we want to change it to show all buttons in this row as secondary (reffering to the conversation in the parent issue) ?
Yes, let's make all the additional actions buttons secondary.
Thank you for all the other changes, they look good! We'll do a UX review this week and once that (and the secondary button change is done) we should be good to merge this.
|
|
||
| .monaco-button-dropdown > .monaco-button.monaco-dropdown-button { | ||
| border-left-width: 0 !important; | ||
| border-radius: 0 2px 2px 0; |
There was a problem hiding this comment.
@lszomoru, I think with the changes in this file you can get rid of the border-radius in https://github.com/marrej/vscode/blob/f7e26dffdc2f78e8fb75610e5950791016ffcf74/src/vs/workbench/contrib/scm/browser/media/scm.css#L290-L293 and also https://github.com/marrej/vscode/blob/f7e26dffdc2f78e8fb75610e5950791016ffcf74/src/vs/workbench/contrib/scm/browser/media/scm.css#L295-L296
alexr00
left a comment
There was a problem hiding this comment.
Looks good, thanks for the PR!
|
@marrej we reviewed the additional actions UX yesterday and will not be supporting the split button. Please see #163281 (comment) for the whole context. I'll merge this PR then remove the split button components. |







This PR proposes extension defined additional actions for Comment Threads. (See image below for reference).

To allow extensions to define additionalActions which are always visible in the CommentThread, a new area has been defined, right under the
commentReply. This area contains separator & extension defined actions.Extensions can defined both single commands and submenus.
Submenus will be rendered as Dropdown buttons, where the first action in the submenu will be treated as the primary action - due to the submenus not carrying Command.
If submenu contains only 1 action, then a single button will be created instead of dropdown button.
In case of no action attached to submenu, the submenu action would be displayed.
NOTE: if there are doubts about
AdditionalActionsbeing the correct name for this new area, we should change it.CommentThreadBodyunder theCommentReplypartially fixes #156885
fixes #163281