Member list: scroll-windowed ranges for guilds with more than 1,000 list rows #195

Open
opened 2026-11-12 03:34:23 +00:00 by charles · 0 comments
Owner

The member list subscription (branch fix-member-list) asks the server for enough ranges to cover the whole list, up to the server's limit of ten ranges of 100 rows per channel (limit_lazy_subscribe_ranges in fluxer_gateway/src/guild/guild_subscription_handler.erl). A list longer than 1,000 rows (group headers count as rows) therefore shows only its first 1,000 rows; the headers still show the full counts.

The web app windows the subscription by scroll position instead (fluxer_app/src/features/channel/components/ChannelMembers.tsx, commitRangeUpdate: a resident range plus the visible window with overscan, buildMemberListRangeWindow; useMemberListSubscription.ts settles for 50 ms before sending, MemberSidebar.ts prunes rows outside the requested ranges and resends after 1 s, up to 3 times, when a range does not hydrate).

To do:

  • fluxer-ui: a virtualised member list that reports the visible row window (rows of 44 px and headers per the fork's CSS) and shows placeholder rows for rows not loaded yet;
  • fluxer-core: UserAction for the visible window, ranges = resident [0, 99] + window with overscan, pruning rows outside them, the resend on stalled hydration;
  • devserver: a scenario with a guild of a few thousand members to test it end to end.

Also note: the server leaves the offline group and its members out when it has more than 1,000 members (guild_member_list_read.erl, visible_groups), which the client already follows.

The member list subscription (branch `fix-member-list`) asks the server for enough ranges to cover the whole list, up to the server's limit of ten ranges of 100 rows per channel (`limit_lazy_subscribe_ranges` in `fluxer_gateway/src/guild/guild_subscription_handler.erl`). A list longer than 1,000 rows (group headers count as rows) therefore shows only its first 1,000 rows; the headers still show the full counts. The web app windows the subscription by scroll position instead (`fluxer_app/src/features/channel/components/ChannelMembers.tsx`, `commitRangeUpdate`: a resident range plus the visible window with overscan, `buildMemberListRangeWindow`; `useMemberListSubscription.ts` settles for 50 ms before sending, `MemberSidebar.ts` prunes rows outside the requested ranges and resends after 1 s, up to 3 times, when a range does not hydrate). To do: - `fluxer-ui`: a virtualised member list that reports the visible row window (rows of 44 px and headers per the fork's CSS) and shows placeholder rows for rows not loaded yet; - `fluxer-core`: `UserAction` for the visible window, ranges = resident `[0, 99]` + window with overscan, pruning rows outside them, the resend on stalled hydration; - devserver: a scenario with a guild of a few thousand members to test it end to end. Also note: the server leaves the `offline` group and its members out when it has more than 1,000 members (`guild_member_list_read.erl`, `visible_groups`), which the client already follows.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#195
No description provided.