News for hackers. Stuff that matters.
Re:Ask HN: Which tools/services have your favorite UI/UX? by mr_cyborg on Tuesday May 25, 2021 @12:09PM (#27278641)
I’m a big fan of how GitLab approaches things. Their design library is a tremendous resource: https://design.gitlab.com/
Re:Ask HN: Which tools/services have your favorite UI/UX? by JMTQp8lwXL on Tuesday May 25, 2021 @12:48PM (#27279169)
I've found GitLab as a product to be more difficult to use than GitHub. The pages seem more dense with lots of color, many more actions: they just feel busy. Basic features, like getting a permalink to a line of code, take 3-4 clicks in GitLab, when it's just 1 in GitHub.
Re:Ask HN: Which tools/services have your favorite UI/UX? by tirpen on Tuesday May 25, 2021 @01:20PM (#27279602)
> Basic features, like getting a permalink to a line of code, take 3-4 clicks in GitLab, when it's just 1 in GitHub

That doesn't seem right.

In Gitlab: Right click the line number, choose Copy Link in the context menu. Two clicks.

In Github: Click the line, click the three dots, then click "Copy permalink". Three clicks. Alternatively, click the line, click the URL bar (or press F6 or ^L) copy the link. Still Three clicks.

What's the one-click method in GitHub I'm missing?

Re:Ask HN: Which tools/services have your favorite UI/UX? by JMTQp8lwXL on Tuesday May 25, 2021 @01:49PM (#27279941)
What's different is you get functionally different links. GitLab aliases to the branch name, not the commit hash. So it isn't really a "permanent" link to a line of code. It's whatever happens to be on line N in file X on branch Y at time T, whenever you open the link. This is inconvenient when I might find an old link in an engineering Slack thread, referencing something now much different since the file was amended over time. In fact, the file may not even exist anymore.

GitHub, by default, includes the commit hash. So the line of code will be the same at any point in the future: the file, at that line number, with that commit hash, is immutable (unless developers force push history rewrites, but you get my broader point).

Re:Ask HN: Which tools/services have your favorite UI/UX? by john_cogs on Tuesday May 25, 2021 @01:59PM (#27280088)
To do this in GitLab, click the permalink button before copying the line.
Re:Ask HN: Which tools/services have your favorite UI/UX? by john_cogs on Tuesday May 25, 2021 @01:33PM (#27279772)
I'm going to share the feedback on page density, colors, and actions with our team.

To copy a link to a line of code, you can hover over the number next to the line of code and then copy a link to that line.

I created a gif to show what I mean: https://gitlab.com/johncoghlan/blog/-/raw/master/images/perm...

Re:Ask HN: Which tools/services have your favorite UI/UX? by kyriakos on Tuesday May 25, 2021 @11:58PM (#27286135)
Coming from bitbucket I find gitlab design too busy as well and missing some basic obvious functionality which could be there but it's not intuitive. For example, when viewing a merge request I can't find a way to copy the target branch name.
Re:Ask HN: Which tools/services have your favorite UI/UX? by gnomespaceship on Wednesday May 26, 2021 @05:22AM (#27288159)
Hi! You can copy the branch name at the bottom of the right sidebar with one click: https://i.imgur.com/O3StMBA.png

Or in the merge request widget, below the description: https://i.imgur.com/V72v9jj.png

Re:Ask HN: Which tools/services have your favorite UI/UX? by kyriakos on Wednesday May 26, 2021 @09:13AM (#27290062)
that's the source branch. I am looking for a way to copy the target/destination branch name.