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

The moderation queue names people by their handles

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

What changes

The queue names people. Each subject in fyi.opensocial.listSubjects (and resolveSubject's answer) now carries actor, the account it is or whose record it is, by its DID and handle. Each event in getSubjectHistory carries creator, who did it, beside createdBy. Both are optional fields added to fyi.opensocial.defs. Nothing is renamed or removed.

The moderation page reads like a queue. Each row shows the person's avatar and handle. Under it is what the subject is ("Account", "Post") and when it was reported ("Reported twice, last on 6 Nov 2026"). Then come its reasons as tags in plain words ("Spam", "Rude", "Misleading"), and the latest report's words. Its history is folded under the row. Each line there says who did what and when ("Reported by bob.test"), with the reason, the rule cited by its title ("Breaks “Be kind”") and any note. The row's button is "Review". It opens the dialog, which names the person, says what resolving and escalating do, and has a quiet Cancel. Each status's empty state says what fills it.

A reports look seed fills Lantern Hikers' queue after full: an account reported twice, once citing a rule; a post reported; one escalated; one resolved with a note.

Why

The queue showed bare DIDs, raw reason NSIDs (reasonMisleading) and every event as a run-on line, so a moderator couldn't tell who a report was about without looking the DID up. The row's order follows Ozone's queue, Bluesky's moderation tool, and its names for reasons. It keeps less on each row, as a group's queue is small. The host answers handles the way join requests already do (joinRequest.actor), so the console makes no extra calls per subject.

How it was checked

  • The host's moderation tests assert actor on account and record subjects, and creator on events.
  • clippy, just lex, svelte-check, the layer and dialog checks pass here. The e2e flow is updated for rows found by handle and the "Review" button, and left to CI, as is the coverage gate.
  • Every state was drawn with just look (open, escalated and resolved tabs, a history open, the dialog, an empty queue; desktop and phone, light and dark). A fresh agent critiqued the pictures, and its findings were fixed: no Cancel in the dialog, a row button naming one of two acts, "Reported once, last on", a stray indent where the date wrapped, a centred line in the dialog on a phone, vague empty states.

Shortcomings

  • Handles show without an @, as MemberRow and Person draw them everywhere else.
  • A record subject is shown by its author and the last word of its collection, not its content: the host does not read the record for the queue.
  • The forum demo reports the account, with the post's URI in its words, so its reports show as "Account". Reporting the record would show "Post".
  • The part's title stays "Subjects".

The pictures: before, with the forum demo's reports; then after, open, a history open, resolved, the dialog on a phone, and an empty queue.

🤖 Generated with Claude Code

1.png

open-alice-desktop-light.png

history-alice-desktop-light.png

resolved-alice-desktop-light.png

dialog-alice-phone-dark.png

empty-alice-desktop-light.png

Approved

This adds optional actor on subjects and creator on history events, resolved through the existing actor_views (one DID lookup per DID). It rebuilds the moderation page around handles, plain-word reasons, a History fold and a Review dialog, and adds a reports look seed. I found nothing that must change. The lexicon changes only add optional fields, the docs page is updated, and the tests assert actor and creator. I traced account_of on a record key (did/space/type/skey/repo/…): nth(4) lands on the repo, as intended. The actors[...] lookups are safe because the map is built from the same iterators. The .expect in account_of relies on the host only keeping space URIs as record subjects. That holds for the tests, but I didn't check the validation on the report path. I didn't run the checks; the e2e and coverage gate are left to CI, as your body says.

Approved

Since my last review (fccd920), the branch merged main and added one commit, 8e7f0fe, which only changes docs/guides/moderating.md and its screenshots and .txt snapshots. The guide now matches the new queue. It describes rows by handle, the History fold, the Review button and the Cancel button. It drops the old claims that the queue shows DIDs and that the label dialog needs a handle looked up elsewhere. The snapshot text agrees with the prose, and the look commands that open a row's history use selectors that match the new markup. I found nothing that must change. My earlier approval stands, and I didn't run the checks. The e2e flow and the coverage gate are left to CI, as your body says.

Merged as d77f5c9