Split "comment type" dropdown into a new component
What does this MR do?
This MR splits the "comment type" dropdown into its own separate component which can be re-used on the Snippets and Commit page discussion implementations (part of #241800 (closed))
Screenshots or Screencasts (strongly suggested)
How to setup and validate locally (strongly suggested)
Example below:
- Check out this branch locally
- Visit a merge request, issue, or epic
- Type some text into the comment form
- Validate that the dropdown to select "Comment" or "Start thread" works properly.
- It opens and resembles the screenshot above
- Clicking either option changes the button text
- Clicking the button performs the desired action
Does this MR meet the acceptance criteria?
Conformity
-
I have included changelog trailers, or none are needed. (Does this MR need a changelog?) -
I have added/updated documentation, or it's not needed. (Is documentation required?) -
I have self-reviewed this MR per code review guidelines. -
This MR does not harm performance, or I have asked a reviewer to help assess the performance impact. (Merge request performance guidelines) -
I have followed the style guides. -
This change is backwards compatible across updates, or this does not apply.
Availability and Testing
This change poses little risk, it is mostly shuffling things around. No new feature is added or removed and if it works as it should there should be no changes to the user experience whatsoever.
Tests have been added and updated where appropriate.
-
I have added/updated tests following the Testing Guide, or it's not needed. (Consider all test levels. See the Test Planning Process.) -
I have tested this MR in all supported browsers, or it's not needed.
Edited by Mike Greiling