Skip to content

Missing "cancel" button when editing Wiki pages #24036

Closed
@khorben

Description

@khorben

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

image

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

yardenshoham commented on Apr 10, 2023

@yardenshoham
Member

I don't see a reason for a "Cancel" button when you could just navigate away
References:

khorben

khorben commented on Apr 10, 2023

@khorben
Author

I don't see a reason for a "Cancel" button when you could just navigate away

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

yardenshoham commented on Apr 10, 2023

@yardenshoham
Member

Can you illustrate with a video/gif?

wxiaoguang

wxiaoguang commented on Apr 11, 2023

@wxiaoguang
Contributor

I agree with the author.

Think about the case:

  1. Go to wiki list page
  2. Edit a page
  3. Change some thing (but not save)
  4. Now you want to navigate back to the preview page, if you click the "back" button on browser toolbar, you will see an annoying "leave confirm" dialog.

And another case:

  1. Go to wiki list page
  2. Edit a page in new window
  3. You can't navigate back because the new window doesn't have navigation history.

The "cancel" button sometimes is more friendly and intuitive for such page.

aschrijver

aschrijver commented on May 7, 2023

@aschrijver

Thanks for the heads-up to this issue @wxiaoguang .. I reported the same request in: https://codeberg.org/forgejo/forgejo/issues/705

wxiaoguang

wxiaoguang commented on Mar 5, 2024

@wxiaoguang
Contributor

Thanks for the heads-up to this issue @wxiaoguang .. I reported the same request in: https://codeberg.org/forgejo/forgejo/issues/705

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

added a commit that references this issue on Mar 6, 2024
5cddab4
locked as resolved and limited conversation to collaborators on Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @khorben@wxiaoguang@aschrijver@yardenshoham

      Issue actions

        Missing "cancel" button when editing Wiki pages · Issue #24036 · go-gitea/gitea