Skip to content

feat(users): sort buttons for the phone cards - #108

Merged
hiddify-com merged 1 commit into
hiddify:devfrom
Hiddify-Official:feat/users-mobile-sort
Oct 24, 2026
Merged

hiddify-com merged 1 commit into
hiddify:devfrom
Hiddify-Official:feat/users-mobile-sort

Conversation

@Hiddify-Official

Copy link
Copy Markdown
Contributor

Problem

On a phone the Users page shows cards instead of the table, so there are no column headers to tap. Users can't be sorted by ID, status, name, usage, expiry or last connection there.

Change

  • UsersView.vue: the Select all box above the cards gets one small button per sortable column (ID, Status, Name, Usage, Expires, Last connection):
    • a tap sorts ascending, the next descending, the third returns to the admin's own order (arrow and highlight on the active one);
    • it uses the same sortField / sortOrder as the table, so pinned users stay on top, the sort is kept in the URL, and it carries over to the desktop table;
    • the buttons scroll sideways on one line (the edge fades), and are disabled while "Group by admin" is on, as the column sorts are;
    • a sort starts again from page 1.
  • Labels reuse the column titles (no new translation keys).

Screenshots

Before After
before after
before after

The second row is Usage tapped twice (descending). The notebook icons in the "after" cards come from #107.

Tested

  • Deployed to main, node1 and node2 (UI).
  • On main at phone width: each button cycles up, down and off; Usage ↓ orders by usage with the pinned users kept first.
  • vue-tsc adds no errors.
  • Not checked: the Persian (RTL) phone view, because the screenshot tool did not render it correctly at phone size.

Review

  • Confidence: High (>90%): the cards already followed the table's sort; this only adds controls for it.
  • Complexity: Simple: one view, no API change.

Related: #107 also changes UsersView.vue; the two branches merge without conflicts.

🤖 Generated with Claude Code

Small buttons next to Select all, one per sortable column (ID, status,
name, usage, expiry, last connection): a tap sorts ascending, the next
descending, the third goes back to the admin's own order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hiddify-com
hiddify-com merged commit 5fa63b2 into hiddify:dev Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants