woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 370 forks source link

Add sorting method to the repos list #4423

Open zc-devs opened 12 hours ago

zc-devs commented 12 hours ago

Clear and concise description of the problem

Repos list used to be sorted by name. So, it was kinda static. One could remember at a subconscious level where some repo is. Like: it is somewhere "one scroll from the top" and then "on the middle of the page". So, after "Repositories" clicked, I do one scroll and move pointer to the center of the screen. Then, I find the repo visually, adjust position of the pointer and click.

Now, this list is dynamic, it always changes. I even can do nothing, just hit F5 and there will be completely reordered list, just because my teammates push changes, PRs got merged or some cron jobs.

Suggested solution

It would be great

  1. to have sorting setting like in GitHub
  2. to have sorting order saved somewhere

Alternative

Bring back sorting by name.

Additional context

WP next-350082cd19, Gitea 1.22.3, Postgres 16, Kubernetes v1.30.6+k3s1 https://github.com/woodpecker-ci/woodpecker/pull/4386#issuecomment-2491103809 https://github.com/woodpecker-ci/woodpecker/pull/4386#issuecomment-2491120805 https://github.com/woodpecker-ci/woodpecker/pull/4386#issuecomment-2491350932

Validations