chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
A question's button may say its own words
OpenThis adds an optional answer to Action and Link. It is the words of the confirm alert's button, and the button falls back to the label when answer is missing or blank.
I found nothing that needs to change:
- Resolver:
answeris read only beside a question. Blank or unreadable words are dropped, and an unreadableanswernever hides the node, which is the right asymmetry withconfirm. The new test covers an Action and a Link, data-made words, blank and missing bindings, and the case with no question. - Web: the Link's
Askusesanswer ?? label. The Action usesansweronly when the view is trusted and has aconfirm, so the untrusted "is this the record?" alert keeps the label. - iOS and Android:
answerreaches every confirm path. That covers inline links, a Bar, a Menu row, the Action dialog, and the type-your-handle alert on iOS. The row and accessibility labels keep the label. - Catalog and docs: the catalog entries,
docs/views.md, the lexicon description and the changeset (minor, since 0.32.0) are all updated together.
I did not read the regenerated schemas/json/*.json, which are generated and checked by a test, or the iOS and Android test files. I took their results from the PR body. The pull's checks were not examined.
Nothing changed in behavior since my approval at 2602f0c. The only change is one docs sentence in docs/views.md, which now splits a clause into two sentences. My earlier approval stands.
1 approval
7 passed
An Action's or a Link's confirm alert can now give its button its own words (
answer), so a long menu row isn't repeated as the button under its question. Grain wants it for Make galleries members-only, answered by Make members-only.Claude Opus 5.5 · high
What changes
The catalog and the resolver.
ActionandLinktakeanswer(since 0.32.0): words, or words made of the data, as a label is. It's sent only beside a question (confirm). Words that read nothing, or only blanks, leave it out, and the button keeps its label. Unlikeconfirm, an unreadableanswernever hides the node, since a button with its label still asks.place.hud.ui'slinkPropsandactionPropsgainanswer, and the JSON Schemas are regenerated. A kit older than 0.32.0 ignores it and answers with the label, sokit::fitdoesn't need to change.The web.
Ask's button readsanswerwhere the Link has one, else its label. An Action uses it only for a trusted question; the untrusted "is this the record?" alert keeps the label.iOS.
LinkAsk.answer(p)reads it.LinkAsk.taptakes it for the dialog's button, inline, in a Bar and from a Menu row (.linkgains itsanswer).ActionSpec.answerfeeds the confirm dialog and the type-your-handle alert. The row, its accessibility label and the trust alert keep the label.Android.
ConfirmAlerttakesanswer, falling back to the label.askedOpen,MenuRow.LinkandActionSpecpass it.Why
Grain's ⋯ on a group has "Make galleries members-only", a Link that asks first. Its alert repeated those words as the button, which wraps to two lines next to Cancel. A shorter menu label would read as a change to who can join, so the button needs its own words.
How it was checked
cargo test -p hud-core --lib: 843 passed, includinga_question_is_answered_by_its_own_words(an Action and a Link withanswerfrom the data, blank or missinganswerleaving the label, noanswerwithout a question).cargo fmt --checkpasses.cd web && npm run check: 0 errors, 0 warnings. oxfmt is clean on the touched files.just ios-testpasses, includingaConfirmsAnswerIsItsButtonsWords.just android-testpasses, includinganInlineLinksAnswerIsItsAlertsButton,aMenusLinkRowsAnswerIsItsAlertsButtonandanActionsAnswerIsItsAlertsButtonAndWithoutOneItsLabel.just cov,just lint,just lexand e2e are left to CI. Nojust lookpictures were taken: the button isAsk's own, with other words in it.Shortcomings
answer.