Move commit flow of single file editor into a modal
Proposal
Based on non-confidential info from https://gitlab.com/groups/gitlab-org/-/epics/9933+
When deleting a file or updating a file it results in a commit, so we can consolidate the flow into a "Commit changes" modal.
- Introduce radio options
- Legend: "Branch"
- First option
- Commit to current branch:
branch-name
- Commit to current branch:
- Second option
- Create a new branch and a new merge request
- Text input will capture name of new branch
The difference in the delete flow vs update flow is that the commit message has the wording "Delete filename" and "Update filename".
Before | After | |
---|---|---|
Delete file | ![]() |
![]() |
Edit file | ![]() |
![]() |
Modal states
Default | New branch and new merge request |
---|---|
![]() |
![]() |
Edited by Michael Le