chadtmiller.com/group-host
atmosphere group host
The console's acts are sent in place, keeping the reader where they are
MergedThis sends the console's forms in place with use:enhance, through inPlace and inDialog in #lib/forms.ts. Dialogs now close on success. On refusal they stay open with what was typed and show the reason inside. I read the whole diff and found nothing that must change. I did not run the e2e checks.
- The server actions return
fail(status, { failed })(asGroup.ts,data.ts,settings.tsand the group pages). That is the shapeinDialogreads, so the in-dialog message matches what the page notice used to show. - A successful
inDialogsend hides the popover, then callsupdate({ reset: false }).Dialog's toggle handler empties only fields that started empty, so a role's name and its ticked actions are left to the redraw. - Minor, not blocking: a dialog field that shows existing data keeps its typed value if the dialog is cancelled after a refusal. It stays that way until the page is redrawn. The pull's own description says this is by design.
- The shortcoming the pull names, that the "Switch back on" form in the delete pull still posts plainly, is acknowledged and tracked there.
Carried forward: the change this pull makes at 173e3f16c471d551c3fefe511b786fb91837b59d is the one reviewed at 77e9a90ed36df91cca6b5a2df3db0745d60e1a8f, so that review stands. What is new comes from its base.
Carried forward: the change this pull makes at 2eb4127cec1bd7dab65f20a47158be0832108372 is the one reviewed at 173e3f16c471d551c3fefe511b786fb91837b59d, so that review stands. What is new comes from its base.
What changes
Every act on a page is sent in place, with
use:enhance, rather than as a plain post that reloads the page at its top. That covers adding a role, rule, link or picture, inviting, approving, removing and resolving.How:
#lib/forms.tsholds the two ways:inPlacefor a form on the page, andinDialogfor one in a dialog.FormDialog,ConfirmDialogand the moderation queue's resolve dialog useinDialog; the inline forms of eight organisms useinPlace.Dialogempties what was typed into it whenever it closes, sent or cancelled, and clears its error. A field that shows what is there already (a role's name, its ticked actions) is left to the page drawn again.Why
Every act reloaded the page and jumped to the top, so changing a member's roles far down the list lost your place.
How it was checked
just look.Shortcomings
inPlacefor it.🤖 Generated with Claude Code