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

Clicking on "Viewed" on a PR after "Show more" doesn't work #21228

Closed
Fifi31 opened this issue Sep 21, 2022 · 1 comment · Fixed by #21230
Closed

Clicking on "Viewed" on a PR after "Show more" doesn't work #21228

Fifi31 opened this issue Sep 21, 2022 · 1 comment · Fixed by #21230
Labels
topic/ui Change the appearance of the Gitea UI type/bug

Comments

@Fifi31
Copy link

Fifi31 commented Sep 21, 2022

Description

Hello, when reviewing a PR with a lot of files, only some files are displayed. After clicking on "Show more" at the bottom of the page, if you click on "Viewed" on the first of the newly displayed files, it is the first file of the page that has its "viewed checkbox" checked/unchecked. Same happens on the second newly displayed file, it is the second file of the page that is changed.
When clicking on the checkbox and not the label, it works though.

You can reproduce it here : https://try.gitea.io/vtaix/test/pulls/1/files

Screenshots

gitea

Gitea Version

1.17.1

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

Ubuntu 20.04

Browser Version

Firefox 104.0

@Fifi31 Fifi31 added type/bug topic/ui Change the appearance of the Gitea UI labels Sep 21, 2022
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Sep 21, 2022

Maybe related to this one:

Update: the newly loaded files have incorrect id/for="viewed-file-checkbox-2" when it should be 102

wxiaoguang added a commit that referenced this issue Sep 21, 2022
…21230)

The problem was that many PR review components loaded by `Show more`
received the same ID as previous batches, which confuses browsers (when
clicked). All such occurrences should now be fixed.

Additionally improved the background of the `viewed` checkbox.

Lastly, the `go-licenses.json` was automatically updated.

Fixes #21228.
Fixes #20681.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
delvh added a commit to delvh/gitea that referenced this issue Sep 21, 2022
…o-gitea#21230)

The problem was that many PR review components loaded by `Show more`
received the same ID as previous batches, which confuses browsers (when
clicked). All such occurrences should now be fixed.

Additionally improved the background of the `viewed` checkbox.

Lastly, the `go-licenses.json` was automatically updated.

Fixes go-gitea#21228.
Fixes go-gitea#20681.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
techknowlogick pushed a commit that referenced this issue Sep 23, 2022
…21230) (#21234)

Backport of #21230

The problem was that many PR review components loaded by `Show more`
received the same ID as previous batches, which confuses browsers (when
clicked). All such occurrences should now be fixed.

Additionally improved the background of the `viewed` checkbox.

Fixes #21228.
Fixes #20681.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@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.

2 participants