chadtmiller.com/group-host
atmosphere group host
0
0
A group's page shows its members a page at a time, and how to join
Merged 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_memberschecks 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
urlis missing or not http/https. - Cost: as the body says, a
qsearch reads every remaining member's DID document in chunks, andgetGroupstill 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.sveltenow callsgoto('?q=…', { reset: false, replace: true })from the input'soninputhandler. It no longer callsrequestSubmit()on the form. The form is still a plain GET, so it works without a script. Searching starts again from the first page, becauseshownis dropped. - Show more: it now uses
data-sveltekit-reset="false"in place ofnoscroll, and its behavior is unchanged. - e2e: the rules test opens "Rules (1)" before checking the rule is visible.
joinsnow expectsadmitted.
I did not run the e2e checks.
Merged as 1c5a313
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:
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.group.configure: the/mcpaddress 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 byqto 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, andopensocial inspectlists its first hundred.getGroupcounts members.groupViewDetailed.memberCount, to whoever may read the members space, in place of the whole roster (members, taken out;harness/lexicons.mjssays why).Links on a profile.
fyi.opensocial.profiletakeslinks, up to fivedefs#link(url,titleup to 64 graphemes); the host keeps only http and https addresses, as it does the site.getGroupshows 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
getGroupgrows 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;qby 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;getGroupcounts 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.listMemberstool, found by part of a DID; the CLI'sinspectfor a member and an outsider.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
q, a page and one more at a time, until a page is found: fine for groups of hundreds, slow for very large ones.🤖 Generated with Claude Code