two rail-foot doors + kind-by-door dialog (Report an issue / Request an improvement) (#2065) #2071

Merged
ben merged 5 commits from agent/issue-2065 into main 2026-11-04 21:21:41 +00:00

closes #2065

What this does

Splits the App report's one Report an issue button into two rail-foot doors — Report an issue and Request an improvement — that open the same dialog with the kind fixed by the door, and removes the kind radio from the dialog (DDR 0296 §2; design pass #2051, app report #2047).

Dashboard-only, exactly as DDR 0296 §2 ruled: the kind already rides the ReportSend payload → the broker's unfenced - Kind: bullet, so the broker, golden body, intake check and relevance gate are untouched.

Changes

  • NavChrome draws two doors under Sign out in a report-and-request-doors row, both gated by canReportIssue; emits report-issue / request-improvement and runs nothing (ADR 0097). Neither is a tab (ADR 0094). The kit gains kit.nav.requestImprovement in all four locales.
  • ProductionDashboardNavigator.reportIssue(kind) records the door's kind (reportKind); DashboardShell forwards each door with 'bug' / 'improvement'; DashboardComposition passes it as the dialog's new kind prop.
  • ReportIssueDialog loses its kind radio (data-field="report-kind" is gone): the kind prop — fixed by the door — parameterises the lede, the two field labels, the Saying fact, the title (Report an issue / Request an improvement), the receipt title (Report sent / Request sent), the primary button (Send report / Send request) and the report/request noun; a data-kind rides the dialog root.

Acceptance

  • Both doors render side by side at the rail foot under Sign out, gated by canReportIssue; neither shows when a report cannot be sent (RR-B).
  • Report an issue emits report-issue; the dialog opens with kind=bug, bug lede/labels, title "Report an issue", no kind radio (RR-DR).
  • Request an improvement emits request-improvement; the same dialog opens with kind=improvement, improvement lede/labels, title "Request an improvement", primary "Send request" (RR-DQ).
  • A sent report/request lands on the per-kind receipt ("Report sent" / "Request sent"); a refusal/outage lands on the single fail-loud shape; an empty field keeps Send disabled.
  • A filed improvement still carries - Kind: improvement and title App report from <slug>; the broker, golden body, intake check and relevance gate are untouched by this slice.
  • Dashboard component + NavChrome tests cover the two kinds and the two intents; TestClient_ReportIssueWirePayloadIsExactlyPinned is unaffected (kind unchanged on the wire).

Tests

  • ui-kit navChromeSidebar (240/240) and dashboard reportIssueDialog / dashboardNavigator / dashboardShell / dashboardComposition unit suites green (dashboard 2246 passed / 5 skipped); vue-tsc clean in both packages.
  • The reportIssue harness spec (dashboard/tests/e2e/preview-harness/reportIssue.spec.ts) now drives both doors and asserts data-kind, the absent radio and the Send request wording.
  • TestClient_ReportIssueWirePayloadIsExactlyPinned not run here — this sandbox has no Go toolchain; the change touches no Go file and leaves the wire payload (kind included) byte-for-byte unchanged.

Out of scope

The contact-offer slice (#2066, ready-for-human) still owes the opt-in email field, the re-worded From promise and the fifth - Contact: bullet. The broker, golden body, intake check and gate are untouched.

Screenshots: none — this sandbox cannot run a browser (the Playwright chromium needs system libraries absent here: libnss3/libnspr4/libgbm etc.; no sudo to install them, and the nix-store copies require glibc 2.38 against this image's 2.36). The visible surface is covered by the committed reportIssue harness spec, which renders the real components and drives both doors — it runs in CI where a browser is present.

🤖 Generated with Claude Code

closes #2065 ## What this does Splits the App report's one **Report an issue** button into **two rail-foot doors** — Report an issue and Request an improvement — that open the **same dialog** with the `kind` fixed by the door, and **removes the kind radio** from the dialog (DDR 0296 §2; design pass #2051, app report #2047). Dashboard-only, exactly as DDR 0296 §2 ruled: the kind already rides the `ReportSend` payload → the broker's unfenced `- Kind:` bullet, so the broker, golden body, intake check and relevance gate are untouched. ## Changes - **`NavChrome`** draws two doors under Sign out in a `report-and-request-doors` row, both gated by `canReportIssue`; emits `report-issue` / `request-improvement` and runs nothing (ADR 0097). Neither is a tab (ADR 0094). The kit gains `kit.nav.requestImprovement` in all four locales. - **`ProductionDashboardNavigator.reportIssue(kind)`** records the door's kind (`reportKind`); **`DashboardShell`** forwards each door with `'bug'` / `'improvement'`; **`DashboardComposition`** passes it as the dialog's new `kind` prop. - **`ReportIssueDialog`** loses its kind radio (`data-field="report-kind"` is gone): the `kind` prop — fixed by the door — parameterises the lede, the two field labels, the Saying fact, the title (`Report an issue` / `Request an improvement`), the receipt title (`Report sent` / `Request sent`), the primary button (`Send report` / `Send request`) and the report/request noun; a `data-kind` rides the dialog root. ## Acceptance - [x] Both doors render side by side at the rail foot under Sign out, gated by `canReportIssue`; neither shows when a report cannot be sent (RR-B). - [x] **Report an issue** emits `report-issue`; the dialog opens with `kind=bug`, bug lede/labels, title "Report an issue", no kind radio (RR-DR). - [x] **Request an improvement** emits `request-improvement`; the **same** dialog opens with `kind=improvement`, improvement lede/labels, title "Request an improvement", primary "Send request" (RR-DQ). - [x] A sent report/request lands on the per-kind receipt ("Report sent" / "Request sent"); a refusal/outage lands on the single fail-loud shape; an empty field keeps Send disabled. - [x] A filed improvement still carries `- Kind: improvement` and title `App report from <slug>`; the broker, golden body, intake check and relevance gate are untouched by this slice. - [x] Dashboard component + `NavChrome` tests cover the two kinds and the two intents; `TestClient_ReportIssueWirePayloadIsExactlyPinned` is unaffected (kind unchanged on the wire). ## Tests - ui-kit `navChromeSidebar` (240/240) and dashboard `reportIssueDialog` / `dashboardNavigator` / `dashboardShell` / `dashboardComposition` unit suites green (dashboard 2246 passed / 5 skipped); `vue-tsc` clean in both packages. - The `reportIssue` harness spec (`dashboard/tests/e2e/preview-harness/reportIssue.spec.ts`) now drives both doors and asserts `data-kind`, the absent radio and the `Send request` wording. - `TestClient_ReportIssueWirePayloadIsExactlyPinned` not run here — this sandbox has no Go toolchain; the change touches no Go file and leaves the wire payload (`kind` included) byte-for-byte unchanged. ## Out of scope The `contact-offer` slice (#2066, `ready-for-human`) still owes the opt-in email field, the re-worded From promise and the fifth `- Contact:` bullet. The broker, golden body, intake check and gate are untouched. **Screenshots:** none — this sandbox cannot run a browser (the Playwright chromium needs system libraries absent here: `libnss3`/`libnspr4`/`libgbm` etc.; no sudo to install them, and the nix-store copies require glibc 2.38 against this image's 2.36). The visible surface is covered by the committed `reportIssue` harness spec, which renders the real components and drives both doors — it runs in CI where a browser is present. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sandcastle: #2065 — two rail-foot doors (Report an issue / Request an improvement), kind radio removed
All checks were successful
ci / seam (pull_request) Successful in 16m9s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
8f5b7a6105
The App report's one button becomes two doors; the dialog's kind is fixed by
the door, not a radio (DDR 0296 §2, from design pass #2051 / app report #2047).
Dashboard-only: the wire is untouched, so the broker, golden body, intake check
and relevance gate are unchanged.

Key decisions:
- NavChrome draws two doors under Sign out in a `report-and-request-doors` row,
  both gated by `canReportIssue`; emits `report-issue` / `request-improvement`
  and runs nothing (ADR 0097). Neither is a tab (ADR 0094). Kit gains the
  `kit.nav.requestImprovement` string in all four locales.
- ProductionDashboardNavigator.reportIssue(kind) records the door's kind
  (`reportKind`); DashboardShell forwards each door with 'bug' / 'improvement';
  DashboardComposition passes it as the dialog's new `kind` prop.
- ReportIssueDialog loses its kind radio: the `kind` prop parameterises the
  lede, field labels, Saying fact, title, receipt title, primary button and the
  report/request noun; `data-kind` on the dialog root.
- The kind still rides the ReportSend payload unchanged, so
  TestClient_ReportIssueWirePayloadIsExactlyPinned is unaffected (not run here —
  no Go toolchain in the sandbox; dashboard-only change touches no Go file).

Files: packages/ui-kit NavChrome.vue + i18n; dashboard ReportIssueDialog.vue,
dashboardNavigator.ts, navigation.ts, DashboardShell.vue, DashboardComposition.vue;
seam tests (navChromeSidebar, reportIssueDialog, dashboardNavigator, dashboardShell,
dashboardComposition) + the reportIssue harness spec; STATUS.md.

out_of_scope (untouched): contact-offer (#2066, ready-for-human), the broker,
golden body, intake check, gate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merge origin/main into agent/issue-2065 — refresh PR #2071 onto current main; the report dialog meets DDR 0300's five languages
Some checks failed
ci / seam (pull_request) Successful in 18m8s
ci / publish (pull_request) Has been cancelled
ci / publish-broker (pull_request) Has been cancelled
ci / deploy-broker (pull_request) Has been cancelled
41dff252ef
The one conflict was ReportIssueDialog.vue: main's i18n-everywhere pass (DDR
0300) translated the OLD dialog, kind radio included, while this branch removes
the radio and lets the door fix the kind (DDR 0296 §2). Resolution keeps the
branch's behaviour and main's translation keys:

- no kind radio; `kind` stays a prop fixed by the door
- the per-kind copy reads from the locale files, not a hard-coded English table
- five new per-kind keys in all five languages (en, es, nl, fr, pt):
  composeTitle, sentTitle, primary, sentNote, failedLead. Bug copies the
  existing translations verbatim; improvement says "request" where bug says
  "report"
- the kit's `requestImprovement` door label gains its Portuguese line (pt landed
  on main after this branch was cut, so it would have fallen back to English)

Verified in the worktree: vue-tsc clean; dashboard unit suite 181 files / 2293
tests green; ui-kit navChromeSidebar 23/23.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge origin/main into agent/issue-2065 — Forgejo flags STATUS.md as conflicting after #2164 landed (git merges clean)
Some checks failed
ci / seam (pull_request) Failing after 15m28s
ci / publish (pull_request) Has been cancelled
ci / publish-broker (pull_request) Has been cancelled
ci / deploy-broker (pull_request) Has been cancelled
54a58d77a9
Author
Member

Swarm healer (run 60113, signature eeb55dc3cbe7): this PR's seam job is red on vue-tsc, not on anything this branch wrote. main commit 9cc9e6d1 (#2164) added a new ReportIssueDialog mount — dashboard/tests/unit/reportErrorsI18n.test.ts:66 — after this branch made kind a required prop (DDR 0296 §2). git merged the two cleanly, so 54a58d7 kept both sides of the dialog but left that one mount without kind.

Fix and evidence filed as #2168 (ready-for-agent): pass kind: 'bug' in sendAndFail's mount. One line; no product behaviour changes. The healer does not touch dashboard/ sources.

**Swarm healer (run 60113, signature `eeb55dc3cbe7`):** this PR's `seam` job is red on `vue-tsc`, not on anything this branch wrote. `main` commit 9cc9e6d1 (#2164) added a new `ReportIssueDialog` mount — `dashboard/tests/unit/reportErrorsI18n.test.ts:66` — after this branch made `kind` a required prop (DDR 0296 §2). `git` merged the two cleanly, so `54a58d7` kept both sides of the dialog but left that one mount without `kind`. Fix and evidence filed as **#2168** (`ready-for-agent`): pass `kind: 'bug'` in `sendAndFail`'s mount. One line; no product behaviour changes. The healer does not touch `dashboard/` sources.
test: reportErrorsI18n mounts the report dialog with a door's kind — kind is a required prop since DDR 0296 §2
All checks were successful
ci / seam (pull_request) Successful in 16m59s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
0c1f3d9b9d
#2164 landed reportErrorsI18n.test.ts on main while this branch made the
dialog's `kind` a prop fixed by the door; the merged tree failed the dashboard
build (TS2322, kind missing). The test exercises the bug door, as it did
implicitly before. Verified: vue-tsc clean, eslint . clean, dashboard unit
suite 183 files / 2311 tests green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben merged commit aaf43887c1 into main 2026-11-04 21:21:41 +00:00
Sign in to join this conversation.
No reviewers
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!2071
No description provided.