Skip to content

[Feature]: Reordering support for Groups/Nodes/Cores and Bulk Group Assignment UI #717

Description

@lebertadvpn

Before you submit

  • I searched existing issues and did not find the same request.
  • This request is about PasarGuard itself, not support for my deployment.

Problem

I need to organize panel items better and perform bulk group operations on users easily, but currently:

  1. Manual ordering/sorting is only available in the Hosts section. In setups with many protocols, managing Groups, Nodes, and Cores becomes cluttered and difficult to keep organized without a custom reordering mechanism.

  2. Assigning or updating group access for multiple users (or users belonging to specific admins) cannot be done easily via the Web UI. While the underlying API supports this via bulk_add_groups_to_users and bulk_remove_users_from_groups, administrators are forced to perform these actions manually one-by-one in the UI or run API calls externally.

Proposed solution

I propose two main UI enhancements:

  1. Reordering / Sorting Support:

    • Extend the sorting capability (similar to what exists in Hosts) to Groups, Nodes, and Cores.
    • This will allow administrators to arrange protocols and nodes logically, which is especially critical for setups using many inbound protocols.
  2. UI Controls for Bulk Group Assignment:

    • Expose the existing bulk_add_groups_to_users and bulk_remove_users_from_groups API functionality in the Web UI.
    • Allow admins to select a group and enable/disable it for all users, or filter users under specific admin(s).
    • Example: If protocols A, B, C, D exist, provide an option in the UI to bulk-enable protocols A and B for users under Admin 1 and Admin 2.
    • Note: This is a bulk group modification tool for users, distinct from setting group access permissions for admin roles.

Alternatives considered

  • For ordering: Currently, there is no workaround, and items are displayed based on default database order or creation time.
  • For bulk group assignments: Currently using external API requests (e.g., via Postman, cURL, or custom scripts) using the bulk_add_groups_to_users / bulk_remove_users_from_groups endpoints, or manually updating each user individually in the Web UI.

Having these native UI features would significantly streamline administrator operations and improve the panel UX.

Area

Frontend

Impact

Important

Examples or references

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions