Skip to content

Space member lists change their order on every load #3922

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

The server returns space members in a different order on every request, and the member lists only sort by role, so members change places on every load and move between pages:

  • Spaces overview ("Show members"), space sidebar and the space members section of the file share panel: sortSpaceMembers in web-pkg/src/composables/piniaStores/spaces.ts:23-25 sorts by permissions.length only.
  • Admin settings > Spaces > Members: sortedPermissions in web-app-admin-settings/src/components/Spaces/SideBar/MembersPanel.vue groups by role only.

Fix: add a secondary sort by display name in both places.

Reproduction Steps

  1. Add several members with the same role to a project space.
  2. Open the members panel in the Spaces overview, close it and open it again (or reload).
  3. Do the same in Admin settings > Spaces.

Expected Outcome

A stable order within each role, e.g. alphabetical.

Actual Outcome

The order changes on every load; with more than one page, members jump between pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions