UX is improved for Git repository URL input of mirroring repositories feature
Summary
During the creation of a mirror repository connection between GitLab (pushes) and GitHub (pulls), I experienced a few usability problems (see #345437 (closed), #345447 (closed) — this one, #345449 (closed)).
One of them — poor UX of "Git repository URL" input. It is not quite clear what I am doing wrong typing the URL of my Git repository as the warning message says nothing about what I did wrong.
See the information below.
Steps to reproduce
- Open the section "Settings -> Repository" of any of your projects
- Expand section "Mirroring repositories"
- Type into "Git repository URL" input one of the given strings:
ssh://github.com:stok-solutions/stok.git
ssh://pihanya@github.com:stok-solutions/stok.git
ssh://git@github.com:stok-solutions/stok.git
ssh://github.com:stok-solutions/stok
ssh://pihanya@github.com:stok-solutions/stok
- Push the
Detect host keys
button
Example Project
Links to projects that mirroring done with:
What is the current bug behavior?
The warning message Invalid URL
is shown in the page header.
What is the expected correct behavior?
Some more meaningful warning message is shown instead.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
I am still not sure what I am doing wrong, so it is not possible for me to provide exact messages that you can use for the replacement of Invalid URL
warning message.
But I suggest improving documentation in the Repository mirroring article.
It would be great if some correct examples are provided for the "Git repository URL" input field.
Even better if examples will be provided for all access types (https://
, ssh://
, git://
).