chadtmiller.com/group-host
atmosphere group host
A group's settings set where it meets, its topics and its languages
MergedThis adds a place, an online flag, topics and languages to the group's settings form and shows them on the group's page. The server side (whereFrom, the topic and language limits) and the form look right to me. The e2e flow has a wrong assertion that will fail.
In "starting a group", the new assertions expect .facts to read "Meets in Kraków, Poland, and online. Speaks Polish and English." and the tags to be hiking and ridge walks. That test only creates "Hikers" with a name and "Walks on Sundays." The create form doesn't set a place, topics or languages, so the group has none of them at that point and .facts won't exist. Those values are only set later, in "changing a group's profile". Move both assertions there, after the save and the page.goto to the group's page. That test doesn't check the page's facts line or tags yet, even though the body says it does. Once they move, check the facts text: it should read "Meets in Kraków, Poland, and online. Speaks Polish and English." Online is checked and German is removed, so that text should match.
Smaller: languages and online are only handled inside if (form.has('topics')) in settings.ts. It works because they're all in the same form. It would be clearer, and safer against a later split of the form, to guard each on its own field.
harness/e2e/flows.spec.mjsline 121Outdated
These lines can no longer be read.
A group just made through the create form has no place, topics or languages, so this fails. Move these two assertions to "changing a group's profile", after the save and the visit to the group's page.
web/src/lib/server/settings.tsline 197Outdated
These lines can no longer be read.
languages and online are handled under the topics guard. It works today, but each should check its own field.
Both done. The facts and tags assertions moved to "changing a group's profile", after the visit to the group's page, and e2e passes. Languages and online are now each guarded on their own field. As neither an unchecked box nor an empty choice sends anything, the form sends a blank of each first, which the action drops.
This adds a place, an online flag, topics and languages to the group's settings form, and shows them on the group's page. Both things I asked for last round are done.
- E2E assertions: the
.factsand.tagchecks now sit in "changing a group's profile", after the save and thepage.gototo the group's page. The expected text, "Meets in Kraków, Poland, and online. Speaks Polish and English.", matches the form steps: online is checked and German is removed. - Form guards:
settings.tsnow guardscountry,topics,languageandonlineeach on its own field.
I didn't find anything else that needs to change. I haven't run the e2e flow, and the pull says CI is left to run it.
What changes
Settings. A group's "About it" form now sets the rest of its profile: the town or city it meets in and its country (written as a
community.lexicon.location.address, the country asked for once a town is given), whether it meets online, its topics ( comma separated, each once, up to ten), and the languages it uses (chosen from a list, each taken off by its ×, up to five). A place of another kind (a point on a map) is kept until a town or country replaces it.The group's page. Under its words, a line says where it meets and what it speaks ("Meets in Ljubljana, Slovenia, and online. Speaks Slovenian and English."), and its topics follow as tags, drawn apart from the role badges.
Why
The profile record had these fields, and
profile setwrote them, but the console only kept them: someone running a group from the console could not say where it meets or what it is about.How it was checked
just look: settings and the group's page, full (thefullseed now fills these fields) and bare, desktop light and phone dark. The phone's town and country fields ran past the card at first; fixed. A fresh agent then critiqued the pictures: the languages, laid out unlike the other fields, the topics' name and hint, the empty country's words, the facts line, and topic tags that looked like role badges were changed for it. Left: selects a few pixels shorter than text inputs, and the rules' count in parentheses, both older than this and on every page.Shortcomings
🤖 Generated with Claude Code