Skip to content

Let Previous/ Next Button Cycle When There is no Previous/ Next Comment #16317

Closed
@delvh

Description

@delvh

Description

Currently, the next/ previous button for the next or previous PR comment will be shown regardless whether there actually is a next or previous PR comment. Clicking them in this state simply does nothing.
It would be more intuitive if either these buttons would be disabled or completely removed when no such comment exists.

Another approach would be to circularly link to the next comment, meaning that clicking on previous on the first comment would link to the last comment, and vice versa. This could even be better than disabling them, especially when they are still opened.

Screenshots

image
Currently, the previous button gets displayed even for the first PR comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions