build: Fleet device dialog — routed actions (change/set-up/logs/service/silence) (slice 2/4) #2060

Closed
opened 2026-10-23 18:01:21 +00:00 by matou-build-agent · 3 comments

Parent

  • Design pass #2050; child spec #2058; DDR 0295. Flow
    docs/ux/flows/p9-device-dialog.mermaid; wireframes P9-D1 / D1s / D3.
  • Slice dialog-action-routes of docs/slices/fleet-device-dialog.yaml.

What to build

The device dialog's routed actions fire the existing intents to their
existing owners — the dialog owns none of them, it only enters: Change this
device
/ Set up this device → provisioning P4-S1 (change-device-<id> /
set-up-<id>, ADR 0063); Open / Download logs → the node log scope
(open-logs / download-logs, ADR 0027); a service in the summary → monitoring
P5-S3 (service-detail-<svc>); the silent-device door → monitoring's silence
classification P5-S1x (open-silence-classification, DDR 0071).

Acceptance criteria

  • Given the dialog, when Change this device is chosen, then provisioning
    P4-S1 opens (change-device-<id>).
  • Given a not-set-up device's dialog, when Set up this device is chosen,
    then provisioning P4-S1 opens (set-up-<id>).
  • Given the dialog, when Open logs / Download logs is chosen, then the
    node's log scope opens / downloads.
  • Given a service in the summary, when its detail is chosen, then monitoring
    P5-S3 opens (service-detail-<svc>).
  • Given a silent device's dialog, when the silence door is chosen, then
    monitoring's silence classification opens (P5-S1x).

Task manifest

task: dialog-action-routes
implements_flow: p9-device-dialog
implements_edge: D1→P4-S1 (change), D3→P4-S1 (set up), D1→P10 (logs), D1→P5-S3 (service detail), D1s→P5-S1x (silence)
wireframe:
  - docs/ux/wireframes/p9-device-dialog/p9-d1-device-dialog-default.html
  - docs/ux/wireframes/p9-device-dialog/p9-d1s-device-dialog-silent.html
  - docs/ux/wireframes/p9-device-dialog/p9-d3-device-dialog-not-set-up.html
interface: |
  The dialog fires the existing intents (no new seam): change-device-<id>,
  set-up-<id>, open-logs, download-logs, service-detail-<svc>,
  open-silence-classification — routed exactly as DeviceDetailSurface fires them.
seam: dashboard unit over the injected fleet/log/monitoring clients (as DeviceDetailSurface's tests do)
acceptance:
  - given: the dialog
    when: Change this device is chosen
    then: provisioning P4-S1 opens (change-device-<id>)
  - given: a service in the summary
    when: its detail is chosen
    then: monitoring P5-S3 opens (service-detail-<svc>)
depends_on: [dialog-shell-and-identity]
out_of_scope: [the edit — device-facts-edit; remove — device-remove-entry]
needs_human_decision: []

Blocked by

  • #2050 (the design PR must merge — native dependency).
  • dialog-shell-and-identity (the dialog must exist — native dependency).
<!-- origin: app-report #2046 --> ## Parent - Design pass **#2050**; child spec **#2058**; **DDR 0295**. Flow `docs/ux/flows/p9-device-dialog.mermaid`; wireframes P9-D1 / D1s / D3. - Slice `dialog-action-routes` of `docs/slices/fleet-device-dialog.yaml`. ## What to build The device dialog's routed actions fire the **existing** intents to their existing owners — the dialog owns none of them, it only enters: *Change this device* / *Set up this device* → provisioning P4-S1 (`change-device-<id>` / `set-up-<id>`, ADR 0063); *Open / Download logs* → the node log scope (`open-logs` / `download-logs`, ADR 0027); a service in the summary → monitoring P5-S3 (`service-detail-<svc>`); the silent-device door → monitoring's silence classification P5-S1x (`open-silence-classification`, DDR 0071). ## Acceptance criteria - [ ] Given the dialog, when *Change this device* is chosen, then provisioning P4-S1 opens (`change-device-<id>`). - [ ] Given a not-set-up device's dialog, when *Set up this device* is chosen, then provisioning P4-S1 opens (`set-up-<id>`). - [ ] Given the dialog, when *Open logs* / *Download logs* is chosen, then the node's log scope opens / downloads. - [ ] Given a service in the summary, when its detail is chosen, then monitoring P5-S3 opens (`service-detail-<svc>`). - [ ] Given a silent device's dialog, when the silence door is chosen, then monitoring's silence classification opens (P5-S1x). ## Task manifest ```yaml task: dialog-action-routes implements_flow: p9-device-dialog implements_edge: D1→P4-S1 (change), D3→P4-S1 (set up), D1→P10 (logs), D1→P5-S3 (service detail), D1s→P5-S1x (silence) wireframe: - docs/ux/wireframes/p9-device-dialog/p9-d1-device-dialog-default.html - docs/ux/wireframes/p9-device-dialog/p9-d1s-device-dialog-silent.html - docs/ux/wireframes/p9-device-dialog/p9-d3-device-dialog-not-set-up.html interface: | The dialog fires the existing intents (no new seam): change-device-<id>, set-up-<id>, open-logs, download-logs, service-detail-<svc>, open-silence-classification — routed exactly as DeviceDetailSurface fires them. seam: dashboard unit over the injected fleet/log/monitoring clients (as DeviceDetailSurface's tests do) acceptance: - given: the dialog when: Change this device is chosen then: provisioning P4-S1 opens (change-device-<id>) - given: a service in the summary when: its detail is chosen then: monitoring P5-S3 opens (service-detail-<svc>) depends_on: [dialog-shell-and-identity] out_of_scope: [the edit — device-facts-edit; remove — device-remove-entry] needs_human_decision: [] ``` ## Blocked by - **#2050** (the design PR must merge — native dependency). - **dialog-shell-and-identity** (the dialog must exist — native dependency).
Author
Member

⏩ independent reviewer for #2060 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #2060 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>
Author
Member

close-report for #2060 — status success

✅ close-report gates passed — every claim verified against the PR head. PR #2170 (#2170) is open and green; a human merges it and the merge closes this issue via closes #2060 (MERGE_AUTHORITY=human).

envelope
{
  "issue": 2060,
  "status": "success",
  "commits": [
    "0f3ce4530bcb29a61048ded63ff3b2f2aa5547a1"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/shell/DeviceDialog.vue",
    "dashboard/src/components/shell/FleetSurface.vue",
    "dashboard/src/i18n/shell/en.ts",
    "dashboard/src/i18n/shell/es.ts",
    "dashboard/src/i18n/shell/fr.ts",
    "dashboard/src/i18n/shell/nl.ts",
    "dashboard/src/i18n/shell/pt.ts",
    "dashboard/tests/e2e/preview-harness/fleetDeviceDialogRoutes.spec.ts",
    "dashboard/tests/unit/fleetDeviceDialog.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && node_modules/.bin/vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given the dialog, when Change this device is chosen, then provisioning P4-S1 opens (change-device-<id>)": "DeviceDialog.vue changeDevice() emits {action: change-device-<id>, owner: provisioning}; FleetSurface onDialogRoute->onRoute opens the P4-S1 drill-in in place. Tests: fleetDeviceDialog.test.ts 'Change this device fires the P4-S1 provisioning hand-off' + 'Change this device from the dialog opens provisioning P4-S1 in place'.",
    "Given a not-set-up device's dialog, when Set up this device is chosen, then provisioning P4-S1 opens (set-up-<id>)": "DeviceDialog.vue setUp() via nodeSurfaceRoute returns set-up-<id> owner provisioning (slice 1, unchanged). Test: fleetDeviceDialog.test.ts 'a not-set-up device opens the dialog; Set up routes to provisioning (P4-S1)'.",
    "Given the dialog, when Open logs / Download logs is chosen, then the node's log scope opens / downloads": "DeviceDialog.vue emits open-logs/download-logs scoped to row.id (ADR 0027); FleetSurface forwards both. Tests: 'Open / Download logs emit the node-scoped log intents' + 'Open / Download logs from the dialog converge onto the surface's one logs intent'.",
    "Given a service in the summary, when its detail is chosen, then monitoring P5-S3 opens (service-detail-<svc>)": "DeviceDialog.vue renders a services-on-device section for row.services, each firing serviceDetail() -> {action: service-detail-<svc>, owner: monitoring}. Test: 'a service in the summary drills into monitoring P5-S3 (service-detail-<svc>)'.",
    "Given a silent device's dialog, when the silence door is chosen, then monitoring's silence classification opens (P5-S1x)": "DeviceDialog.vue silence-note carries a door firing openSilence() -> {action: open-silence-classification, owner: monitoring} (DDR 0071). Test: 'a silent device offers Open logs but NOT Download logs, and a door to monitoring's silence classification'."
  },
  "summary": "The device dialog's routed actions (change/logs/service/silence) fire the existing intents to their existing owners; no new seam.",
  "blockers": []
}
**close-report** for #2060 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the PR head. PR #2170 (https://git.matou.nz/Matou/idss/pulls/2170) is open and green; a human merges it and the merge closes this issue via `closes #2060` (MERGE_AUTHORITY=human). <details><summary>envelope</summary> ```json { "issue": 2060, "status": "success", "commits": [ "0f3ce4530bcb29a61048ded63ff3b2f2aa5547a1" ], "changed_files": [ "STATUS.md", "dashboard/src/components/shell/DeviceDialog.vue", "dashboard/src/components/shell/FleetSurface.vue", "dashboard/src/i18n/shell/en.ts", "dashboard/src/i18n/shell/es.ts", "dashboard/src/i18n/shell/fr.ts", "dashboard/src/i18n/shell/nl.ts", "dashboard/src/i18n/shell/pt.ts", "dashboard/tests/e2e/preview-harness/fleetDeviceDialogRoutes.spec.ts", "dashboard/tests/unit/fleetDeviceDialog.test.ts" ], "tests": [ { "command": "cd dashboard && node_modules/.bin/vitest run", "exit_code": 0 }, { "command": "cd dashboard && node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "Given the dialog, when Change this device is chosen, then provisioning P4-S1 opens (change-device-<id>)": "DeviceDialog.vue changeDevice() emits {action: change-device-<id>, owner: provisioning}; FleetSurface onDialogRoute->onRoute opens the P4-S1 drill-in in place. Tests: fleetDeviceDialog.test.ts 'Change this device fires the P4-S1 provisioning hand-off' + 'Change this device from the dialog opens provisioning P4-S1 in place'.", "Given a not-set-up device's dialog, when Set up this device is chosen, then provisioning P4-S1 opens (set-up-<id>)": "DeviceDialog.vue setUp() via nodeSurfaceRoute returns set-up-<id> owner provisioning (slice 1, unchanged). Test: fleetDeviceDialog.test.ts 'a not-set-up device opens the dialog; Set up routes to provisioning (P4-S1)'.", "Given the dialog, when Open logs / Download logs is chosen, then the node's log scope opens / downloads": "DeviceDialog.vue emits open-logs/download-logs scoped to row.id (ADR 0027); FleetSurface forwards both. Tests: 'Open / Download logs emit the node-scoped log intents' + 'Open / Download logs from the dialog converge onto the surface's one logs intent'.", "Given a service in the summary, when its detail is chosen, then monitoring P5-S3 opens (service-detail-<svc>)": "DeviceDialog.vue renders a services-on-device section for row.services, each firing serviceDetail() -> {action: service-detail-<svc>, owner: monitoring}. Test: 'a service in the summary drills into monitoring P5-S3 (service-detail-<svc>)'.", "Given a silent device's dialog, when the silence door is chosen, then monitoring's silence classification opens (P5-S1x)": "DeviceDialog.vue silence-note carries a door firing openSilence() -> {action: open-silence-classification, owner: monitoring} (DDR 0071). Test: 'a silent device offers Open logs but NOT Download logs, and a door to monitoring's silence classification'." }, "summary": "The device dialog's routed actions (change/logs/service/silence) fire the existing intents to their existing owners; no new seam.", "blockers": [] } ``` </details>
Owner

PR #2170 merged to main (10ed8c61) — closing.

PR #2170 merged to main (10ed8c61) — closing.
ben closed this issue 2026-11-16 17:33:10 +00:00
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#2060
No description provided.