-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor UI tweaks #5980
Minor UI tweaks #5980
Conversation
As this is one of my first more in-depth PRs feel free to give me pointers along the way. One thing I had a question about was, do the maintainers want all of the changes in one PR, or spread out into 2 (or 3)? EDIT: Of course, my first run in with |
CI failed |
Based on your screenshots, I think your fork is not up to date with some recent changes (button styles), please rebase the branch against master. Regarding "New Pull Request" button, I'd say also remove the green color, making it plain grey. |
Good changes.
|
Codecov Report
@@ Coverage Diff @@
## master #5980 +/- ##
=========================================
Coverage ? 38.85%
=========================================
Files ? 352
Lines ? 50045
Branches ? 0
=========================================
Hits ? 19445
Misses ? 27784
Partials ? 2816
Continue to review full report at Codecov.
|
Added 'No License' option Added link and octicon change for external issue trackers Reset password now notifies right away if the code is invalid Signed-off-by: jolheiser <[email protected]>
More info in PR
Made the PR button a "basic" button Vertically centered the issue checkboxes Labels will update only once after modal is closed
Some new images with @silverwind's suggestions. Issue checkboxes vertically aligned Issue labels should only update once after closing the modal. Currently it is storing all actions in a list and then looping over the list, updating the issue meta. It currently relies on the fact that adding a label to an issue that's already added (and vice-versa) doesn't update the label. I'm not sure I really like relying on that, however I thought I'd get second opinions on whether it's worth attempting to keep track of "new" actions for labels vs what they started as. |
Resolves go-gitea#5782 Resolves go-gitea#5861 Addresses original question in go-gitea#5993
Can you make the And you need to regenerate stylesheets. |
This PR is ready for review again. 😄 |
Looking at code it looks good, I now just need to test it. One thing I am going to focus on testing is to ensure that for repos 404 it doesn’t show headers to users who don’t have permissions |
That's a good point, I don't think I did anything specific for that, so it would be whether it happens earlier in the context. EDIT: I wasn't able to get to a private repo if I was not signed in or not the owner. (Of course there are more checks I'm sure you will do, but it's a promising start.) |
Browsers usually present these dialogs when they see a |
@jolheiser don't worry about it. I was able to replicate being prompted for basic auth in master and so it isn't something that your branch is adding. I have one or two more things I'm still testing, but hopefully I'll be done today. |
@AragurDEV Make an issue for it, and refer to this PR |
Behavior
templates/repo/create.tmpl
– Once you select a license you can no longer deselect it.public/js/index.js
– When editing the labels of an existing issue (see screenshot), the labels are currently saved with every select / deselect, which just leads to unnecessary spam. The labels should only be saved after closing the popup, which is also the way GitHub does it.Visuals
templates/repo/header.tmpl
– Visually disable fork button on own repositories (you cannot clone them) by addingdisabled
class .templates/repo/home.tmpl
– Give New Pull Request button a text label instead of a cryptic icon.public/less/themes/arc-green.less
– The dark theme should use a less vibrant color for green buttons, I suggest#87ab63
, the same color used for links.