chadtmiller.com/group-host
atmosphere group host
0
0
A group's settings are changed from the console
Merged Approved
This adds the /g/<handle>/settings page. It covers the profile, rules, roles, the apps acting as the group, and app passwords. It also makes getGroup read DID documents concurrently and routes the invite action through act.
I found nothing that must change.
- Images: the profile action doesn't carry avatar or banner over, but it doesn't need to.
update_profilekeeps an image that is left out, so "only kept" is true. - Concurrent reads: the
join_allchange keeps the order of members and requesters, because it zips the results back onto the same lists. - Page access: the page shows each part only to those the group lets, and the host enforces that anyway.
Two small things, neither blocking:
- The new e2e flows depend on each other. "defining a role" and "making an app password" don't navigate and rely on the previous test's page. That works while the file runs serially, but it breaks if one flow is run on its own.
ACTIONSinweb/src/lib/actions.tsis a hand-kept copy of the lexicon's action list. It will drift when an action is added.
I did not read the checks or run anything.
Merged as b1d6d0d
What changes
A group's settings (
/g/<handle>/settings, linked from its page for its members), each part for whoever the group lets:updateProfile). The profile is replaced whole, so what the form does not show (where it meets, online, topics, languages) is carried over as it is.putRule,deleteRule).putRole,deleteRole).listGroupTokens): each grant, how it was given and whose it is, to end (revokeGroupToken), and the latest of the group's log.listAppPasswords): each to revoke, and a new one to make, shown once (createAppPassword,revokeAppPassword).The first four are for its configurers. App passwords are for them and for whoever may make one. The host's refusals show on the page.
From the members pull's review:
act, as the others do.getGroupreads its members' and requesters' DID documents at once rather than in turn (futures::future::join_all;futuresjoins the host's dependencies).Why
Step 7's last part: a group is run from the console, start to finish. That completes the console's step in
docs/design/README.md.How it was checked
just e2e, four new flows (seventeen in all), passing locally:invite, and taken away;createSession), its session ended from the page, the password revoked, and signing in with it refused.svelte-check, the layers and the build pass. The host's tests for
getGrouppass. Local coverage was 100% at the members pull, and the change since isgetGroup's concurrent reads.Shortcomings