device-add DDR + wireframes: the add-a-device DIALOG opens on P1-S4's place screen and can RENT another VPS from the panel (amends DDR 0109; p2-s1 becomes a dialog) #1395

Closed
opened 2026-09-11 20:09:26 +00:00 by ben · 1 comment
Owner

Parent

Control-panel UI pass, Ben 2026-09-10/11 (branch founding-ui-two-colour-rail-ceremony, unmerged at filing). Device-add spec #13 (ADRs 0053–0057, DDR 0109); founding Access step P1-S4/S4a (ADR 0189 / DDR 0190). The dashboard half is BUILT on the branch: dashboard/src/components/device-add/{PlaceScreen,RentServerScreen,RentedScreen}.vue, DeviceAddSurface.vue (stages place → rent → rented | form), shell/DeviceAddDialog.vue, seam dashboard/src/lib/deviceAdd.ts (DevicePlaceOption, ServerOffer, RentServerRequest, RentedServer; OPTIONAL placeOptions/serverOffer/rentServer on DeviceAddSource), fake dashboard/tests/fakes/deviceAdd.ts, browser harness cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady.

What to record

The design contract for what is already built on the branch, so /design-verify and the swarm have a wireframe to hold the code to:

  1. DDR NNNN-design-device-add-dialog-and-place-screen.md (next free number — check origin/main before minting, the 0145 lesson) amending DDR 0109 (device-add mounted in place on the Fleet tab): device-add is now ONE modal dialog owned by the frame (navigator dialog state), opened from the Overview's add-a-device skeleton, the Fleet tab's "+ Add device" and the codes ledger's "+ New code". Its FIRST screen is founding's P1-S4 "where will it live?" — three picture cards (rented · recommended, I already have a VPS, a machine at your place; private/local sandbox is a place to FOUND in, never to add a device). Rented → P1-S4a's rent card (device name, the broker's sizes + prices, provider · region, Rent) → a rented outcome (name, address, size, region; Done closes) — the box enrols ITSELF, no code is handed over. Own-VPS → the enrol form with kind=server preset. Self-hosted → the enrol form (name → kind picker → location → role hint → two doorways; Back). Record the rulings: the place art is the KIT's (packages/ui-kit/src/components/OcPlaceArt.vue, the app's FoundingAccessArt.vue is a wrapper); a seam without a broker opens straight on the form; a failed rent stays on the card, nothing half-rented (ADR 0047).
  2. Wireframes under docs/ux/wireframes/p2-device-add-cli/: p2-s1-fleet-add-device.html redrawn as the dialog's enrol form; new p2-s1a-where-will-it-live.html (the place screen) and p2-s1b-rent-a-server.html (rent card + rented outcome). Same data-field / data-action names the built components use (device-place, place-options, option:<kind>, rent-server, server-presets, preset:<slug>, region, rent, rented-server, done, device-name-input, kind-<kind>, device-location-input, intended-role-select, path-cli, path-app, back).
  3. Flow docs/ux/flows/p2-device-add-cli.mermaid: edge DF/A4/DF2 → P2-S1 now lands on S1a; S1a → S1b (rented) → done; S1a → S1 (own-vps, self-hosted).
  4. docs/architecture/ diagram touched by the dialog ruling, if any (ADR 0042), in the same commit.

Acceptance criteria

  • Given the DDR, when read, then it states the dialog ruling, the place-screen ruling, the rented-enrols-itself rule and the no-broker fallback, each with Ben's 2026-09-11 date, and names DDR 0109 as amended.
  • Given the three wireframes, when opened, then every data-field/data-action the built components emit appears on the frame that owns it, and nothing on a frame is absent from the code.
  • Given the flow file, when rendered, then S1a/S1b appear with the edges above and no edge lands on the old in-place Fleet mount.
  • Given STATUS.md, when the commit lands, then the header line and the device-add row record the amended contract.

Why session

Design-tier run (/wireframe, DDR) on an unmerged branch — session standing, not a swarm worker.

## Parent Control-panel UI pass, Ben 2026-09-10/11 (branch `founding-ui-two-colour-rail-ceremony`, unmerged at filing). Device-add spec #13 (ADRs 0053–0057, DDR 0109); founding Access step P1-S4/S4a (ADR 0189 / DDR 0190). The dashboard half is BUILT on the branch: `dashboard/src/components/device-add/{PlaceScreen,RentServerScreen,RentedScreen}.vue`, `DeviceAddSurface.vue` (stages place → rent → rented | form), `shell/DeviceAddDialog.vue`, seam `dashboard/src/lib/deviceAdd.ts` (`DevicePlaceOption`, `ServerOffer`, `RentServerRequest`, `RentedServer`; OPTIONAL `placeOptions/serverOffer/rentServer` on `DeviceAddSource`), fake `dashboard/tests/fakes/deviceAdd.ts`, browser harness `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady`. ## What to record The design contract for what is already built on the branch, so `/design-verify` and the swarm have a wireframe to hold the code to: 1. **DDR `NNNN-design-device-add-dialog-and-place-screen.md`** (next free number — check `origin/main` before minting, the 0145 lesson) amending **DDR 0109** (device-add mounted in place on the Fleet tab): device-add is now ONE modal dialog owned by the frame (navigator `dialog` state), opened from the Overview's add-a-device skeleton, the Fleet tab's "+ Add device" and the codes ledger's "+ New code". Its FIRST screen is founding's P1-S4 "where will it live?" — three picture cards (rented · recommended, I already have a VPS, a machine at your place; `private`/local sandbox is a place to FOUND in, never to add a device). Rented → P1-S4a's rent card (device name, the broker's sizes + prices, provider · region, Rent) → a rented outcome (name, address, size, region; Done closes) — the box enrols ITSELF, no code is handed over. Own-VPS → the enrol form with kind=server preset. Self-hosted → the enrol form (name → kind picker → location → role hint → two doorways; Back). Record the rulings: the place art is the KIT's (`packages/ui-kit/src/components/OcPlaceArt.vue`, the app's `FoundingAccessArt.vue` is a wrapper); a seam without a broker opens straight on the form; a failed rent stays on the card, nothing half-rented (ADR 0047). 2. **Wireframes** under `docs/ux/wireframes/p2-device-add-cli/`: `p2-s1-fleet-add-device.html` redrawn as the dialog's enrol form; new `p2-s1a-where-will-it-live.html` (the place screen) and `p2-s1b-rent-a-server.html` (rent card + rented outcome). Same `data-field` / `data-action` names the built components use (`device-place`, `place-options`, `option:<kind>`, `rent-server`, `server-presets`, `preset:<slug>`, `region`, `rent`, `rented-server`, `done`, `device-name-input`, `kind-<kind>`, `device-location-input`, `intended-role-select`, `path-cli`, `path-app`, `back`). 3. **Flow** `docs/ux/flows/p2-device-add-cli.mermaid`: edge DF/A4/DF2 → P2-S1 now lands on S1a; S1a → S1b (rented) → done; S1a → S1 (own-vps, self-hosted). 4. `docs/architecture/` diagram touched by the dialog ruling, if any (ADR 0042), in the same commit. ## Acceptance criteria - [ ] Given the DDR, when read, then it states the dialog ruling, the place-screen ruling, the rented-enrols-itself rule and the no-broker fallback, each with Ben's 2026-09-11 date, and names DDR 0109 as amended. - [ ] Given the three wireframes, when opened, then every `data-field`/`data-action` the built components emit appears on the frame that owns it, and nothing on a frame is absent from the code. - [ ] Given the flow file, when rendered, then S1a/S1b appear with the edges above and no edge lands on the old in-place Fleet mount. - [ ] Given `STATUS.md`, when the commit lands, then the header line and the device-add row record the amended contract. ## Why session Design-tier run (`/wireframe`, DDR) on an unmerged branch — session standing, not a swarm worker.

Close-report — ruled by agent under ADR 0174 (veto anytime).

Design-tier session; the design contract for the add-a-device dialog built on the unmerged branch founding-ui-two-colour-rail-ceremony is now recorded. Commit 7f5c9188e75ca207db586be2ec6ac22788676d62 on main.

Landed

  • DDR 0237-design-device-add-dialog-and-place-screen.md (next free number, checked against origin/main) — amends DDR 0109. States, each dated Ben 2026-09-11: the dialog ruling (one frame-owned modal, navigator dialog state, opened from the Overview add-a-device skeleton / Fleet + Add device / codes ledger + New code); the place-screen ruling (first screen = founding P1-S4, cards option:rented·recommended / option:own-vps / option:self-hosted, kit's OcPlaceArt.vue with FoundingAccessArt.vue a wrapper, private deliberately absent); the rented-enrols-itself rule (no code handed over, ADR 0047); the no-broker fallback (placeOptions absent → straight to the enrol form); and the failed-rent-stays-in-place / nothing-half-rented rule (ADR 0047 · DDR 0190).
  • Wireframes under docs/ux/wireframes/p2-device-add-cli/: p2-s1-fleet-add-device.html redrawn as the dialog's enrol form; new p2-s1a-where-will-it-live.html (place) and p2-s1b-rent-a-server.html (rent card + rented outcome). Every data-field/data-action from the ticket appears on the owning frame — place: device-place, place-options, option:<kind>; rent: rent-server, device-name-input, server-presets, preset:<slug> (s-2vcpu-4gb/s-4vcpu-8gb, #1393), region, rent, rented-server, done; form: device-name-input, kind-<kind>, device-location-input, intended-role-select, path-cli, path-app, back.
  • Flow docs/ux/flows/p2-device-add-cli.mermaid: entry edges (DO/DF/DF2/A4) land on S1a; S1a→S1b (rented)→done; S1a→S1 (own-vps, self-hosted); no edge on the old in-place Fleet mount. shell.mermaid entry labels relabelled to "opens the device-add dialog" (ADR 0042 same-commit). Both parse: node scripts/check-mermaid.mjs ✓ 2/2.
  • Architecture: no diagram touched — DDR 0109's mount was a pure UI-surface ruling; no docs/architecture/ diagram encodes where in the dashboard device-add renders (02/15/08 draw the seam/lifecycle/containers, unmoved). ADR 0042 satisfied vacuously (recorded in the DDR).
  • STATUS.md (same commit): header line + Phase-1 device-add row record the amended dialog/place contract.

Proof / caveat (honest residue). The dashboard half is built but unpushed on Ben's local branch — unreachable from this host (confirmed: no founding-ui-two-colour-rail-ceremony on origin, no PlaceScreen.vue/DeviceAddDialog.vue anywhere on the box, none of DevicePlaceOption/ServerOffer/RentServerRequest/RentedServer on origin/main). So the wireframes encode the contract this ticket enumerated, cross-checked against the on-main sources for every slug I could verify — option:<kind> from FoundingAccess.vue, preset:<slug> from the #1393 broker config. The one inferred family is the enrol form's kind-<kind> (drawn server/machine); /design-verify against the merged branch is the closing check that the literals match deviceAdd.ts — noted in DDR 0237's consequences.

Closing as done: the DDR, three wireframes, flow and STATUS are all landed and proven (mermaid parse; every ticket-listed attr present on its frame).

**Close-report — ruled by agent under ADR 0174 (veto anytime).** Design-tier session; the design contract for the add-a-device dialog built on the unmerged branch `founding-ui-two-colour-rail-ceremony` is now recorded. Commit `7f5c9188e75ca207db586be2ec6ac22788676d62` on `main`. **Landed** - **DDR `0237-design-device-add-dialog-and-place-screen.md`** (next free number, checked against `origin/main`) — amends **DDR 0109**. States, each dated Ben 2026-09-11: the **dialog ruling** (one frame-owned modal, navigator `dialog` state, opened from the Overview add-a-device skeleton / Fleet `+ Add device` / codes ledger `+ New code`); the **place-screen ruling** (first screen = founding P1-S4, cards `option:rented`·recommended / `option:own-vps` / `option:self-hosted`, kit's `OcPlaceArt.vue` with `FoundingAccessArt.vue` a wrapper, **private deliberately absent**); the **rented-enrols-itself** rule (no code handed over, ADR 0047); the **no-broker fallback** (`placeOptions` absent → straight to the enrol form); and the failed-rent-stays-in-place / nothing-half-rented rule (ADR 0047 · DDR 0190). - **Wireframes** under `docs/ux/wireframes/p2-device-add-cli/`: `p2-s1-fleet-add-device.html` **redrawn** as the dialog's enrol form; new `p2-s1a-where-will-it-live.html` (place) and `p2-s1b-rent-a-server.html` (rent card + rented outcome). Every `data-field`/`data-action` from the ticket appears on the owning frame — place: `device-place`, `place-options`, `option:<kind>`; rent: `rent-server`, `device-name-input`, `server-presets`, `preset:<slug>` (`s-2vcpu-4gb`/`s-4vcpu-8gb`, #1393), `region`, `rent`, `rented-server`, `done`; form: `device-name-input`, `kind-<kind>`, `device-location-input`, `intended-role-select`, `path-cli`, `path-app`, `back`. - **Flow** `docs/ux/flows/p2-device-add-cli.mermaid`: entry edges (DO/DF/DF2/A4) land on **S1a**; S1a→S1b (rented)→done; S1a→S1 (own-vps, self-hosted); no edge on the old in-place Fleet mount. `shell.mermaid` entry labels relabelled to "opens the device-add dialog" (ADR 0042 same-commit). Both parse: `node scripts/check-mermaid.mjs` ✓ 2/2. - **Architecture:** no diagram touched — DDR 0109's mount was a pure UI-surface ruling; no `docs/architecture/` diagram encodes *where in the dashboard* device-add renders (02/15/08 draw the seam/lifecycle/containers, unmoved). ADR 0042 satisfied vacuously (recorded in the DDR). - **STATUS.md** (same commit): header line + Phase-1 device-add row record the amended dialog/place contract. **Proof / caveat (honest residue).** The dashboard half is **built but unpushed** on Ben's local branch — unreachable from this host (confirmed: no `founding-ui-two-colour-rail-ceremony` on `origin`, no `PlaceScreen.vue`/`DeviceAddDialog.vue` anywhere on the box, none of `DevicePlaceOption`/`ServerOffer`/`RentServerRequest`/`RentedServer` on `origin/main`). So the wireframes encode the contract this ticket enumerated, cross-checked against the on-`main` sources for every slug I could verify — `option:<kind>` from `FoundingAccess.vue`, `preset:<slug>` from the #1393 broker config. The one inferred family is the enrol form's `kind-<kind>` (drawn `server`/`machine`); **`/design-verify` against the merged branch is the closing check** that the literals match `deviceAdd.ts` — noted in DDR 0237's consequences. Closing as done: the DDR, three wireframes, flow and STATUS are all landed and proven (mermaid parse; every ticket-listed attr present on its frame).
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#1395
No description provided.