device-add: app-join-screen — P3-S2 "Join with a code" in the operator app (#50/#48/#68) #113

Closed
opened 2026-07-26 19:40:54 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #13 (device-add). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over 6596977..9e946b7). Blocker and a post-rule-2b violation: #50 shipped every sibling screen but P3-S2 — app/src/lib/navigation.ts:20 declares 'device-add-join' and WelcomeScreen emits it, but no component answers. This also strands #48's five device-end error displays (typed outcomes at internal/join/join.go:141-147, rendered only on the CLI) and #68's S4x→S2 "join with a new code" exit.

What to build

The P3-S2 screen per p3-s2-join-with-a-code.html: code entry; on redeem, the branded community callout (Prospect — internal/join/app.go:94), role hint, spec floor, valid install modes, code expiry; one rendered state per RedeemOutcome kind (the five device-end errors); Continue routes to S3/S3L. Make it the target of 'device-add-join' and of DeclinedScreen's "join with a new code".

Acceptance criteria

  • Given the app's welcome screen, when I choose to join with a code, then P3-S2 renders and accepts a code.
  • Given a valid code, when it is redeemed, then the screen shows the branded community, role hint, spec floor, valid install modes, and code expiry — all from the seam's Prospect.
  • Given each RedeemOutcome error kind, then the screen renders its distinct honest state (#48's five displays), never a generic failure.
  • Given a declined join (S4x), when I choose "join with a new code", then I land back on S2.
  • Given a good prospect, Continue routes to S3 (or S3L per install mode).

Blocked by

None — the join seam is closed and tested.

Task manifest

task: device-add:app-join-screen
implements_flow: p3-device-add-app
implements_edge: "S1→S2; S2 render + redeem; S2→S3/S3L; S4x→S2 (join with a new code)"
wireframe: docs/ux/wireframes/p3-device-add-app/p3-s2-join-with-a-code.html
interface: "an operator-app JoinWithCodeScreen (P3-S2), the target of navigation intent 'device-add-join', over the closed internal/join app seam"
seam: "component tests against the wireframe's data-field/data-action/data-status contract; one state per RedeemOutcome kind; reads only through the seam"
acceptance: "#50 story 8's screen clauses + #48's device-end display clauses + #68's S4x→S2 exit become true (see Acceptance criteria above)"
depends_on: []
out_of_scope: [the join/redeem seam behaviour (closed), CLI rendering (built)]
needs_human_decision: []
## Parent Feature spec: #13 (device-add). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over `6596977..9e946b7`). Blocker and a post-rule-2b violation: #50 shipped every sibling screen but P3-S2 — `app/src/lib/navigation.ts:20` declares `'device-add-join'` and WelcomeScreen emits it, but no component answers. This also strands #48's five device-end error displays (typed outcomes at `internal/join/join.go:141-147`, rendered only on the CLI) and #68's S4x→S2 "join with a new code" exit. ## What to build The P3-S2 screen per `p3-s2-join-with-a-code.html`: code entry; on redeem, the branded community callout (Prospect — `internal/join/app.go:94`), role hint, spec floor, valid install modes, code expiry; one rendered state per `RedeemOutcome` kind (the five device-end errors); Continue routes to S3/S3L. Make it the target of `'device-add-join'` and of DeclinedScreen's "join with a new code". ## Acceptance criteria - [ ] Given the app's welcome screen, when I choose to join with a code, then P3-S2 renders and accepts a code. - [ ] Given a valid code, when it is redeemed, then the screen shows the branded community, role hint, spec floor, valid install modes, and code expiry — all from the seam's Prospect. - [ ] Given each RedeemOutcome error kind, then the screen renders its distinct honest state (#48's five displays), never a generic failure. - [ ] Given a declined join (S4x), when I choose "join with a new code", then I land back on S2. - [ ] Given a good prospect, Continue routes to S3 (or S3L per install mode). ## Blocked by None — the join seam is closed and tested. ## Task manifest ```yaml task: device-add:app-join-screen implements_flow: p3-device-add-app implements_edge: "S1→S2; S2 render + redeem; S2→S3/S3L; S4x→S2 (join with a new code)" wireframe: docs/ux/wireframes/p3-device-add-app/p3-s2-join-with-a-code.html interface: "an operator-app JoinWithCodeScreen (P3-S2), the target of navigation intent 'device-add-join', over the closed internal/join app seam" seam: "component tests against the wireframe's data-field/data-action/data-status contract; one state per RedeemOutcome kind; reads only through the seam" acceptance: "#50 story 8's screen clauses + #48's device-end display clauses + #68's S4x→S2 exit become true (see Acceptance criteria above)" depends_on: [] out_of_scope: [the join/redeem seam behaviour (closed), CLI rendering (built)] needs_human_decision: [] ```
Author
Owner

Shipped in 94ed99c (on origin/main).

The P3-S2 "Join with a code" operator-app screen now exists and answers the device-add-join nav intent.

What landed:

  • app/src/lib/redeem.ts — the app-side non-consuming read seam (RedeemSource/Prospect/RedeemResult + FakeRedeemSource; continueRoute/expiresInDays/specFloorLine), mirroring the closed internal/join Redeem→Prospect Go seam. A code is READ, never spent (ADR 0028).
  • app/src/components/device-add/JoinWithCodeScreen.vue — P3-S2 per the wireframe's data-field/data-action/data-status contract.
  • Exported from app/src/index.ts.
  • app/tests/unit/joinWithCode.test.ts — 15 cases.

Acceptance clauses (all met, evidence in the test file):

  1. Welcome → "Join with a code" → P3-S2 renders and accepts a code (WelcomeScreen already emits the intent; this screen is its target).
  2. A valid code shows the branded community, role hint, spec floor, valid install modes, and expiry — all from the seam's Prospect.
  3. Each RedeemOutcome kind (unknown/expired/revoked/consumed/in-use) renders its own honest state — #48's five displays, never a generic failure; the typo case keeps the same code retryable.
  4. DeclinedScreen's "join with a new code" is the S4x→S2 exit that reaches this screen (#68).
  5. Continue routes to S3 (VM-only) or S3L (Linux, both modes) per the prospect's install modes.

Verification: full app suite 212 green, vue-tsc + eslint clean.

Shipped in `94ed99c` (on `origin/main`). The P3-S2 "Join with a code" operator-app screen now exists and answers the `device-add-join` nav intent. **What landed:** - `app/src/lib/redeem.ts` — the app-side non-consuming read seam (`RedeemSource`/`Prospect`/`RedeemResult` + `FakeRedeemSource`; `continueRoute`/`expiresInDays`/`specFloorLine`), mirroring the closed `internal/join` `Redeem`→`Prospect` Go seam. A code is READ, never spent (ADR 0028). - `app/src/components/device-add/JoinWithCodeScreen.vue` — P3-S2 per the wireframe's `data-field`/`data-action`/`data-status` contract. - Exported from `app/src/index.ts`. - `app/tests/unit/joinWithCode.test.ts` — 15 cases. **Acceptance clauses (all met, evidence in the test file):** 1. Welcome → "Join with a code" → P3-S2 renders and accepts a code (WelcomeScreen already emits the intent; this screen is its target). 2. A valid code shows the branded community, role hint, spec floor, valid install modes, and expiry — all from the seam's Prospect. 3. Each RedeemOutcome kind (unknown/expired/revoked/consumed/in-use) renders its own honest state — #48's five displays, never a generic failure; the typo case keeps the same code retryable. 4. DeclinedScreen's "join with a new code" is the S4x→S2 exit that reaches this screen (#68). 5. Continue routes to S3 (VM-only) or S3L (Linux, both modes) per the prospect's install modes. Verification: full app suite 212 green, `vue-tsc` + eslint clean.
ben closed this issue 2026-07-26 21:47:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#113
No description provided.