Description
Description
When editing or creating wiki pages, there is no "Cancel" button helping the user navigate back to the original wiki page, or to the list of wiki pages available, respectively. (See https://try.gitea.io/khorben/test-for-wiki/wiki?action=_new)
Alternatively, Gitea could navigate back into the user's history. On the positive side, nowadays most browsers recognise when information was input but not saved yet, and warn the user before possibly losing this information. However, this would require JavaScript (unless a fallback behaviour is implemented) and break PLA (Principle of Least Astonishment) since it would remove the page edition page from the history, without the user actually interacting with the history buttons ("Back" and "Forward").
Note that this improvement to the User Interface/User eXperience may also apply to new issues. (See https://try.gitea.io/khorben/test-for-wiki/issues/new)
Screenshots
Gitea Version
1.16.9
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
NetBSD 9.3_STABLE (GENERIC) pkgsrc-2022Q4 (from source, system service)
Browser Version
Safari 16.3
Activity
yardenshoham commentedon Apr 10, 2023
I don't see a reason for a "Cancel" button when you could just navigate away
References:
khorben commentedon Apr 10, 2023
There is no way to go back to the Wiki page currently being edited, except for navigating through the whole Wiki to that page again.
yardenshoham commentedon Apr 10, 2023
Can you illustrate with a video/gif?
wxiaoguang commentedon Apr 11, 2023
I agree with the author.
Think about the case:
And another case:
The "cancel" button sometimes is more friendly and intuitive for such page.
aschrijver commentedon May 7, 2023
Thanks for the heads-up to this issue @wxiaoguang .. I reported the same request in: https://codeberg.org/forgejo/forgejo/issues/705
wxiaoguang commentedon Mar 5, 2024
Thank you for your report, but their fix doesn't seem right, violates the UI design (#28261 (comment)) .... actually it is a quite simple fix, and will be included in #29603
Make wiki default branch name changable (go-gitea#29603)