Fix: Swap order of "Comment and Close" #7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "LazyDodo/gitea-custom:tmp_comment_button_fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
People keep accidentally closing tickets only to re-open them right
away, I suspect it's the left to right nature of the "Comment and
Close" button, people scan the toolbar left to right, first button
they see "Comment..." they go "yeah! that's it!" click it, then read
"and close" and go "oh.....no"
This PR changes the order to "Close with Comment" highlighting that
the closing of the ticket is the most important action being taken.
Ideally we'd be able to change a single locale string in the custom
folder but there is seemingly no fallback to the original file, a
complete
locale_en-US.ini
has to be supplied, I included a patchto make upgrades to newer gitea versions easier in the future.
We eventually want to get upstream to fix this, but given humans
with squishy noodles are involved, probably better to try this out
locally first and prove this actually changes the user behaviour.
Is there a way to brighten the "Comment" button next to it so that it doesn't still look dimmed once text has been typed?
Current:
Not that i'm aware of, doesn't feel like the hardest modification to make, but still more than i currently have time for, so i'm gonna declare it out of scope for this PR.
I think this is a great improvement on its own! Surely, we need to give more accent to the "Comment", and, especially "Approve" buttons, but that is probably better to handle separately anyway.
From the process perspective, it seems that it is expected that changes are done to
develop
branch, so that they are first tested on UATEST, and then merged tomain
.I would also really like to avoid need to manually maintain the locales. It might be good for a short while, but it is unclear to me if you plan to take care of upstreaming it (also taking inti account your comment about time availiability).
I've put this as a commit in our Gitea fork now.
479d52dabf
That way we avoid having to maintain a copy of the locale file.
It should get deployed along with a Gitea 1.22 upgrade.
Pull request closed