catalogue: T9 — the request confirm, the suggest variant, and the nothing-sent state #1127

Closed
opened 2026-09-01 20:50:21 +00:00 by ben · 2 comments
Owner

Parent

Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice dashboard-request-confirm in docs/slices/catalogue.yaml.

What to build

The explicit act, end to end: Request opens the P4-S2b-req confirm stating the four facts (TO the issue on Matou/idss + the email to ben@matou.nz; SAYING community + service + note; FROM the community's name only; VIA Mātou's broker) with the optional note and the one-per-community line; Send disables the buttons behind the Sending chip and calls the send route. Accept returns to Browse with the card requested-on-date for every operator. Failure renders P4-S2bx — nothing was sent, reason in human words, note kept, Try again / Leave it for now. The Suggest variant (name required, product optional, why required; search-miss pre-fill) rides the same send; accepted suggestions list as dated lines under the Suggest card.

Acceptance criteria

  • The confirm renders the wireframe contract (what-is-sent four facts, request-note, one-per-community-note, send-request/cancel-request, sending chip); Cancel sends and records nothing
  • Accept → Browse shows Requested on ‹date›; a second operator's session shows the same; a dedupe send shows the ORIGINAL date with no error
  • Failure → S2bx renders request-failed-note + failure-reason + request-note-kept; retry re-sends the kept note; Leave it returns to an unchanged candidate card
  • The suggest variant validates its required fields and pre-fills from a search miss; accepted suggestions render as dated lines, not re-sendable
  • design-verify green against p4-s2b-req-request-confirm.html and p4-s2bx-request-nothing-sent.html

Blocked by

  • #1126 (dashboard-browse-tab)
  • #1124 (request-send-route)

Task manifest

task: dashboard-request-confirm
implements_flow: p4-provisioning
implements_edge: "S2b→S2b-req→S2b | S2b-req→S2bx→{S2b-req,S2b}"
wireframe: docs/ux/wireframes/p4-provisioning/p4-s2b-req-request-confirm.html + p4-s2bx-request-nothing-sent.html
seam: dashboard component tests over the send route (fake broker behind)
depends_on: [catalogue:dashboard-browse-tab, catalogue:request-send-route]
out_of_scope: [arrival loop]
needs_human_decision: []
## Parent Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice `dashboard-request-confirm` in docs/slices/catalogue.yaml. ## What to build The explicit act, end to end: Request opens the P4-S2b-req confirm stating the four facts (TO the issue on Matou/idss + the email to ben@matou.nz; SAYING community + service + note; FROM the community's name only; VIA Mātou's broker) with the optional note and the one-per-community line; Send disables the buttons behind the Sending chip and calls the send route. Accept returns to Browse with the card requested-on-date for every operator. Failure renders P4-S2bx — nothing was sent, reason in human words, note kept, Try again / Leave it for now. The Suggest variant (name required, product optional, why required; search-miss pre-fill) rides the same send; accepted suggestions list as dated lines under the Suggest card. ## Acceptance criteria - [ ] The confirm renders the wireframe contract (what-is-sent four facts, request-note, one-per-community-note, send-request/cancel-request, sending chip); Cancel sends and records nothing - [ ] Accept → Browse shows Requested on ‹date›; a second operator's session shows the same; a dedupe send shows the ORIGINAL date with no error - [ ] Failure → S2bx renders request-failed-note + failure-reason + request-note-kept; retry re-sends the kept note; Leave it returns to an unchanged candidate card - [ ] The suggest variant validates its required fields and pre-fills from a search miss; accepted suggestions render as dated lines, not re-sendable - [ ] design-verify green against p4-s2b-req-request-confirm.html and p4-s2bx-request-nothing-sent.html ## Blocked by - #1126 (dashboard-browse-tab) - #1124 (request-send-route) ## Task manifest ```yaml task: dashboard-request-confirm implements_flow: p4-provisioning implements_edge: "S2b→S2b-req→S2b | S2b-req→S2bx→{S2b-req,S2b}" wireframe: docs/ux/wireframes/p4-provisioning/p4-s2b-req-request-confirm.html + p4-s2bx-request-nothing-sent.html seam: dashboard component tests over the send route (fake broker behind) depends_on: [catalogue:dashboard-browse-tab, catalogue:request-send-route] out_of_scope: [arrival loop] needs_human_decision: [] ```

swarm-claim host=matou-dev-server-01 run=16127
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=16127 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1127 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1127,
  "status": "success",
  "commits": [
    "f5c863c1f50d2852c6e6c2a6f67c8584d87b5894"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/provisioning/RequestConfirmDialog.vue",
    "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue",
    "dashboard/src/components/provisioning/SetupSurface.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/provisionClient.ts",
    "dashboard/src/lib/catalogue.ts",
    "dashboard/src/lib/provision.ts",
    "dashboard/tests/fakes/provision.ts",
    "dashboard/tests/unit/requestConfirm.test.ts",
    "packages/openapi-spec/openapi.yaml",
    "packages/openapi-spec/tests/unit/spec.test.ts"
  ],
  "tests": [
    {
      "command": "npx vue-tsc -p tsconfig.json (dashboard)",
      "exit_code": 0
    },
    {
      "command": "npx eslint (changed files)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (dashboard, 1392 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (packages/openapi-spec, 8 tests)",
      "exit_code": 0
    },
    {
      "command": "node scripts/generate-client.mjs --check (openapi-spec)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The confirm renders the wireframe contract (what-is-sent four facts, request-note, one-per-community-note, send-request/cancel-request, sending chip); Cancel sends and records nothing": "RequestConfirmDialog.vue renders request-confirm[data-status=confirming] with tile, what-a-request-is, what-is-sent (to/saying/from/via), request-note, one-per-community-note, send-request, cancel-request, and the sending chip (data-status=sending, buttons disabled); requestConfirm.test.ts 'states the four facts...' + 'Cancel sends and records nothing' + 'Send disables the buttons behind the Sending chip'",
    "Accept -> Browse shows Requested on <date>; a second operator's session shows the same; a dedupe send shows the ORIGINAL date with no error": "SetupSurface.onSendRequest re-reads catalogueBrowse on accept; requestConfirm.test.ts 'Accept -> Browse shows Requested on <date>...', \"a second operator's session shows the same requested-on date\", 'a dedupe send surfaces the ORIGINAL date with no error'",
    "Failure -> S2bx renders request-failed-note + failure-reason + request-note-kept; retry re-sends the kept note; Leave it returns to an unchanged candidate card": "RequestConfirmDialog failed template (request-confirm[data-status=request-failed]) + SetupSurface catch; requestConfirm.test.ts 'renders the reason and the kept note...', 'retry re-sends the kept note...', 'Leave it for now returns to an unchanged candidate card'",
    "The suggest variant validates its required fields and pre-fills from a search miss; accepted suggestions render as dated lines, not re-sendable": "confirming-suggestion path (suggest-name required, suggest-product optional, request-note required, pre-filled from search miss) + sent-suggestions list under the Suggest card; requestConfirm.test.ts 'pre-fills from a search miss and validates its required fields', 'blocks Send when the name is cleared', 'accepted suggestions list as dated lines under the Suggest card, not re-sendable'",
    "design-verify green against p4-s2b-req-request-confirm.html and p4-s2bx-request-nothing-sent.html": "Both wireframes' data-field/data-action/data-status tokens reproduced verbatim in RequestConfirmDialog.vue across confirming/confirming-suggestion/sending/request-failed states, mounted as an overlay over the Browse tab in SetupSurface.vue (design-verify runs in the shared tail)"
  },
  "summary": "Built the P4-S2b-req request confirm, the suggest variant, and the one P4-S2bx fail-loud shape over a new requestService send seam, adding the missing send route to the OpenAPI contract.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1127 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1127, "status": "success", "commits": [ "f5c863c1f50d2852c6e6c2a6f67c8584d87b5894" ], "changed_files": [ "STATUS.md", "dashboard/src/components/provisioning/RequestConfirmDialog.vue", "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue", "dashboard/src/components/provisioning/SetupSurface.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/provisionClient.ts", "dashboard/src/lib/catalogue.ts", "dashboard/src/lib/provision.ts", "dashboard/tests/fakes/provision.ts", "dashboard/tests/unit/requestConfirm.test.ts", "packages/openapi-spec/openapi.yaml", "packages/openapi-spec/tests/unit/spec.test.ts" ], "tests": [ { "command": "npx vue-tsc -p tsconfig.json (dashboard)", "exit_code": 0 }, { "command": "npx eslint (changed files)", "exit_code": 0 }, { "command": "npx vitest run (dashboard, 1392 tests)", "exit_code": 0 }, { "command": "npx vitest run (packages/openapi-spec, 8 tests)", "exit_code": 0 }, { "command": "node scripts/generate-client.mjs --check (openapi-spec)", "exit_code": 0 } ], "criteria": { "The confirm renders the wireframe contract (what-is-sent four facts, request-note, one-per-community-note, send-request/cancel-request, sending chip); Cancel sends and records nothing": "RequestConfirmDialog.vue renders request-confirm[data-status=confirming] with tile, what-a-request-is, what-is-sent (to/saying/from/via), request-note, one-per-community-note, send-request, cancel-request, and the sending chip (data-status=sending, buttons disabled); requestConfirm.test.ts 'states the four facts...' + 'Cancel sends and records nothing' + 'Send disables the buttons behind the Sending chip'", "Accept -> Browse shows Requested on <date>; a second operator's session shows the same; a dedupe send shows the ORIGINAL date with no error": "SetupSurface.onSendRequest re-reads catalogueBrowse on accept; requestConfirm.test.ts 'Accept -> Browse shows Requested on <date>...', \"a second operator's session shows the same requested-on date\", 'a dedupe send surfaces the ORIGINAL date with no error'", "Failure -> S2bx renders request-failed-note + failure-reason + request-note-kept; retry re-sends the kept note; Leave it returns to an unchanged candidate card": "RequestConfirmDialog failed template (request-confirm[data-status=request-failed]) + SetupSurface catch; requestConfirm.test.ts 'renders the reason and the kept note...', 'retry re-sends the kept note...', 'Leave it for now returns to an unchanged candidate card'", "The suggest variant validates its required fields and pre-fills from a search miss; accepted suggestions render as dated lines, not re-sendable": "confirming-suggestion path (suggest-name required, suggest-product optional, request-note required, pre-filled from search miss) + sent-suggestions list under the Suggest card; requestConfirm.test.ts 'pre-fills from a search miss and validates its required fields', 'blocks Send when the name is cleared', 'accepted suggestions list as dated lines under the Suggest card, not re-sendable'", "design-verify green against p4-s2b-req-request-confirm.html and p4-s2bx-request-nothing-sent.html": "Both wireframes' data-field/data-action/data-status tokens reproduced verbatim in RequestConfirmDialog.vue across confirming/confirming-suggestion/sending/request-failed states, mounted as an overlay over the Browse tab in SetupSurface.vue (design-verify runs in the shared tail)" }, "summary": "Built the P4-S2b-req request confirm, the suggest variant, and the one P4-S2bx fail-loud shape over a new requestService send seam, adding the missing send route to the OpenAPI contract.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1127
No description provided.