~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A group's page shows its members a page at a time, and how to join

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:console/signed-in

What changes

A group's page, signed in. The page is the group's card: its banner, its picture over the banner's foot, its name and handle, its description, a row of its links, its rules folded under "Rules (n)", and where the person looking stands. Below it:

  • For someone not in it, a panel that follows the join policy: "Ask to join" with an optional note and "Send request", then "Your request is waiting" with "Withdraw it"; "Anyone can join." and Join; or "Joining is by invite", with no button. An invite waiting for them shows "You're invited" and Join, whatever the policy, and joining says "You're in". A group whose profile only members may read shows its handle and the panel alone.
  • For a member: "You're a member, as <roles>" and "Leave the group"; Settings, and Moderation for roles holding mod.read; "Asking to join", each request with its note, "Turn down" and "Let in", for those who may admit; Members with the count, "Find a member" (found as it is typed), five at a time with "Show more", each with their roles, and changing roles or putting someone out folded under "Change" for those who may; "Invite someone", for those who may invite, opening the invite dialog ("Their handle", "A note, if you like", "Send invite"), which writes the invite as the group with its note; and the invites still waiting, to take back.
  • "Connect an AI app", for those whose roles hold group.configure: the /mcp address with Copy, what it asks, things to ask it, and the AI apps they connected. Any other member sees their own under "Your AI apps", once they have one.

fyi.opensocial.listMembers. A group's members and their roles, a page at a time (limit, cursor) in the order of their DIDs, narrowed by q to those whose handle or DID holds it, in any case; for a caller who may read the members space. The cursor is there only while more are. It is an MCP tool too, and opensocial inspect lists its first hundred.

getGroup counts members. groupViewDetailed.memberCount, to whoever may read the members space, in place of the whole roster (members, taken out; harness/lexicons.mjs says why).

Links on a profile. fyi.opensocial.profile takes links, up to five defs#link (url, title up to 64 graphemes); the host keeps only http and https addresses, as it does the site. getGroup shows them, the card draws them as a row, and the settings page edits them.

Why

The signed-in pages were a list of forms; this is the approved layout. A roster in getGroup grows with the group and was read whole for every page view; a page of five, found by handle, is what the page shows, so the host answers that. Links are where a group's members actually talk: a chat, a calendar.

How it was checked

  • members_are_listed_a_page_at_a_time: pages of four over nine members, each once and in order; the last page with no cursor; roles and handles; q by handle in any case, by DID, matching nothing, and paged; refused to a stranger (403), to no one signed in (401), and for no such group; getGroup counts and no longer lists.
  • group_config: five links kept and shown, one with a title of 64; refused for a link not on the web, one without a url, a title of 65, and six links.
  • The AI app's listMembers tool, found by part of a DID; the CLI's inspect for a member and an outsider.
  • e2e: asking to join with a note, withdrawing, asking again, being let in; leaving; inviting from the dialog (a handle not found, Cancel, sent with a note, taken back, sent again); taking it up on the group's page; an open group's Join; finding a member as it is typed and "Show more" over six; the AI app section to an admin and not a member; links set in settings and shown on the page. The flows that were there pass with the page's new words.
  • cargo fmt, clippy, node harness/lexicons.mjs, node harness/docs.mjs, node harness/layers.mjs, npm run check; the coverage gate is left to CI.

Shortcomings

  • The examples under "Then ask it things like" are fixed; "Invite dana.bsky.social" asks the app to find her DID, as the invite tool takes one.
  • "Find a member" reads every member's DID document for a q, a page and one more at a time, until a page is found: fine for groups of hundreds, slow for very large ones.
  • The look is the console's plain one, from its tokens; the mock's rounded-square avatars and some spacing are not copied.

🤖 Generated with Claude Code

Approved

This adds fyi.opensocial.listMembers (paged, filterable by q), replaces the roster in getGroup with memberCount, adds profile links, and redoes the signed-in group page. I read the Rust changes in group_api.rs, group_config.rs, lib.rs and the MCP method list, and found nothing that must change.

  • Read access: list_members checks the members-space read access before it lists anyone.
  • Paging: it pages by membership key, taken from group_records, which returns records in key order. The cursor is the last returned key and is set only while more remain.
  • Links: validation rejects any link whose url is missing or not http/https.
  • Cost: as the body says, a q search reads every remaining member's DID document in chunks, and getGroup still reads the whole membership list to count it. Both are fine at today's group sizes.

I did not read the Svelte, e2e, lexicon JSON and docs files in detail. CI's web, lexicons, e2e and docs checks cover them.

Approved

This round only changes how "Find a member" keeps focus, and the e2e flows. My earlier approval of the Rust work still holds, and I found nothing new that must change.

  • Find a member: MemberList.svelte now calls goto('?q=…', { reset: false, replace: true }) from the input's oninput handler. It no longer calls requestSubmit() on the form. The form is still a plain GET, so it works without a script. Searching starts again from the first page, because shown is dropped.
  • Show more: it now uses data-sveltekit-reset="false" in place of noscroll, and its behavior is unchanged.
  • e2e: the rules test opens "Rules (1)" before checking the rule is visible. joins now expects admitted.

I did not run the e2e checks.

Merged as 1c5a313