Environment External URL should be rendered as a link for HTTP(S) schems only
Problem
In the Invalid environment external_url disturbs the entire environment update process issue, we've changed to soft validation on External URL field of Environments. Because of this, users can flexibility set an URL, such as custom schema postgresql://gitlab.com
. This should not be rendered as a link as it can't be opened in a browser.
Proposal
- If it's HTTP(S) schema e.g.
https://gitlab.com
, UI renders the URL as a link. This feature already exists in bunch of places (See !91970 (merged)). - If it's other schema e.g.
postgresql://gitlab.com
:- UI renders clipboard-copy button to copy the value. So that users can see the value without opening in browser.
Edited by Rayana Verissimo