browse-catalogue: a failed catalogue read renders as a SILENT EMPTY Browse tab (lede over zero cards, gaps line says "no gaps") — needs the Overview panel's failed-read + retry treatment #1237

Closed
opened 2026-09-05 06:27:10 +00:00 by ben · 2 comments
Owner

Separable from #1236 — actionable now, no ruling needed

Found by the #1235 archive drive (20260905T055639Z, leg browse-catalogue, evidence in #1236): when GET /api/v1/catalogue fails (there: 401 unauthenticated on the private-path loopback origin), the S2b Browse catalogue tab renders its lede — "Everything your community can host today, and what could be added next" — above ZERO category sections and zero cards, with no error and no retry. An operator cannot tell a refused read from an empty catalogue; the gaps line beneath it then reads "Your community has no gaps right now — nothing needs filling" off the same empty read (a false-comfort surface, ADR 0100 class). The same app already does this right one panel over: the Overview panel renders its failed read as no such endpoint with a TRY AGAIN button (artifacts/legs/browse-catalogue-w2.png in that run).

What to build

  • The Browse tab (and the For-this-device picker, which dresses off the same catalogue read — confirm) gets a real failed-read state: surface the refusal's own message (problem.message) and offer a retry, matching the Overview panel's treatment. A 401 names the front door; a 5xx names the fault.
  • The gaps line must NOT claim "no gaps" when the catalogue read failed — render the failed state there too, or hide the line.
  • Red-first unit test on the dashboard component: a rejected catalogue read renders the failed state + retry, never the lede-over-nothing.

Out of scope

Which origin the private-path operator panel lives on (the 401 itself) — that is #1236, Ben's ruling. This ticket is the honest surface however #1236 is ruled.

## Separable from #1236 — actionable now, no ruling needed Found by the #1235 archive drive (`20260905T055639Z`, leg `browse-catalogue`, evidence in #1236): when `GET /api/v1/catalogue` fails (there: 401 `unauthenticated` on the private-path loopback origin), the S2b **Browse catalogue** tab renders its lede — "Everything your community can host today, and what could be added next" — above ZERO category sections and zero cards, with no error and no retry. An operator cannot tell a refused read from an empty catalogue; the gaps line beneath it then reads "Your community has no gaps right now — nothing needs filling" off the same empty read (a false-comfort surface, ADR 0100 class). The same app already does this right one panel over: the Overview panel renders its failed read as `no such endpoint` with a `TRY AGAIN` button (`artifacts/legs/browse-catalogue-w2.png` in that run). ## What to build - The Browse tab (and the For-this-device picker, which dresses off the same catalogue read — confirm) gets a real **failed-read state**: surface the refusal's own message (`problem.message`) and offer a retry, matching the Overview panel's treatment. A 401 names the front door; a 5xx names the fault. - The gaps line must NOT claim "no gaps" when the catalogue read failed — render the failed state there too, or hide the line. - Red-first unit test on the dashboard component: a rejected catalogue read renders the failed state + retry, never the lede-over-nothing. ## Out of scope Which origin the private-path operator panel lives on (the 401 itself) — that is #1236, Ben's ruling. This ticket is the honest surface however #1236 is ruled.

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

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

close-report for #1237 — status success

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

envelope
{
  "issue": 1237,
  "status": "success",
  "commits": [
    "98071b79"
  ],
  "changed_files": [
    "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue",
    "dashboard/src/components/provisioning/SetupSurface.vue",
    "dashboard/tests/fakes/provision.ts",
    "dashboard/tests/unit/browseCatalogue.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "CI=true pnpm exec vitest run (dashboard)",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Browse tab gets a real failed-read state surfacing the refusal's own problem.message and offering retry (matching the Overview panel; a 401 names the front door, a 5xx the fault)": "SelectRoleServicesScreen.vue renders OcErrorState (message=browseError, @retry=retry-catalogue) in place of the lede when browseError is set; SetupSurface.vue captures the read's failure message into catalogueBrowseError. Tests: 'paints the failed-read state ... never the lede over zero cards' + 'a 5xx surfaces the fault verbatim' (browseCatalogue.test.ts)",
    "The gaps line must NOT claim 'no gaps' when the catalogue read failed": "The no-gaps callout is gated v-else-if with the failed-read state rendered in its place when browseError is set. Test: 'withholds the \"no gaps\" false comfort and shows the failed-read state instead' (browseCatalogue.test.ts)",
    "Red-first unit test: a rejected catalogue read renders the failed state + retry, never the lede-over-nothing": "browseCatalogue.test.ts new describe blocks assert failed state + retry + no lede; retry re-reads and clears; commit 98071b79",
    "For-this-device picker confirm": "Confirmed: the For-this-device dress reads catalogueDisplay() (same GET /api/v1/catalogue endpoint) and its documented degradation to the UNDRESSED picker (names + fit lines) is intended graceful degradation, not false comfort — so no failed-read state is added there beyond the false-comfort 'no gaps' line, which is fixed"
  },
  "summary": "A refused/faulted GET /api/v1/catalogue now paints an honest failed-read state (problem.message + retry) on the P4-S2b Browse tab and withholds the false-comfort 'no gaps' line, never the silent lede-over-nothing the #1235 archive drive caught.",
  "blockers": []
}
**close-report** for #1237 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1237, "status": "success", "commits": [ "98071b79" ], "changed_files": [ "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue", "dashboard/src/components/provisioning/SetupSurface.vue", "dashboard/tests/fakes/provision.ts", "dashboard/tests/unit/browseCatalogue.test.ts", "STATUS.md" ], "tests": [ { "command": "CI=true pnpm exec vitest run (dashboard)", "exit_code": 0 }, { "command": "CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 } ], "criteria": { "Browse tab gets a real failed-read state surfacing the refusal's own problem.message and offering retry (matching the Overview panel; a 401 names the front door, a 5xx the fault)": "SelectRoleServicesScreen.vue renders OcErrorState (message=browseError, @retry=retry-catalogue) in place of the lede when browseError is set; SetupSurface.vue captures the read's failure message into catalogueBrowseError. Tests: 'paints the failed-read state ... never the lede over zero cards' + 'a 5xx surfaces the fault verbatim' (browseCatalogue.test.ts)", "The gaps line must NOT claim 'no gaps' when the catalogue read failed": "The no-gaps callout is gated v-else-if with the failed-read state rendered in its place when browseError is set. Test: 'withholds the \"no gaps\" false comfort and shows the failed-read state instead' (browseCatalogue.test.ts)", "Red-first unit test: a rejected catalogue read renders the failed state + retry, never the lede-over-nothing": "browseCatalogue.test.ts new describe blocks assert failed state + retry + no lede; retry re-reads and clears; commit 98071b79", "For-this-device picker confirm": "Confirmed: the For-this-device dress reads catalogueDisplay() (same GET /api/v1/catalogue endpoint) and its documented degradation to the UNDRESSED picker (names + fit lines) is intended graceful degradation, not false comfort — so no failed-read state is added there beyond the false-comfort 'no gaps' line, which is fixed" }, "summary": "A refused/faulted GET /api/v1/catalogue now paints an honest failed-read state (problem.message + retry) on the P4-S2b Browse tab and withholds the false-comfort 'no gaps' line, never the silent lede-over-nothing the #1235 archive drive caught.", "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.

Reference
Matou/idss#1237
No description provided.