Repository navigation
Conversation
A handle in render.json can carry pre_confirm: a title and description for the dialog that asks before the handle is sent, or skip to send it without asking. The renderer passes it to the task view unchanged.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
A task's confirmation dialog (shown before a primary, secondary or danger action is sent) has one fixed text for every button. An artifact needs to word it for its own action, or turn it off where the action is safe to repeat, such as a verify that only checks the form.
This adds an optional
pre_confirmto a handle inrender.json. The renderer passes it to the task view unchanged; the portal decides what to show.Type of Change
Changes Made
zoneview.HandleClaimgainsPreConfirm *HandlePreConfirm(JSONpre_confirm, omitted when unset).HandlePreConfirm:skip(send without asking),titleanddescription(an empty one leaves the portal's own text).filterLegalHandlescopies each claim whole, andEnrichedComponent.Handlesreuses the type.Example handle:
{ "command": "cancel_cdn", "label": "Cancel CDN", "element": "danger_action", "pre_confirm": { "title": "Cancel this CDN?", "description": "The CDN will be withdrawn from Customs." } }Testing
TestRender_CarriesHandlePreConfirmcovers a handle with a title and description, one withskip, and one withoutpre_confirm, which comes out with none.Checklist
Related Issues
N/A
Additional Notes
Backward compatible: a handle without
pre_confirmis unchanged. The portal (nsw-srilanka trader-app) and the artifacts follow once this is released.🤖 Generated with Claude Code
Summary by CodeRabbit