chadtmiller.com/group-host
atmosphere group host
0
0
The console shows how to make a recovery key, and examples for a new group
docs/guides/shots/recovery-dialog-dark.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-dialog.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-dialog.txt+6−0
| @@ -2,6 +2,12 @@ | ||
- heading "Add a recovery key" [level=2] | ||
- button "Close": × | ||
- paragraph: A key you hold. With it you can recover the group, or move it, without this host. | ||
- paragraph: | ||
- text: No key yet? Make one in a terminal with | ||
- link "goat": | ||
- text: . Paste the public key it prints here, and keep the secret key somewhere safe. | ||
- code: goat key generate | ||
- button "Copy" | ||
- text: A key of yours, as a did:key | ||
- textbox "A key of yours, as a did:key": | ||
- /placeholder: did:key:z… | ||
docs/guides/shots/recovery-refused-dark.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-refused.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-refused.txt+6−0
| @@ -2,6 +2,12 @@ | ||
- heading "Add a recovery key" [level=2] | ||
- button "Close": × | ||
- paragraph: A key you hold. With it you can recover the group, or move it, without this host. | ||
- paragraph: | ||
- text: No key yet? Make one in a terminal with | ||
- link "goat": | ||
- text: . Paste the public key it prints here, and keep the secret key somewhere safe. | ||
- code: goat key generate | ||
- button "Copy" | ||
- text: A key of yours, as a did:key | ||
- textbox "A key of yours, as a did:key": | ||
- /placeholder: did:key:z… | ||
docs/guides/shots/starting-new-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-new.png+0−0
A binary file, not shown.
docs/guides/shots/starting-new.txt+6−3
| @@ -4,13 +4,16 @@ | ||
- main: | ||
- heading "Start a group" [level=1] | ||
- text: Name | ||
- textbox "Name" | ||
- textbox "Name": | ||
- /placeholder: Riverside Book Club | ||
- text: Its address | ||
- textbox "Its address .groups.test" | ||
- textbox "Its address .groups.test": | ||
- /placeholder: riverside-book-club | ||
- text: .groups.test | ||
- paragraph: This is the group's handle and web address. You can change it. | ||
- text: What it is for (optional) | ||
- textbox "What it is for (optional)" | ||
- textbox "What it is for (optional)": | ||
- /placeholder: We meet monthly to talk about our favorite books 📚 | ||
- text: How people join | ||
- combobox "How people join": | ||
- option "An admin approves who joins" [selected] | ||
docs/guides/shots/starting-taken-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-taken.png+0−0
A binary file, not shown.
docs/guides/shots/starting-taken.txt+8−3
| @@ -4,15 +4,20 @@ | ||
- main: | ||
- heading "Start a group" [level=1] | ||
- text: Name | ||
- textbox "Name": Book club | ||
- textbox "Name": | ||
- /placeholder: Riverside Book Club | ||
- text: Book club | ||
- text: Its address | ||
- textbox "Its address .groups.test": riders | ||
- textbox "Its address .groups.test": | ||
- /placeholder: riverside-book-club | ||
- text: riders | ||
- text: .groups.test | ||
- paragraph: | ||
- text: riders.groups.test is taken. | ||
- button "Use riders-2.groups.test" | ||
- text: What it is for (optional) | ||
- textbox "What it is for (optional)" | ||
- textbox "What it is for (optional)": | ||
- /placeholder: We meet monthly to talk about our favorite books 📚 | ||
- text: How people join | ||
- combobox "How people join": | ||
- option "An admin approves who joins" [selected] | ||
docs/guides/recovery-keys.md+4−2
| @@ -78,10 +78,12 @@ half starts `did:key:zDnae`. | ||
<!-- look /g/choir.groups.test/settings/recovery --as erin --> | ||
 | ||
| ||
3. Press **Add a recovery key**. A dialog opens with one field. | ||
3. Press **Add a recovery key**. A dialog opens with one field. Above | ||
it, the dialog shows the goat command that makes a key, with | ||
**Copy** beside it, in case you don't have one yet. | ||
| ||
<!-- look /g/choir.groups.test/settings/recovery --as erin --click 'button[popovertarget=add-key]' --element ':popover-open' --> | ||
 | ||
 | ||
| ||
4. In **A key of yours, as a did:key**, paste your own public key, the | ||
line that starts `did:key:z...`. The key in the pictures is only an | ||
docs/guides/starting-a-group.md+1−1
| @@ -46,7 +46,7 @@ the foot of the dialog makes one. | ||
people join. | ||
| ||
<!-- look /new --as alice --> | ||
 | ||
 | ||
| ||
2. Type the group's name into **Name**, such as "Book club". It can be | ||
up to 64 characters. | ||
web/messages/en.json+4−0
| @@ -347,11 +347,14 @@ | ||
"moderation_queue_review": "Review", | ||
"moderation_queue_review_label": "Review {who}", | ||
"new_group_form_name": "Name", | ||
"new_group_form_name_placeholder": "Riverside Book Club", | ||
"new_group_form_address": "Its address", | ||
"new_group_form_address_placeholder": "riverside-book-club", | ||
"new_group_form_taken": "{address} is taken.", | ||
"new_group_form_use": "Use {address}", | ||
"new_group_form_address_hint": "This is the group's handle and web address. You can change it.", | ||
"new_group_form_description": "What it is for", | ||
"new_group_form_description_placeholder": "We meet monthly to talk about our favorite books 📚", | ||
"new_group_form_join": "How people join", | ||
"new_group_form_join_approval": "An admin approves who joins", | ||
"new_group_form_join_open": "Anyone can join right away", | ||
| @@ -376,6 +379,7 @@ | ||
"recovery_keys_remove_body": "The person who holds it can no longer use it to recover the group.", | ||
"recovery_keys_add_title": "Add a recovery key", | ||
"recovery_keys_add_intro": "A key you hold. With it you can recover the group, or move it, without this host.", | ||
"recovery_keys_add_goat": "No key yet? Make one in a terminal with {#link}goat{/link}. Paste the public key it prints here, and keep the secret key somewhere safe.", | ||
"recovery_keys_key": "A key of yours, as a did:key", | ||
"report_dialog_title": "Report an account", | ||
"report_dialog_submit": "Report", | ||
web/src/lib/organisms/NewGroupForm.svelte+6−1
| @@ -61,6 +61,7 @@ | ||
name="displayName" | ||
required | ||
maxlength="64" | ||
placeholder={m.new_group_form_name_placeholder()} | ||
bind:value={name} | ||
oninput={() => (label = edited ? label : labelOf(name))} | ||
/> | ||
| @@ -72,6 +73,7 @@ | ||
name="label" | ||
required | ||
maxlength="63" | ||
placeholder={m.new_group_form_address_placeholder()} | ||
pattern="[a-z0-9][a-z0-9\-]*" | ||
bind:this={address} | ||
bind:value={label} | ||
| @@ -97,7 +99,10 @@ | ||
><span | ||
>{m.new_group_form_description()} <span class="optional">{m.common_optional()}</span></span | ||
> | ||
<textarea name="description" maxlength="2000"></textarea></label | ||
<textarea | ||
name="description" | ||
maxlength="2000" | ||
placeholder={m.new_group_form_description_placeholder()}></textarea></label | ||
> | ||
<label class="field"> | ||
{m.new_group_form_join()} | ||
web/src/lib/organisms/RecoveryKeys.svelte+17−3
| @@ -1,4 +1,6 @@ | ||
<script lang="ts"> | ||
import { ParaglideMessage } from '@inlang/paraglide-js-svelte'; | ||
import Copy from '#lib/atoms/Copy.svelte'; | ||
import ConfirmDialog from '#lib/molecules/ConfirmDialog.svelte'; | ||
import FormDialog from '#lib/molecules/FormDialog.svelte'; | ||
import { m } from '#lib/paraglide/messages.js'; | ||
| @@ -6,12 +8,14 @@ | ||
* The group's rotation keys, the highest ranked first: the stewards' | ||
* recovery keys, each to remove (asked to be sure of), and this | ||
* host's; and the dialog adding a key, opened by a button whose | ||
* `popovertarget` is `add-key`. A recovery key's holder can undo what | ||
* this host does to the group's identity, and take the group elsewhere | ||
* without it. | ||
* `popovertarget` is `add-key`, with goat's command to make one. A | ||
* recovery key's holder can undo what this host does to the group's | ||
* identity, and take the group elsewhere without it. | ||
*/ | ||
type Key = { key: string; holder: string; addedBy?: string }; | ||
let { keys, hostHolds }: { keys: Key[]; hostHolds: boolean } = $props(); | ||
/** goat's command that makes a key pair, its public half a did:key. */ | ||
const generate = 'goat key generate'; | ||
</script> | ||
| ||
<ol class="recovery-keys"> | ||
| @@ -48,6 +52,16 @@ | ||
</ol> | ||
<FormDialog id="add-key" title={m.recovery_keys_add_title()} action="?/key" submit={m.common_add()}> | ||
{#snippet intro()}{m.recovery_keys_add_intro()}{/snippet} | ||
<p class="mute"> | ||
<ParaglideMessage message={m.recovery_keys_add_goat}> | ||
{#snippet link({ children })}<a | ||
href="https://github.com/bluesky-social/goat" | ||
target="_blank" | ||
rel="noopener noreferrer">{@render children?.()}</a | ||
>{/snippet} | ||
</ParaglideMessage> | ||
</p> | ||
<div class="copyable"><code>{generate}</code><Copy text={generate} /></div> | ||
<label class="field" | ||
>{m.recovery_keys_key()} <input name="key" required placeholder="did:key:z…" /></label | ||
> | ||