rybak / copy-commit-reference-userscript

Userscripts to add a "Copy commit reference" button to commit pages of Git hosting providers.
https://greasyfork.org/en/scripts?set=588773
GNU Affero General Public License v3.0
2 stars 0 forks source link

GitHub: design change idea #3

Closed rybak closed 1 year ago

rybak commented 1 year ago

Context

There are three components to the commit reference: hash, subject, and date. On GitHub, two of the are at the bottom of the commit's view (date and hash), and one is at the top (subject). On GitHub, as of version 0.8-alpha, the userscript puts the button (technically) in the bottom left corner, next to author information, which includes the date. The commit's hash is in the bottom right corner, next to a link to the parent commit.

Putting the button on the left (but not necessarily at the bottom) also mimics GitHub's own "Copy path to the file" button:

image

Idea

What if the button was on the left of the subject, next to the "Browse files" button?

Screenshot_20230816 GitHub idea

rybak commented 1 year ago

I'm trying out this design, with button in the top right corner, for Gitea implementation:

image

Screenshot of https://git.plastiras.org/Tha_14/Antidote/commit/f84a08f1ac5312acc9ccedff25e6957e575f03ff

rybak commented 1 year ago

Demo

On a regular commit page:

image

On a commit page in a PR:

image

TODO