Skip to content

new layout for project empty page

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

This MR fixes #469510 and #469506 by reworking the layout of the page for empty new projects. It adds tabs for switching easily between local / global for git identity config and between HTTPS / SSH for git remote config.

Screenshots or screen recordings

Before After
image image
image

How to set up and validate locally

Start the GDK with the changes and test the layout

Remarks

  • I split the content of the tabs in dedicated files because I didn't find how to put everything in the same file. If there is the way to do so I can merge all back into the original file.
  • I added other documentation links than those proposed in the issues, to cover all cases and to give more general context (e.g. learn to use git). I wasn't able to find general documentation of git remote config, but if there is some available it could be nice to add it too. I also think this SSH doc can be nice to add, but it is not difficult to reach from the SSH doc already present in the MR (this one)
  • This proposition does not adapt the tabs if HTTPS or SSH git push is disabled on the GitLab instance. That makes the documentation innacurate for these cases and may bring strange behavior. It can be adapted but needs a little more development time. Depending on the feedback I can either implement it here or in another MR.
  • Checking all the options that the "Clone" button supports, I discovered the GitLab support for xcode (I don't even know what it is). It may be nice to add instructions for xcode as well if they are available and relevant.
  • Most of the new strings in this MR are mine, inspired from suggestions inside related issues and the general GitLab feel. Happy to take feedback on these.
  • As this MR is a complete rework of the page look it can be split in several MRs for clarity if needed, once everyone has agreed on the changes.
  • Technically GitLab support HTTP or HTTPS, I can either leave HTTPS because it should be the default anyway, use "HTTP(S)" everywhere or find some way to detect is HTTPS is enabled and adapt accordingly. WDYT?
  • I worked with the header sizes to stay near what was done before (h4 and h5), if that's not correct I can correct (@mle).
  • I a forgot a point that was mentionned in the issues, please tell me and I'll add it here.

/cc @mle @msedlakjakubowski @psjakubowska @slejeune

Edited by Quentin MICHAUD

Merge request reports