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

The console names people, uses plain verbs, and marks invites anywhere

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

What changes

A part's act and a row's acts are one size. "Invite someone", "Add a link", "Create an app password" and the other acts across from a part's heading are now the size of the row acts beside them. Two rules in app.css set this for every page: one for .section-head's act and one for .row-actions.

An invite can be declined from the group's page. Someone invited who opens the group sees a quiet "Decline" beside Join. It calls declineInvite, as the home page does, and asks nothing first, since another invite can be sent. Afterwards the panel shows what the join policy says to anyone not invited.

Settings is only for a member it has something for. The group's page shows Settings, and the settings layout shows each tab, only to a member whose roles grant group.configure or who may create app passwords (a grant of repo:*). Both are read from getGroup: the viewer actions, and the bindings of the viewer's roles. A member who opens a settings address with nothing for them gets the page's empty state and a way back to the group, not a 403 error page.

People are named by handle, and what apps did reads as sentences.

  • "Apps acting as the group", app passwords and the activity list show each person as their avatar initial and handle.
  • listGroupTokens (sessionView, activityView) and listAppPasswords (appPassword) each gain an optional actor.
  • activityView also gains an optional write, the record written in its parts (operation, collection, key, space), and an optional subject, the person a membership or invite is about. All are optional, and the host parses them from its log.
  • "Lately" is now "What apps did as the group", with a line saying what it lists. It shows each write an app made, newest first, as a sentence: "Phone posted", "@alice.test invited @carol.test", "@alice.test added @bob.test". Under each row, muted, is the member who let the app in and the time.
  • An app password's sessions are named by the password ("Phone"), the console's own by "This console", and an OAuth app by its address. The host keeps no client name for group grants.
  • The wording lives in web/src/lib/activity.ts. A new molecule, Person, shows someone inside a line of text.

Invites are marked from anywhere. The root layout reads getActorInvites once, together with the viewer. While invites are waiting, the header's avatar carries a dot, and the user menu's "Invites" item shows the count and links to /#invites. The home page always shows "Invites waiting" above your groups. When none are waiting, it says so with Empty.

The verbs people know from other apps. Delete, Remove, Cancel, Approve and Decline, Revoke, Create, Add and Save replace "Take away", "Take back", "Put out", "Turn down", "Let in", "Take off", "End access", "Define" and "Make". The member confirm reads "Remove @bob.test from Riders?" with "They can ask to join again." under it. Docs prose about the console follows; "Leaving and being put out" is now "Leaving and being removed". The names eject, member eject, member_eject and --undo are unchanged.

Plain words. Console copy was rewritten to remove the tells of machine writing: triplets, colon chains, "who may", abstract nouns standing for people, and restating lines. Every string changed is listed below. The host serves no HTML pages of its own, so all of this is in web/src.

The ui skill gains "Verbs" and "Plain words" under House rules. The critique step now reads every visible string against both. There is a new look seed, apps: an app signed in to Riders with an app password, having written as the group.

just dev has an invite waiting for alice. It also builds the opensocial command. Its world adds Hikers (hikers.groups.test), run by bob, which invites alice. docs/development.md and docs/reference/cli.md say so.

Why

These are the owner's loose ends after the console cleanup:

  • section-head buttons were a size bigger than the row buttons beside them;
  • an invite could not be declined where it is shown;
  • the Settings button led most members to an empty page;
  • the apps lists showed raw DIDs and at:// strings;
  • an invite was marked only on the home page;
  • buttons used verbs no other app uses;
  • the copy read stiff.

For app passwords, the console reads the bindings in getGroup rather than calling listAppPasswords to see whether it is refused. viewer has no action for creating app passwords, but the bindings say which roles may write any collection as the group, which is what the host checks.

How it was checked

  • group_tokens tests assert actor on sessions and activity, and write and subject on a membership write, a role write and a non-write. app_passwords tests assert actor. Those tests and the invites tests pass.
  • CI's test check passes under the coverage gate.
  • cargo fmt --check and clippy (warnings denied) pass.
  • node harness/layers.mjs, node harness/lexicons.mjs, node harness/docs.mjs and npm run check pass.
  • just e2e passes, 31 flows, and adds:
    • declining an invite from the group's page: the header dot, "Invites 1" in the menu leading to /#invites, the panel afterwards, then the empty invites part and a plain "Invites" item;
    • a plain member seeing no Settings link, and the empty state at /settings, /settings/rules and /settings/apps;
    • the "Remove @bob.test from Hikers?" confirm;
    • app passwords and the activity list naming alice by handle, with no at:// or did: in the activity;
    • every renamed button and confirm.
  • Every state touched was looked at with just look:
    • admin, moderator, plain member and invited;
    • phone and dark;
    • menus and the remove dialog open;
    • --seed full, long, waiting and the new apps.

Two fresh critiques were run on the pictures. Fixed from them:

  • home's "Invites" against the group page's "Invites waiting";
  • a handle in a line of text set larger than the line;
  • an app password quoted in one list and plain in another;
  • the activity row's avatar drawing a quote mark;
  • a missing space before the time;
  • "You're a member, as admin." is now "You're a member with the admin role.";
  • a clumsy line in the empty invites part.

Left as they are, with the reason:

  • The menu's Invites and Your groups both lead home, and the empty invites part sits above the groups: the owner asked for both.
  • Moderation's "Label someone" stays the page's act, not one part's.
  • The invite panel's buttons are full size, as that card's other acts are.
  • Settings' empty state sits on the page, as the house rules say for a page with nothing for the reader.
  • Older items not touched by this pull, left for another one:
    • several identical "This console" sessions;
    • raw action ids on the roles page;
    • the role key shown beside its name;
    • no count on recovery keys;
    • "Joining is by request." shown to an invited person;
    • the inviter not named;
    • long handles breaking mid-word on a phone;
    • the moderation queue's nouns.

Shortcomings

  • "What apps did as the group" shows only writes. Sign-ins, revocations and app passwords created stay in the host's log and do not show there.
  • A write by a member from this console shows the member as the actor, so the list mixes members and apps.
  • The host keeps no client name for group grants, so an OAuth app is named by its address.
  • The group's page still asks getActorInvites for itself, to know whether that group invited the person.
  • Error messages that come from the host itself, such as "missing group.configure", are shown as the host words them.

Strings changed

Verbs: "Put out" / "Put them out" → "Remove"; "Let in" → "Approve"; "Turn down" → "Decline"; "Withdraw it" → "Cancel request"; "Take back" → "Cancel invite"; "Take away" (rule, role) → "Delete", with "Delete this rule?" / "Delete this role?"; "Take away" (link), "Take the avatar away" → "Remove", "Remove the avatar"; "Take off" / "Take this key off?" → "Remove" / "Remove this key?"; "End access" / "End this app's access?" / "End its access" → "Revoke" / "Revoke this app's access?" / "Revoke"; "Revoke it" → "Revoke"; "Disconnect it" → "Disconnect"; "Define a role" / "Define the role" → "Create a role" / "Create"; "Make an app password" / "Make it" → "Create an app password" / "Create"; "Save the profile" / "Save who sees it" / "Save their roles" → "Save"; "Add the rule" / "Add the link" / "Add the key" → "Add"; "Lately" → "What apps did as the group"; "You are invited" → "Invites waiting"; "Label taken back" → "Label removed".

Plain words:

  • "They ask, and someone who may lets them in" → "People ask to join, and an admin approves them"
  • "Anyone signed in, at once" → "Anyone can join right away"
  • "Only by invitation" → "Only people who are invited"
  • "Made from its name; change it if you like. It is the group's handle, and where its pages are." → "This is the group's handle and web address. You can change it."
  • "You'll no longer be a member, nor see what only members see. To come back, you join again as anyone does." → "You'll lose access to what only members see. You can ask to join again later."
  • "Its chat, its calendar, its site: where else people find the group." → "Other places to find the group, like its chat or website."
  • "What it is, if you like" → "Title, if you like"
  • "Whoever asks shows here, with their note." → "Requests to join show up here."
  • "for a member who may admit people:" → "for a member whose roles admit people:"
  • "What they may do here, as each role lets them. Every member is a member; the rest are yours to give." → "Choose the roles you can give. Everyone keeps the member role."
  • "Try fewer letters of it, or clear the search to see everyone." → "Try fewer letters, or clear the search to see everyone."
  • "The roles you may give" → "Roles you can give"
  • "The role goes, and what it lets its holders do with it. Only a role nobody holds can be deleted." → "People with this role lose what it lets them do. You can only delete a role nobody has."
  • "What its holders may do, and whom they may give roles to. Members are given it from the group's page." → "Choose what people with this role can do, and which roles they can give. You give roles to members from the group's page."
  • "Its holders may give" → "People with it can give"
  • "May / Nothing beyond being a member" → "Can / Nothing more than a member"
  • "What each role lets its holders do here. Members are given roles from the group's page." → "What people with each role can do. You give roles to members from the group's page."
  • "“{r.title}” stops being one of the group's rules, here and in every app that shows them." → "“{r.title}” will no longer be one of the group's rules, here or in other apps."
  • "What everyone in the group agrees to, shown on its page in this order." → "Rules everyone in the group agrees to. They show on the group's page in this order."
  • "Anyone, and found on the network" → "Anyone, and it can be found"
  • "Its members alone: to others, just its handle" → "Members only. Others see just its handle."
  • "Hiding it stops it being found from now on. It cannot undo what someone has already seen." → "Hiding it stops new people finding it. It can't undo what people have already seen."
  • ". Copy it now: it is not shown again." → ". Copy it now. You won't see it again."
  • "Whatever signed in with it is signed out, and it signs in no more." → "Apps using it are signed out, and it stops working."
  • "An app that signs in with a handle and a password, as the Bluesky app does, signs in to the group with one." → "Create one for an app that signs in with a handle and password, like the Bluesky app."
  • "It is shown once, when it is made." → "You'll see it once, right after it's created."
  • "By oauth / getGroupAuth / appPassword, for …" → "Signed in with OAuth / From this console / With an app password, for …"
  • "can no longer act as the group. To act as it again, it signs in again." → "can no longer act as the group. It can sign in again later."
  • "No app acts as this group. An app signed in as the group, by a member who may, shows here." → "No apps are signed in as this group. When a member signs an app in as the group, it shows up here."
  • "It can no longer act for you here. To use it again, you connect it again." → "It can no longer act for you here. You can connect it again later."
  • "Add the address above to one, and it shows here." → "Add the address above to an AI app, and it shows up here."
  • "It'll ask you to sign in here, and to say yes." → "It will ask you to sign in here and approve it."
  • "Those who may read the group's moderation queue see it here." → "Only people whose roles let them read the moderation queue can see it."
  • "Those who run {name} change this." → "Only people who run {name} can change its settings."
  • "The keys that can change the group's identity, the highest ranked first. A steward's can undo what this host does, and take the group elsewhere without it." → "Keys that can change the group's identity, highest ranked first. A key you hold can undo what this host does, or move the group elsewhere without it."
  • "This host keeps no keys here. Its identity is not one this host can change." → "This host keeps no keys here. This host can't change this group's identity."
  • "This host no longer holds a key to the group's identity, so it cannot change them." → "This host no longer holds a key to the group's identity, so it can't change the keys."
  • "A key you hold, which can recover the group's identity, and move it, without this host." → "A key you hold. With it you can recover the group, or move it, without this host."
  • "The label is the group's, on their account, for apps that follow the group's labels to act on." → "The group puts the label on their account. Apps that follow the group's labels can act on it."
  • "We cannot find ${handle}." → "We can't find ${handle}."
  • "A group has ${MAX_LINKS} links at most: take one away first." → "A group can have up to ${MAX_LINKS} links. Remove one first."
  • "It can't have that address here: choose another." → "That address is taken. Try another."
  • "Sign in first, as yourself: you will be its founder." → "Sign in first. You'll be the group's founder."
  • "Sign in first, as yourself: you will run the group it becomes." → "Sign in first. You'll run the group it becomes."
  • "An app wants to sign in as one of your groups. Sign in first, as yourself." → "An app wants to sign in as one of your groups. Sign in first."
  • "That name is its own word for itself, not checked. It came from" → "The app chose this name, and it isn't checked. It came from"
  • "You hold no role in this group, so you cannot sign an app in as it." → "You don't have a role in this group, so you can't sign an app in as it."
  • "You hold no role in any group on this host." → "You don't have a role in any group on this host."
  • "Ask someone in {name} to invite you. An invite shows here when it comes." → "Ask someone in {name} to invite you. Your invite will show up here."
  • "Someone in {name} looks at each request." → "Someone in {name} reviews each request."
  • "Whoever holds it can no longer recover the group's identity with it." → "The person who holds it can no longer use it to recover the group."
  • "Whoever you invite shows here until they join or decline it." → "People you invite show up here until they join or decline."
  • "Stop, and sign out of it" → "Cancel the move"
  • "Its posts, files and spaces are copied here, and its server emails you a code that lets it move." → "Everything in the account is copied here. Then its server emails you a code to finish the move."
  • "is copied here. Its server has emailed a code to the address the account has there." → "is copied here. Its server has emailed a code to the account's email address."
  • "Its server asks you to sign in to it, and to let this host move it." → "You'll sign in to the account's server and let this host move it."
  • "It could do what your roles there let you: {g.roles.map((r) => r.role).join(', ')}." → "It could do what your roles there let you do ({g.roles.map((r) => r.role).join(', ')})."
  • "Reports, labels and ejections show here while they are {status}." → "Anything {status} in the queue shows up here."
  • "You're a member, as admin." → "You're a member with the admin role."
  • "An invite from any group shows here, to join or decline." → "Invites from groups show up here."

🤖 Generated with Claude Code

before-lanterns-alice.png

after-lanterns-alice.png

after-remove-member.png

before-apps.png

after-apps-riders.png

after-apps-riders-phone.png

before-riders-invited.png

after-riders-invited.png

before-lanterns-bob.png

after-lanterns-bob.png

before-settings-bob.png

after-settings-bob.png

before-home-alice.png

after-home-alice.png

after-menu-invited-phone.png

Approved

This pull does four things. It lets an invited person turn down an invite from the group page. It shows Settings only to members who have something to change there. It names people by handle in the apps lists and "Lately". It marks waiting invites in the header and user menu.

I found nothing that must change. The two rules for who sees Settings (changes() in settings.ts: group.configure, or a * repo collection among the viewer's role bindings) match the host's list_app_passwords and may_issue checks. The settings layout's theirs check does the job of the removed 403s in the settings routes. The host-side actor_views call reads each DID once, and the filter now runs before the actor lookup. The new actor fields are optional, so the lexicon change only grows the schema.

Two minor notes, neither blocking:

  • settings() no longer catches a failed listAppPasswords. If the console's reading of the bindings and the host's check ever disagree, the whole settings layout fails rather than hiding the Apps tab. They agree today.
  • The root layout now makes a getActorInvites call on every page for a signed-in viewer. The body already says the group page still asks for itself.

I did not read these files, so they are unreviewed: docs/*, harness/e2e/flows.spec.mjs, .claude/skills/ui/SKILL.md, and the remaining small diffs (docs/reference/cli.md, docs/development.md, docs/design/membership.md). They are docs and e2e flows, which the repository's CI checks cover.

Approved

Round 2. Nothing from my first review needed changing, and none of it was asked for again. The new commit (232cfcd) reworks "Lately": the host now parses each log line into a write (operation, collection, rkey, space) and a subject, and the console words it in activity.ts. I read activity.ts, GroupActivity.svelte, Person.svelte, group_tokens.rs, actors.rs, app_passwords.rs and settings.ts. The other files in this commit are wording changes and the e2e flows, which I did not read. The e2e, lint and docs checks passed; test and web were still running when I looked.

The write_of parsing looks sound. Every DID it can look up, including each write's subject, goes into the one actor_views call, so the actors[&about] index cannot miss.

The body is out of date against this commit. It says "Lately" shows "Took a token for Riders' members" and "Signed in app.example". Now GroupActivity shows only entries that have a write, so token and sign-in entries no longer appear. Please update the body. If the page should still show those entries, that is a behaviour change.

One minor note: the host trims the log to ACTIVITY_SHOWN entries before the console filters out non-writes. Many sign-in entries can therefore crowd out the writes, and "Show more" cannot reach older ones. This is not blocking.

Approved

Round 3. I read the diff from 232cfcd to 2fa6c81. It adds appName and bare to activity.ts, names apps in GroupApps and GroupActivity, rewords Standing and the empty invites text, and adds the apps look seed with its docs. I found no bugs. appName covers the console's own client, app-password clients and other addresses. The e2e assertion that no 'With an app password' session remains matches the new wording.

Last round I asked you to update the body. It still says "Lately" shows "Took a token for Riders' members" and "Signed in app.example". That is not what the page shows now, because GroupActivity lists only entries that have a write. The body also says nothing about the new apps seed or the reworded standing text. I'm not blocking on this, but please correct the body before merging so the merged description matches what ships.

My earlier note about the log being trimmed to ACTIVITY_SHOWN before the console filters out non-writes still applies, and is still not blocking.

I did not read the other files in the earlier commits (docs, flows.spec.mjs, the other look seeds). CI checks cover them.

Merged as 2b2b4fd