chadtmiller.com/group-host
atmosphere group host
0
0
A field a form can be sent without says (optional)
.claude/skills/ui/SKILL.md+6−0
| @@ -134,6 +134,12 @@ a capital: Atmosphere, Bluesky, PDS, DID, AI. Labels end with no full | ||
stop; what is said, a sentence, ends with one. Names stay as written: | ||
opensocial, handles, roles such as `admin`. No `text-transform`. | ||
| ||
**Optional fields.** A text field a form can be sent without says so | ||
after its label, `<span>Note <span class="optional">(optional)</span></span>`, | ||
in the muted colour; a required one has `required` and no mark. Never | ||
"if you like", an asterisk, or "Required". A dropdown or checkbox, which | ||
always has a value, and a search box take no mark. | ||
| ||
**Empty states.** One component, `Empty.svelte`, for every empty list or | ||
part, drawn where the list's rows would be: inside the part's card, in | ||
the same dashed box, never as loose text under its heading. Its title | ||
docs/guides/shots/moderating-label-dialog-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-label-dialog.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-label-dialog.txt+2−2
| @@ -15,8 +15,8 @@ | ||
- paragraph: Asks apps that follow the group's labels to hide everything this account posted. They stay in the group. | ||
- button "Take down" | ||
- heading "Decision" [level=3] | ||
- text: Note | ||
- textbox "Note" | ||
- text: Note (optional) | ||
- textbox "Note (optional)" | ||
- button "Cancel" | ||
- button "Escalate" | ||
- button "Resolve" | ||
docs/guides/shots/moderating-resolve-dialog-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-resolve-dialog.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-resolve-dialog.txt+2−2
| @@ -1,6 +1,6 @@ | ||
- heading "Decision" [level=3] | ||
- text: Note | ||
- textbox "Note": Taken down and removed from the group. | ||
- text: Note (optional) | ||
- textbox "Note (optional)": Taken down and removed from the group. | ||
- button "Cancel" | ||
- button "Escalate" | ||
- button "Resolve" | ||
docs/guides/shots/rules-add-dark.png+0−0
A binary file, not shown.
docs/guides/shots/rules-add.png+0−0
A binary file, not shown.
docs/guides/shots/rules-add.txt+2−2
| @@ -5,7 +5,7 @@ | ||
- textbox "Rule": | ||
- /placeholder: Be kind | ||
- text: Ride with lights after dark | ||
- text: What it means | ||
- textbox "What it means": Front and back lights on from sunset, every ride. | ||
- text: What it means (optional) | ||
- textbox "What it means (optional)": Front and back lights on from sunset, every ride. | ||
- button "Cancel" | ||
- button "Add" | ||
docs/guides/shots/starting-bob-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-bob.png+0−0
A binary file, not shown.
docs/guides/shots/starting-bob.txt+2−2
| @@ -11,7 +11,7 @@ | ||
- paragraph: Joining is by request. | ||
- heading "Ask to join" [level=2] | ||
- paragraph: Someone in Book club reviews each request. | ||
- text: Note | ||
- textbox "Note" | ||
- text: Note (optional) | ||
- textbox "Note (optional)" | ||
- button "Send request" | ||
- contentinfo: console.group-host.internal runs opensocial | ||
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+2−2
| @@ -9,8 +9,8 @@ | ||
- textbox "Its address .groups.test" | ||
- text: .groups.test | ||
- paragraph: This is the group's handle and web address. You can change it. | ||
- text: What it is for | ||
- textbox "What it is for" | ||
- text: What it is for (optional) | ||
- textbox "What it is for (optional)" | ||
- 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+2−2
| @@ -11,8 +11,8 @@ | ||
- paragraph: | ||
- text: riders.groups.test is taken. | ||
- button "Use riders-2.groups.test" | ||
- text: What it is for | ||
- textbox "What it is for" | ||
- text: What it is for (optional) | ||
- textbox "What it is for (optional)" | ||
- text: How people join | ||
- combobox "How people join": | ||
- option "An admin approves who joins" [selected] | ||
docs/guides/shots/starting-words-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-words.png+0−0
A binary file, not shown.
docs/guides/shots/starting-words.txt+11−11
| @@ -15,10 +15,10 @@ | ||
- heading "About it" [level=2] | ||
- text: Name | ||
- textbox "Name": Book club | ||
- text: What it is for | ||
- textbox "What it is for": We read one book a month and meet to talk it over. | ||
- text: Town or city it meets in | ||
- textbox "Town or city it meets in" | ||
- text: What it is for (optional) | ||
- textbox "What it is for (optional)": We read one book a month and meet to talk it over. | ||
- text: Town or city it meets in (optional) | ||
- textbox "Town or city it meets in (optional)" | ||
- text: Country | ||
- combobox "Country": | ||
- option "No country" [selected] | ||
| @@ -272,20 +272,20 @@ | ||
- option "Zambia" | ||
- option "Zimbabwe" | ||
- checkbox "It meets online" | ||
- text: It meets online Topics | ||
- textbox "Topics Separate up to ten with commas, like climbing, choir or renters' union.": novels, reading | ||
- text: It meets online Topics (optional) | ||
- textbox "Topics (optional) Separate up to ten with commas, like climbing, choir or renters' union.": novels, reading | ||
- text: Separate up to ten with commas, like climbing, choir or renters' union. | ||
- group "Languages it uses": | ||
- text: Languages it uses | ||
- combobox "Languages it uses" | ||
- group "Languages it uses (optional)": | ||
- text: Languages it uses (optional) | ||
- combobox "Languages it uses (optional)" | ||
- text: Choose up to five. | ||
- text: How people join | ||
- combobox "How people join": | ||
- option "An admin approves who joins" [selected] | ||
- option "Anyone can join right away" | ||
- option "Only people who are invited" | ||
- text: Its own site | ||
- textbox "Its own site" | ||
- text: Its own site (optional) | ||
- textbox "Its own site (optional)" | ||
- button "Save the profile": Save | ||
- status: Saved | ||
- heading "Links0" [level=2] | ||
web/src/lib/molecules/PickMany.svelte+8−3
| @@ -9,7 +9,8 @@ | ||
* the form. | ||
* The form is sent each chosen as `name`, after a blank one, so a form | ||
* with none chosen still says so. Under it, how many it takes; at | ||
* `max`, the field goes, and the hint says why. | ||
* `max`, the field goes, and the hint says why. `optional`, it says so | ||
* after its label, as a field the form can be sent without. | ||
*/ | ||
let { | ||
id, | ||
| @@ -19,7 +20,8 @@ | ||
chosen = $bindable([]), | ||
max, | ||
placeholder, | ||
most | ||
most, | ||
optional = false | ||
}: { | ||
id: string; | ||
label: string; | ||
| @@ -30,6 +32,7 @@ | ||
placeholder: string; | ||
/** How many at most, in words, for the hint under it: "five". */ | ||
most: string; | ||
optional?: boolean; | ||
} = $props(); | ||
let field = $state<HTMLInputElement>(); | ||
let typed = $state(''); | ||
| @@ -96,7 +99,9 @@ | ||
</script> | ||
| ||
<div class="field" role="group" aria-labelledby="{id}-label"> | ||
<label id="{id}-label" for={id}>{label}</label> | ||
<label id="{id}-label" for={id} | ||
>{label}{#if optional}{' '}<span class="optional">(optional)</span>{/if}</label | ||
> | ||
<div class="pick-many"> | ||
<input type="hidden" {name} value="" /> | ||
{#each chosen as value (value)}<input type="hidden" {name} {value} />{/each} | ||
web/src/lib/organisms/GroupSite.svelte+5−1
| @@ -77,7 +77,11 @@ | ||
<details class="more" open={!!(site?.reads.length || site?.fallback)}> | ||
<summary>Advanced</summary> | ||
<label class="field" | ||
>Send every address to one page, for single-page apps | ||
><span | ||
>Send every address to one page, for single-page apps <span class="optional" | ||
>(optional)</span | ||
></span | ||
> | ||
<input | ||
name="fallback" | ||
maxlength="512" | ||