Migrate Markdown buttons to the Source Editor toolbar
What does this MR do and why?
The MR moves the Markdown buttons from the original toolbar to the Source Editor toolbar. The change is protected with a feature flag.
Screenshots or screen recordings
Before | After | |
---|---|---|
Markdown file | ![]() |
![]() |
YML | ![]() |
![]() |
Javascript | ![]() |
![]() |
How to set up and validate locally
- Enable the feature flag locally in the Rails console (
rails c
):Feature.enable(:source_editor_toolbar)
- In the browser, go to a repository, open a markdown file and click "Edit" (not Web IDE, or GitPod)
- Note the updated toolbar.
- Play with the buttons to ensure they do what they are supposed to do. If in doubt, try editing (not committing) a markdown file on gitlab.com to see the expected behavior.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #352662 (closed)
Edited by Denys Mishunov