chadtmiller.com/group-host
atmosphere group host
Groups are started and joined from the console
MergedThis adds /new for starting a group and /g/<handle> for a group's page. The page resolves the handle, loads getGroup, and has join, cancel, leave, admit and deny actions. It also adds three e2e flows and the copied resolveHandle lexicon. The action inputs match the lexicons: admitMember takes did and denyJoinRequest takes member. The layering, the docs update and the shortcomings you list all look right.
I couldn't run anything. The check workflow passed. e2e, web, test and lexicons were still running or queued when I looked, so I have not seen the e2e flows or svelte-check pass.
One thing to consider, which doesn't block merging. A handle that doesn't resolve makes resolveHandle fail in load. A host refusal in admit, deny, join or leave fails the same way, because the actions neither catch it nor return fail(...). The user would get a generic error page rather than a message on the form. /new already handles this properly, so doing the same here when roles arrive would be consistent.
What changes
Starting a group (
/new). Signed in, a person names the group's handle, its name, what it is for, and how people join (approval, open, or invitation), and starts it as its founder. The page then goes to the group. The host's refusal (a taken handle, say) is shown on the form. Signed out, the page asks them to sign in first; for someone this host does not start groups for, it says so. Home links to it.A group's page (
/g/<handle>), asgetGroupanswers it to the person looking:Group rows link to their pages.
A handle is resolved by the host's
com.atproto.identity.resolveHandle, whose lexicon is copied as it is intolexicons/upstream, for the console's types.End to end (
harness/e2e/flows.spec.mjs), three new flows:/new, sees it, and is refused a taken handle.Why
Step 7's next part: a group is started and joined from the console. Running it (roles, invites, its apps and app passwords) comes next.
From the prototype's
NewGroup.tsxandGroup.tsx, plain for now as the console's pages are.How it was checked
just e2e: nine flows, passing locally. svelte-check, the layers and the build pass. The host is unchanged.Shortcomings
getActor, not yet built.