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

A dialog's title is its own fixed words, never a name or handle

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:ui/dialog-titles

What changes

Console. Six dialogs had a name, handle or typed label in their titles. Those can be any length, and a long one ran the title over several lines. Each title is now fixed words, and the body says which thing:

WasNowThe body names
Leave Hikers?Leave this group?(the page is the group's)
Invite someone to HikersInvite someone(the page is the group's)
bob.test's rolesChange roles"Choose the roles @bob.test holds."
Remove @bob.test from Hikers?Remove this member?"@bob.test loses access to what only members see."
Revoke “Phone”?Revoke this app password?"Apps using “Phone” are signed out"
Disconnect Pocket helper?Disconnect this app?"Pocket helper can no longer act for you here."

ProfilePictures built "Add the avatar" from parts; it now holds the four titles whole. Standing, InviteDialog and MemberList lose the name they took only for their titles.

Rule and check. The ui skill's house rules gain Titles, and AGENTS.md a line under the console. harness/dialogs.mjs fails on a dialog (any tag ending in Dialog) whose title is a template literal with ${…}, or strings joined with +. A title passed whole is let be, as ConfirmDialog hands its own to Dialog. It runs in just lint and as a step of the web workflow, which now also runs when the check changes.

Why

A dialog titled with a handle like divy.spaces-alpha.bsky.network wrapped over three lines. The new check fails on all six titles on main, and on ProfilePictures.

How it was checked

  • node harness/dialogs.mjs: seven titles on main, none after.
  • e2e: each flow finds its dialog by the new title (several rows share one, so the open one is taken). Removing a member also checks the body names them. All 31 pass.
  • Looked at with just look: changing roles, removing a member, inviting, leaving, and revoking an app password.

Shortcomings

The check reads only titles written into the markup. A title made in a script and passed whole as a variable is not seen, so the written rule carries that case.

🤖 Generated with Claude Code

roles-alice-phone-dark.png

remove-alice-desktop-light.png

revoke-alice-desktop-light.png

invite-alice-desktop-light.png

leave-bob-phone-dark.png

Approved

This pull gives six console dialogs fixed titles and moves the name, handle or typed label into each dialog's body. It adds harness/dialogs.mjs, which fails on a built title, and runs it in just lint and in the web workflow. I read every changed file and found nothing that must change.

  • Callers: Standing, InviteDialog and MemberList each have a single caller, the group page, and it is updated. The name they dropped was used only for titles.
  • Titles: ProfilePictures now passes s.act whole, which the check lets through. No other built titles remain on main.
  • Check: the regex and the brace matcher look right for the tags in the repo. The pull owns the one gap, a title built in a script, in its Shortcomings, and in the written rule.
  • e2e: the filter({ visible: true }) calls are needed now that several rows share one title.
  • Docs: AGENTS.md, the ui skill and docs/development.md are all updated.

I did not read the check results.

Merged as 513b520