Fleet device dialog — routed actions (change/logs/service/silence) (#2060) #2170

Closed
matou-build-agent wants to merge 0 commits from agent/issue-2060 into main

closes #2060

What this does

Ships slice 2/4 of the Fleet-tab device dialog (DDR 0295, amends DDR 0202;
from app report #2046): the dialog's routed actions. The dialog ENTERS each
action, it owns none — every intent is fired exactly as DeviceDetailSurface
fires it, to the same existing owner (no new seam).

Changes

  • DeviceDialog.vue gains the routed actions, each the wireframe's
    data-action (P9-D1 / D1s / D3):
    • Change this device → provisioning P4-S1 (change-device-<id>, owner
      provisioning, ADR 0063). The wireframe's data-action, not
      change-node-<id> — setupTargetFromIntent already reads both.
    • Open / Download logs → the node log scope (new open-logs /
      download-logs emits, scoped to the device id, ADR 0027). Open rides a
      reporting or silent device; Download a reporting device only (per D1/D1s).
    • A service in the summary → monitoring P5-S3 (service-detail-<svc>,
      owner monitoring). A new services-on-device section renders when the
      FleetRow carries joined services, each with its chip + a Detail door.
    • The silent-device door → monitoring's P5-S1x silence classification
      (open-silence-classification, owner monitoring, DDR 0071), added into
      the existing silence-note.
  • FleetSurface.vue forwards the dialog's open-logs / download-logs
    onto its own one logs intent; the change-device-<id> intent opens the P4-S1
    drill-in in place via the existing onDialogRoute → onRoute path.
  • i18n — six shell keys across all five locales (changeDevice, openLogs,
    downloadLogs, servicesLabel, serviceDetail, reviewSilence).

Acceptance (manifest / child spec #2058)

  • Change this device opens provisioning P4-S1 (change-device-<id>).
  • Set up this device (a not-set-up device) opens P4-S1 (set-up-<id>) —
    unchanged from slice 1.
  • Open / Download logs open/download the node's log scope.
  • A service in the summary opens monitoring P5-S3 (service-detail-<svc>).
  • A silent device's silence door opens monitoring's P5-S1x classification.

Tests

  • Dashboard unit — dashboard/tests/unit/fleetDeviceDialog.test.ts (+7): the
    change / logs / service / silence intents at the DeviceDialog unit, and
    change → P4-S1-in-place + logs-forwarding at the FleetSurface mount. Full
    dashboard unit suite green (2318 passed / 5 skipped); vue-tsc clean; i18n
    key-parity clean across the five locales.
  • Harness drive — dashboard/tests/e2e/preview-harness/fleetDeviceDialogRoutes.spec.ts
    drives the routed actions in the real bootstrapDashboard composition over
    the steady fake fleet (runs in CI, where a browser is present).

Out of scope

The facts edit (device-facts-edit) and the remove entry
(device-remove-entry, ready-for-human) are their own sibling slices.

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
harness spec fleetDeviceDialogRoutes.spec.ts, which renders the real
components and drives the routed actions — it runs in CI where a browser is
present.

🤖 Generated with Claude Code

closes #2060 ## What this does Ships slice 2/4 of the Fleet-tab **device dialog** (DDR 0295, amends DDR 0202; from app report #2046): the dialog's **routed actions**. The dialog ENTERS each action, it owns none — every intent is fired exactly as `DeviceDetailSurface` fires it, to the same existing owner (no new seam). ## Changes - **`DeviceDialog.vue`** gains the routed actions, each the wireframe's `data-action` (P9-D1 / D1s / D3): - **Change this device** → provisioning P4-S1 (`change-device-<id>`, owner `provisioning`, ADR 0063). The wireframe's data-action, not `change-node-<id>` — `setupTargetFromIntent` already reads both. - **Open / Download logs** → the node log scope (new `open-logs` / `download-logs` emits, scoped to the device id, ADR 0027). Open rides a reporting or silent device; Download a reporting device only (per D1/D1s). - **A service in the summary** → monitoring P5-S3 (`service-detail-<svc>`, owner `monitoring`). A new `services-on-device` section renders when the `FleetRow` carries joined services, each with its chip + a Detail door. - **The silent-device door** → monitoring's P5-S1x silence classification (`open-silence-classification`, owner `monitoring`, DDR 0071), added into the existing `silence-note`. - **`FleetSurface.vue`** forwards the dialog's `open-logs` / `download-logs` onto its own one logs intent; the `change-device-<id>` intent opens the P4-S1 drill-in in place via the existing `onDialogRoute → onRoute` path. - **i18n** — six shell keys across all five locales (`changeDevice`, `openLogs`, `downloadLogs`, `servicesLabel`, `serviceDetail`, `reviewSilence`). ## Acceptance (manifest / child spec #2058) - [x] Change this device opens provisioning P4-S1 (`change-device-<id>`). - [x] Set up this device (a not-set-up device) opens P4-S1 (`set-up-<id>`) — unchanged from slice 1. - [x] Open / Download logs open/download the node's log scope. - [x] A service in the summary opens monitoring P5-S3 (`service-detail-<svc>`). - [x] A silent device's silence door opens monitoring's P5-S1x classification. ## Tests - Dashboard unit — `dashboard/tests/unit/fleetDeviceDialog.test.ts` (+7): the change / logs / service / silence intents at the `DeviceDialog` unit, and change → P4-S1-in-place + logs-forwarding at the `FleetSurface` mount. Full dashboard unit suite green (2318 passed / 5 skipped); `vue-tsc` clean; i18n key-parity clean across the five locales. - Harness drive — `dashboard/tests/e2e/preview-harness/fleetDeviceDialogRoutes.spec.ts` drives the routed actions in the real `bootstrapDashboard` composition over the steady fake fleet (runs in CI, where a browser is present). ## Out of scope The facts edit (`device-facts-edit`) and the remove entry (`device-remove-entry`, `ready-for-human`) are their own sibling slices. **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 harness spec `fleetDeviceDialogRoutes.spec.ts`, which renders the real components and drives the routed actions — it runs in CI where a browser is present. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sandcastle: #2060 — Fleet device dialog routed actions (dialog-action-routes, slice 2/4)
All checks were successful
ci / seam (pull_request) Successful in 15m35s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
0f3ce4530b
The device dialog now ENTERS its routed actions, owning none (DDR 0295, from
app report #2046; landing-pr). Fired exactly as DeviceDetailSurface does:

- Change this device → provisioning P4-S1 (`change-device-<id>`, owner
  `provisioning`, ADR 0063) — the wireframe's data-action, not `change-node-<id>`
  (`setupTargetFromIntent` already reads both; opens P4-S1 in place).
- Open / Download logs → the node log scope (new `open-logs`/`download-logs`
  emits scoped to `row.id`, ADR 0027). Open rides reporting+silent, Download
  reporting only (per P9-D1/D1s).
- A service in the summary → monitoring P5-S3 (`service-detail-<svc>`, owner
  `monitoring`) — a new `services-on-device` section renders when the FleetRow
  joined services, each with its chip + Detail door.
- The silent-device door → monitoring's P5-S1x silence classification
  (`open-silence-classification`, owner `monitoring`, DDR 0071) — added into
  the existing `silence-note`.

FleetSurface forwards the dialog's `open-logs`/`download-logs` onto its own,
and the `change-device-<id>` intent opens the P4-S1 drill-in in place via the
existing onDialogRoute → onRoute path (no new seam).

Files:
- dashboard/src/components/shell/DeviceDialog.vue — routed actions + emits.
- dashboard/src/components/shell/FleetSurface.vue — forward the log intents.
- dashboard/src/i18n/shell/{en,nl,fr,pt,es}.ts — six keys (changeDevice,
  openLogs, downloadLogs, servicesLabel, serviceDetail, reviewSilence).
- dashboard/tests/unit/fleetDeviceDialog.test.ts — +7 (change/logs/service/
  silence at the DeviceDialog unit; change→P4-S1-in-place + logs-forwarding at
  the FleetSurface mount).
- dashboard/tests/e2e/preview-harness/fleetDeviceDialogRoutes.spec.ts — drive
  the routed actions in the real composition (CI harness; the sandbox has no
  browser).
- STATUS.md — milestone log slice 2/4.

Out of scope (sibling slices): device-facts-edit, device-remove-entry
(ready-for-human). Verify: dashboard unit suite green (2318), vue-tsc clean,
i18n parity clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Factory-Account: d631bd58e1e9
Author
Member
close-report gates passed for #2060 — every claim verified; this PR is cleared for merge.
<!-- close-report: gates-passed --> close-report gates passed for #2060 — every claim verified; this PR is cleared for merge.
ben referenced this pull request from a commit 2026-11-16 17:31:43 +00:00
Owner

Merged — merge commit 10ed8c61. Merged to main by hand at Ben's request (main now at 1776d784), stacked with #2170, #2171, #2172, #2173 and #1897. Forgejo did not auto-detect the pushed merge and manually-merged is disabled on this repo, so this PR is closed by hand — the code IS on main. Verified on the merged stack: dashboard 2339/2339, app 2394/2394, both vue-tsc clean, touched Go + broker packages green.

**Merged** — merge commit 10ed8c61. Merged to `main` by hand at Ben's request (main now at 1776d784), stacked with #2170, #2171, #2172, #2173 and #1897. Forgejo did not auto-detect the pushed merge and `manually-merged` is disabled on this repo, so this PR is closed by hand — the code IS on main. Verified on the merged stack: dashboard 2339/2339, app 2394/2394, both `vue-tsc` clean, touched Go + broker packages green.
ben closed this pull request 2026-11-16 17:33:08 +00:00
All checks were successful
ci / seam (pull_request) Successful in 15m35s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped

Pull request closed

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!2170
No description provided.