Skip to content

Displayed order of topics is inconsistent between repo list and repo page #28936

Closed
@wackbyte

Description

@wackbyte

Description

Problem

The order of a repository's topics is different when viewed in a repo list versus when viewed on the repo's page itself. See the screenshots below for an example.

Expected behavior

I would expect the ordering to be consistent between the two pages, either by being sorted or by staying in insertion order. Personally, I would prefer them to be sorted (as they already are on the repo page).

Demo

Screenshots

Order while adding:
Entering the topics A, C, and B in that order

Order after adding (on repo page):
List of topics A, B, and C in that order

Order in the repo list on the user profile:
List of topics A, C, and B in that order

(These screenshots are from the reproduction of the issue on a local test instance I built, not from try.gitea.io, but the same issue occurs there.)

Gitea Version

ba24e0b

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

NixOS

Browser Version

Librewolf 121.0.1

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

    No branches or pull requests

    Issue actions