Skip to content
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

Clear labels should remove checkmarks in popup #22222

Closed
michewl opened this issue Dec 22, 2022 · 8 comments · Fixed by #23224
Closed

Clear labels should remove checkmarks in popup #22222

michewl opened this issue Dec 22, 2022 · 8 comments · Fixed by #23224
Labels
topic/ui Change the appearance of the Gitea UI type/bug

Comments

@michewl
Copy link

michewl commented Dec 22, 2022

Description

On the "New issue" or "New Pull Request" page in the "Labels" popup, the "Clear labels" function does not remove the checkmarks in the label list.

This can easily be reproduced:

  1. Go to the "New Issue" page
  2. Open the "Labels" popup
  3. Add one or more labels (checkmark appears)
  4. [Optionally close the labels popup to "commit" the selection and reopen]
  5. Click "Clear labels" (the popup closes)
  6. Open the "Labels" popup again
  7. Find the checkmarks still present

The expected behavior would be, that the checkmarks also get removed when "Clear labels" is clicked.

Screenshots

bug-gitea-labels_2022-12-22 20-21

Gitea Version

1.19.0+dev-223-gea5a752ee

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

Pop!_OS 22.04 LTS 6.0.6-76060006-generic

Browser Version

Firefox 108.0 (64-bit)

@michewl michewl added type/bug topic/ui Change the appearance of the Gitea UI labels Dec 22, 2022
@KN4CK3R
Copy link
Member

KN4CK3R commented Dec 23, 2022

Can't reproduce it on my local dev setup. After every selection the page is reloaded which fixes your issue. I have the same reload behaviour on the Gitea demo site but there I can't use "Clear labels" 🤷‍♂️

labels

@michewl
Copy link
Author

michewl commented Dec 23, 2022

Can't reproduce it on my local dev setup. After every selection the page is reloaded which fixes your issue. I have the same reload behaviour on the Gitea demo site but there I can't use "Clear labels" man_shrugging

I only have the try.gitea.org instance to test. But I still can reproduce it with Firefox 108.0 and also have the same behavior with Chromium Version 108.0.5359.124 (Official Build) (64-bit) (Flatpak install) and Vivaldi 5.6.2867.50 (Stable channel) stable (64-bit) tested just now on try.gitea.org running Gitea version 1.19.0+dev-226-g71ca3067b.

I also checked for JS errors or something, but none are printed out in the console.

I do not have any reloads happening, and I also do not have the case where it does not work at all.

@KN4CK3R
Copy link
Member

KN4CK3R commented Dec 23, 2022

I have the same Firefox version and get an error:
grafik
Don't know what's the problem.

@wxiaoguang
Copy link
Contributor

The problem is highly liked caused by a server/network problem.

At the moment, the "label" works like this:

  1. Choose labels (including Clear)
  2. Hide the dropdown
  3. Update the labels to server (one by one)
  4. Reload page

If any request in step 3 fails, the page won't be reloaded, then you see the stale page.

If you could help to figure out why step 3 fails, it would be very helpful.

@michewl
Copy link
Author

michewl commented Mar 1, 2023

Tested it just now again on https://try.gitea.io.

Still almost the same behavior for me. The only difference from my initial report is that the popup stays open during step 5.

No requests are made at all when I change the labels. Never had the Promise issue @KN4CK3R describes.

Gitea Version

1.20.0+dev-48-g04347eb81

Operating System

Pop!_OS 22.04 LTS 6.1.11-76060111-generic

Browser Version

Firefox 110.0 (64-bit)

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Mar 1, 2023

Update: see below. It is a bug on "New Issue" page. Sorry for the misunderstanding .....

That's really strange. I just did a new test on try.gitea.io , I can clear lables and add labels. Firefox 110.0.1 (64-bit) (it couldn't be related to browser IMO)

https://try.gitea.io/wxiaoguang/test/issues/20

image

@wxiaoguang
Copy link
Contributor

Oh, sorry, I see, you mean "New Issue"? That page seems to be broken for long time ....

I could take a look if I get time. Thank you for your report.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Mar 1, 2023

The fix: #23224

ps: I didn't change the "clear" behavior for hiding (although maybe it's better to hide after clearing).
IMO in history, it is done by purpose to keep the list shown after clicking the "clear", just like clicking other items.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants