catalogue: review cleanup — BEM names, test-name sweep, Heritage in CATEGORY_ORDER, four design drifts, check nuances #1171

Closed
opened 2026-09-02 20:45:00 +00:00 by ben · 2 comments
Owner

Parent

Feature #1073 / spec #1116. Filed from the 2026-09-02 four-axis review (Standards + Design axes; small Failure-path nuances).

What to build

The mechanical fixes the review found, in one pass:

Standards (hard violations, CODING-STANDARDS.md):

  • RequestConfirmDialog.vue: rename the banned cryptic BEM family (oc-reqdlg__k/__v/__kv/__co/__wt/__b1/__b3/__ta/__sk/__inp/__fld, oc-reqdlg itself) to honest words (__key, __value, __buttons, oc-request-dialog, …)
  • SelectRoleServicesScreen.vue: oc-tab--on / oc-face__opt--on → the spelled forms (--selected or --current)
  • ledger_test.go: TestNoDeleteOrDeclineMutation → one-underscore form; sweep the 15 new 2–3-underscore test names to TestSubject_Behaviour

Design drifts (wireframe contract):

  • Candidate confirm: render the what-is-sent four-facts panel BEFORE request-note (the code's own comment already claims this order)
  • Browse tab: add the bottom "Back to this device" button (b3, data-action="tab-for-this-device")
  • Suggest accept: show the one-line "Your suggestion reached Mātou" confirmation on the Browse tab
  • Wireframe fix: unify data-field="reason" vs gate-reason in p4-s2-select-role-and-services.html (one name, code follows)

Heritage: add the sixth category to CATEGORY_ORDER (dashboard/src/lib/provision.ts) — two shipped Heritage services currently render in a headingless trailing section

Check nuances (Failure-path axis):

  • Privacy-contract test: also assert the encoded wire body's key SET against the pin so a future omitempty field cannot cross zero-valued
  • Replace the name-regex-only no-delete/decline-mutation test with an API-surface assertion

Acceptance criteria

  • CODING-STANDARDS sweep regexes find nothing in the touched files; app + Go tests green
  • The four design drifts render per the wireframes (design-verify clean on p4-s2b / p4-s2b-req)
  • Heritage heading renders with the two shipped Heritage services under it

Blocked by

None — can start immediately.

## Parent Feature #1073 / spec #1116. Filed from the 2026-09-02 four-axis review (Standards + Design axes; small Failure-path nuances). ## What to build The mechanical fixes the review found, in one pass: **Standards (hard violations, CODING-STANDARDS.md):** - RequestConfirmDialog.vue: rename the banned cryptic BEM family (`oc-reqdlg__k/__v/__kv/__co/__wt/__b1/__b3/__ta/__sk/__inp/__fld`, `oc-reqdlg` itself) to honest words (`__key`, `__value`, `__buttons`, `oc-request-dialog`, …) - SelectRoleServicesScreen.vue: `oc-tab--on` / `oc-face__opt--on` → the spelled forms (`--selected` or `--current`) - ledger_test.go: `TestNoDeleteOrDeclineMutation` → one-underscore form; sweep the 15 new 2–3-underscore test names to `TestSubject_Behaviour` **Design drifts (wireframe contract):** - Candidate confirm: render the what-is-sent four-facts panel BEFORE request-note (the code's own comment already claims this order) - Browse tab: add the bottom "Back to this device" button (`b3`, data-action="tab-for-this-device") - Suggest accept: show the one-line "Your suggestion reached Mātou" confirmation on the Browse tab - Wireframe fix: unify `data-field="reason"` vs `gate-reason` in p4-s2-select-role-and-services.html (one name, code follows) **Heritage:** add the sixth category to CATEGORY_ORDER (dashboard/src/lib/provision.ts) — two shipped Heritage services currently render in a headingless trailing section **Check nuances (Failure-path axis):** - Privacy-contract test: also assert the encoded wire body's key SET against the pin so a future `omitempty` field cannot cross zero-valued - Replace the name-regex-only no-delete/decline-mutation test with an API-surface assertion ## Acceptance criteria - [ ] CODING-STANDARDS sweep regexes find nothing in the touched files; app + Go tests green - [ ] The four design drifts render per the wireframes (design-verify clean on p4-s2b / p4-s2b-req) - [ ] Heritage heading renders with the two shipped Heritage services under it ## Blocked by None — can start immediately.

swarm-claim host=elitebook-distributed-server-03 run=16658
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=16658 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1171 — status success

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

envelope
{
  "issue": 1171,
  "status": "success",
  "commits": [
    "50dcbf20e6b139caf582bc591c9c77f48ce9f9f0"
  ],
  "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/provision.ts",
    "dashboard/tests/unit/browseCatalogue.test.ts",
    "dashboard/tests/unit/requestConfirm.test.ts",
    "docs/ux/wireframes/p4-provisioning/p4-s2-select-role-and-services.html",
    "internal/brokerclient/client.go",
    "internal/brokerclient/client_test.go",
    "internal/controlapi/catalogue_requests_integration_test.go",
    "internal/servicerequest/ledger_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/servicerequest/ ./internal/brokerclient/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci (pre-push gate: gofmt, go build/vet/test ./..., golangci-lint, broker)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (dashboard, 1396 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "CODING-STANDARDS sweep regexes find nothing in the touched files; app + Go tests green": "BEM sweep oc-[a-z]+(__|--)[a-z]{1,2} is clean in RequestConfirmDialog.vue (oc-reqdlg family spelled to oc-request-dialog__key/__value/__copy/__title/__button-primary/...) and SelectRoleServicesScreen.vue (oc-tab--current, oc-face__opt--selected); every Test name in ledger_test.go / client_test.go / catalogue_requests_integration_test.go carries exactly one underscore (TestNoDeleteOrDeclineMutation -> TestLedger_APISurfaceHasNoDeleteOrDecline; 14 TestClient_RequestService_* / TestCatalogueRequests_*_* collapsed). Go tests + full dashboard vitest (1396) green.",
    "The four design drifts render per the wireframes (design-verify clean on p4-s2b / p4-s2b-req)": "Candidate confirm renders what-is-sent BEFORE request-note (locked by a new requestConfirm.test order assertion); Browse tab has the bottom Back to this device button data-action=tab-for-this-device (new browseCatalogue.test); suggestion accept shows the one-line 'Your suggestion reached Mātou' via new data-field=suggestion-sent flagged by SetupSurface (new requestConfirm.test); p4-s2 wireframe unified data-field gate-reason -> reason (code already emits reason).",
    "Heritage heading renders with the two shipped Heritage services under it": "CATEGORY_ORDER (dashboard/src/lib/provision.ts) gains 'Heritage' sixth, mirroring internal/catalogue.Categories(); new browseCatalogue.test feeds the two shipped Heritage services (Whakapapa, Community archive) and asserts the Heritage heading renders last with both cards under it, not a headingless trailing section."
  },
  "summary": "Landed the catalogue feature's four-axis review cleanup: honest BEM names, one-underscore Go test names, four wireframe design drifts, Heritage in the taxonomy mirror, and two strengthened failure-path pins.",
  "blockers": []
}
**close-report** for #1171 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1171, "status": "success", "commits": [ "50dcbf20e6b139caf582bc591c9c77f48ce9f9f0" ], "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/provision.ts", "dashboard/tests/unit/browseCatalogue.test.ts", "dashboard/tests/unit/requestConfirm.test.ts", "docs/ux/wireframes/p4-provisioning/p4-s2-select-role-and-services.html", "internal/brokerclient/client.go", "internal/brokerclient/client_test.go", "internal/controlapi/catalogue_requests_integration_test.go", "internal/servicerequest/ledger_test.go" ], "tests": [ { "command": "go test ./internal/servicerequest/ ./internal/brokerclient/ ./internal/controlapi/", "exit_code": 0 }, { "command": "nix develop .#go-ci (pre-push gate: gofmt, go build/vet/test ./..., golangci-lint, broker)", "exit_code": 0 }, { "command": "npx vitest run (dashboard, 1396 tests)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 } ], "criteria": { "CODING-STANDARDS sweep regexes find nothing in the touched files; app + Go tests green": "BEM sweep oc-[a-z]+(__|--)[a-z]{1,2} is clean in RequestConfirmDialog.vue (oc-reqdlg family spelled to oc-request-dialog__key/__value/__copy/__title/__button-primary/...) and SelectRoleServicesScreen.vue (oc-tab--current, oc-face__opt--selected); every Test name in ledger_test.go / client_test.go / catalogue_requests_integration_test.go carries exactly one underscore (TestNoDeleteOrDeclineMutation -> TestLedger_APISurfaceHasNoDeleteOrDecline; 14 TestClient_RequestService_* / TestCatalogueRequests_*_* collapsed). Go tests + full dashboard vitest (1396) green.", "The four design drifts render per the wireframes (design-verify clean on p4-s2b / p4-s2b-req)": "Candidate confirm renders what-is-sent BEFORE request-note (locked by a new requestConfirm.test order assertion); Browse tab has the bottom Back to this device button data-action=tab-for-this-device (new browseCatalogue.test); suggestion accept shows the one-line 'Your suggestion reached Mātou' via new data-field=suggestion-sent flagged by SetupSurface (new requestConfirm.test); p4-s2 wireframe unified data-field gate-reason -> reason (code already emits reason).", "Heritage heading renders with the two shipped Heritage services under it": "CATEGORY_ORDER (dashboard/src/lib/provision.ts) gains 'Heritage' sixth, mirroring internal/catalogue.Categories(); new browseCatalogue.test feeds the two shipped Heritage services (Whakapapa, Community archive) and asserts the Heritage heading renders last with both cards under it, not a headingless trailing section." }, "summary": "Landed the catalogue feature's four-axis review cleanup: honest BEM names, one-underscore Go test names, four wireframe design drifts, Heritage in the taxonomy mirror, and two strengthened failure-path pins.", "blockers": [] } ``` </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.

Dependencies

No dependencies set.

Reference
Matou/idss#1171
No description provided.