Skip to content

Add default sorting to the admin list views - #335

Merged
mreid-tt merged 1 commit into
SynoCommunity:mainfrom
mreid-tt:feat/admin-default-sort
Oct 14, 2026
Merged

mreid-tt merged 1 commit into
SynoCommunity:mainfrom
mreid-tt:feat/admin-default-sort

Conversation

@mreid-tt

Copy link
Copy Markdown
Contributor

Summary

Several admin list views opened in an arbitrary order (no default sort). This sets sensible defaults so each list opens in a useful, stable order.

View Default sort
Users active desc, then username asc — active accounts first, alphabetical within each group
Architectures code asc
Firmware type asc, then build asc
Services code asc

The views that already had a default are unchanged: Screenshots (package.name), Packages (name), Versions and Builds (insert_date desc).

Users and Firmware use Flask-Admin's multi-column form (list[tuple[str, bool]]).

Test

Adds one test asserting the Users multi-column order: active users appear before inactive, and alphabetically within each group.

Verification

  • pytest — 381 passed, 45 subtests.
  • pre-commit clean.

@mreid-tt mreid-tt self-assigned this Oct 14, 2026
@mreid-tt mreid-tt added enhancement python Pull requests that update python code labels Oct 14, 2026
@mreid-tt
mreid-tt merged commit 120aac5 into SynoCommunity:main Oct 14, 2026
2 checks passed
@mreid-tt
mreid-tt deleted the feat/admin-default-sort branch October 14, 2026 11:03
@mreid-tt mreid-tt mentioned this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant