~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The console's pages do the same act the same way, and settings are pages

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:console/tidy

What changes

The same act is done the same way on every page. Every act that takes input opens a dialog (FormDialog): inviting, adding a rule or a link, defining a role, giving someone roles, adding a recovery key, making an app password, labelling someone, resolving in the queue, and changing a picture. Every act that cannot be undone asks first, in one kind of dialog (ConfirmDialog): leaving, putting someone out, taking a rule or role away, taking a key off, revoking an app password, ending an app's access, and disconnecting an AI app. Lists are rows in their part's card, each with its avatar or mark, what is said about it under its name, and small acts at the row's end; "Show more" pages the apps acting as the group and what they did lately, as it did the members. Each part's heading carries its count and its one act, as a quiet button. One primary button per view; red only for the act of a confirming dialog. Times are said as days ("5 Nov 2026"), not as records hold them.

Empty states are one component, drawn alike everywhere. Empty is the same dashed box, words and space in every card and page, with an optional way out; nothing is loose text under a heading any more ("Asking to join" with nobody asking, the rules, the links, the queue, a member with nothing to change, an error page).

A group's settings are pages, reached by tabs. Profile (its profile, links, pictures and who sees it), Rules, Roles, Apps (the apps acting as it, its app passwords, and what they did lately) and Recovery keys, each at /g/<handle>/settings/... under one layout, the tabs showing only what the person looking may change. Links are a list with a dialog to add one, rather than five pairs of empty fields.

A group's page. A group with no banner shows no banner block; one with no picture shows its initial on a colour its name gives it, as every avatar now does. Its name and handle sit beside its picture, with Moderation and Settings across from them, no longer floating where the banner meets the card. Where the member stands reads as a sentence ("You're a member, as admin."), and leaving is a small quiet button that asks first. Invites waiting show whom by handle: listInvites now gives each invite's actor, as join requests already did (an optional field on inviteView).

The header's menu. The signed-in person's avatar and handle open a menu of what is theirs: their groups, starting one, moving an account here, and signing out last. Moderation and settings say which group they are under with a back link above their heading, and moderation's statuses are tabs. Home is the person's invites and groups, as cards with rows, and "Start a group" its one primary button.

The ui skill names these patterns and components as house rules, for the pages after this one, and just look signs in through the handle field as it now is.

Why

The owner looked at the signed-in group page and found it rough, and the settings page long and hard to find one's way in. Every page was looked at with just look in each state (signed out and in; member and not; admin and not; empty, one, many and long; phone and dark; each dialog and menu open), and what was wrong fixed there, by shared components rather than one-off markup. Settings became pages with tabs rather than one page with a side nav, as each part has its own writes and a page per part keeps each short on a phone.

How it was checked

just e2e, its flows updated where a form moved into a dialog or a settings part to its own page: every write still made and read back, the confirming dialogs cancelled and confirmed, links added and taken away, the settings tabs followed, the header's menu opened to sign out. npm run check, node harness/layers.mjs, node harness/docs.mjs, just lex, and the invites tests for the invite's actor. A fresh agent critiqued the pictures against the ui skill's house rules. Fixed from what it found: forms in dialogs opened from a list's row were laid out as the row (a rule matched forms anywhere under a row); the settings tabs clipped on a phone; a request's note and an invite's note sat apart from whom they belong to; role chips crowded each member's handle (the "member" chip everyone holds is gone); the "Show more" buttons outweighed the rows; two dialogs had no line on what they do; a part's heading repeated its tab; "Turn it down" and "Turn down" for the same act; "a member who may admits them"; and an error page that was a bare status. Left, as the house rules want them: initials on a colour for anyone without a picture, and the header's quiet Sign in beside a page's own.

Before and after pictures of the main pages are attached.

Shortcomings

What the apps acting as the group did lately is listed as the host words it, by URIs and DIDs. A member's row on a phone puts its two buttons under the handle. Typing on /new before its script runs can leave the address field unmade; one e2e run here hit it, and the next passed.

The apps acting as the group and app passwords still name a member by DID, as their methods give no handle. The Settings link shows to every member, though one who neither configures the group nor may make app passwords finds nothing there to change but says so. The "Groups on this host" list stays gone, as main took it out.

🤖 Generated with Claude Code

before-riders-alice.png

after-riders-alice.png

before-lanterns-alice.png

after-lanterns-alice.png

before-home-alice.png

after-home-alice.png

before-lanterns-settings-alice.png

after-lanterns-settings-alice.png

after-settings-rules.png

after-leave-confirm.png

after-menu-phone.png

Approved

This pull moves the console to shared FormDialog, ConfirmDialog and Empty components. It splits the group settings into tabbed pages under /g/<handle>/settings/..., and adds actor to each listInvites entry. All six checks pass on this head: check, test, web, lexicons, e2e and docs.

I read the Rust change, its test, the lexicon and docs edits, settings.ts, the settings layout and pages, LinksEditor, AppPasswords and dates.ts. They look right.

  • Each settings page's load gates on configures, or on passwords for the apps page.
  • A user who can only make app passwords is redirected from the profile page to the apps page.
  • actor is optional in the lexicon, so existing readers are unaffected.
  • The invites test covers the new field.

Not read: the other Svelte components, app.css and tokens.css, the SKILL.md changes, and the e2e and look harness changes. I relied on the passing checks for those and did not review the styling or markup.

One small thing, not blocking: unlink removes a link by its position in the list. If the profile changes between the page loading and the click, for example from another tab, a different link could be removed. Sending the URL along with the index and checking it on the server would close this.

Merged as 44ba58c