diff --git a/CHANGELOG.md b/CHANGELOG.md index 7628c78..3181176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ Versions follow `package.json`. A tag `v` publishes the image `ghcr.io/nicolasdb/solid-backoffice:` (`.github/workflows/ci.yml`); an instance pins it in `instance-template/.env`. +## Unreleased + +- **A request says what accepting gives its agents**: "Agents: none" with + an empty dot read like something missing, though agents are no condition. + It is now a plain line: "No agent acts for them.", or "Their agent reads + the roster too once accepted: …", since accepting grants it Read. Each + agent shows by its name (`intern-agent`), the whole WebID one click away + to copy, so two long addresses no longer squeeze the line. + ## 0.3.2 — 2026-11-27 - **A WebID on your own domain works with every profile step** (#26, diff --git a/src/admin.ts b/src/admin.ts index 70ead32..863dda6 100644 --- a/src/admin.ts +++ b/src/admin.ts @@ -27,6 +27,7 @@ import { } from "./lib/admin"; import { declaresMembership, type Collective } from "./lib/collective"; import { describePodError } from "./lib/pod"; +import { webIdName } from "./ui/address"; import { announce } from "./ui/a11y"; import { esc, toast } from "./ui/patterns"; import { bindButton, bindForm, run } from "./bind"; @@ -130,6 +131,19 @@ function check(ok: boolean, text: string): string { return `
  • ${text}
  • `; } +/** + * Agents are not a condition to accept, so no dot: a plain line. Accepting + * also gives each agent their profile declares Read on the roster, so the + * line says so before the owner clicks. + */ +function agentsLine(delegates: string[]): string { + if (!delegates.length) return "No agent acts for them."; + const list = delegates.map((d) => copyable(d, "WebID copied.", webIdName(d))).join(", "); + return delegates.length === 1 + ? `Their agent reads the roster too once accepted: ${list}` + : `Their agents read the roster too once accepted: ${list}`; +} + function renderRequest(request: Request, i: number, collective: Collective): string { const { message, person, flags, listed, knownNick, nick, nickTakenBy } = request; const profile = person.profile; @@ -139,8 +153,8 @@ function renderRequest(request: Request, i: number, collective: Collective): str ${check(declaresMembership(profile, collective.group), declaresMembership(profile, collective.group) ? `Profile says they belong to ${name}` : `Profile does not say they belong to ${name}`)} ${check(!!profile.inbox, profile.inbox ? "Has an inbox for the answer" : "No inbox: the answer cannot be sent; tell them another way")} - ${check(profile.delegates.length > 0, `Agents: ${profile.delegates.length ? profile.delegates.map((d) => `${esc(d)}`).join(", ") : "none"}`)} - ` + +

    ${agentsLine(profile.delegates)}

    ` : `

    ${esc(person.problem ?? "Their profile could not be read.")}

    `; const sent = message.published ? `${esc(new Date(message.published).toLocaleDateString())}` : "";