provisioning: change-mode-preticks — pre-tick current setup only, never new recommendations (#79) #122

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

Parent

Feature spec: #17 (provisioning). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over 6596977..9e946b7). Should-fix: in change mode SelectRoleServicesScreen.vue:120-127 arrives with NEW recommendations pre-ticked alongside the current setup — the contract says pre-ticked with the current setup only, so a no-op change would show an ADDS row. The seam side is clean (change.go:87-105 provides preselected).

Acceptance criteria

  • Given change mode, when the screen opens, then ticks are seeded from the seam's preselected (current setup) only.
  • Given a no-op change (open then confirm), then the review shows no ADDS/REMOVES rows — asserted by a negative test.

Blocked by

None.

Task manifest

task: provisioning:change-mode-preticks
implements_flow: p4-provisioning
implements_edge: "S2 (change mode) seed state"
wireframe: docs/ux/wireframes/p4-provisioning/p4-s2-select-role-and-services.html
interface: "tick-seeding fix in SelectRoleServicesScreen change mode (seed from preselected only)"
seam: "component test: change-mode seed equals current setup; negative test: no-op change shows no diff rows"
acceptance: "#79's pre-tick clause holds (see Acceptance criteria above)"
depends_on: []
out_of_scope: [recommendation computation (seam, clean), assign mode (correct)]
needs_human_decision: []
## Parent Feature spec: #17 (provisioning). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over `6596977..9e946b7`). Should-fix: in change mode `SelectRoleServicesScreen.vue:120-127` arrives with NEW recommendations pre-ticked alongside the current setup — the contract says pre-ticked with the current setup only, so a no-op change would show an ADDS row. The seam side is clean (`change.go:87-105` provides `preselected`). ## Acceptance criteria - [ ] Given change mode, when the screen opens, then ticks are seeded from the seam's `preselected` (current setup) only. - [ ] Given a no-op change (open then confirm), then the review shows no ADDS/REMOVES rows — asserted by a negative test. ## Blocked by None. ## Task manifest ```yaml task: provisioning:change-mode-preticks implements_flow: p4-provisioning implements_edge: "S2 (change mode) seed state" wireframe: docs/ux/wireframes/p4-provisioning/p4-s2-select-role-and-services.html interface: "tick-seeding fix in SelectRoleServicesScreen change mode (seed from preselected only)" seam: "component test: change-mode seed equals current setup; negative test: no-op change shows no diff rows" acceptance: "#79's pre-tick clause holds (see Acceptance criteria above)" depends_on: [] out_of_scope: [recommendation computation (seam, clean), assign mode (correct)] needs_human_decision: [] ```
Author
Owner

Done in 43b3973 (on origin/main).

Fix: In change mode SelectRoleServicesScreen seeded ticks from the seam's NEW gap-filling recommendations plus the current setup, so a no-op change surfaced a spurious ADDS row (e.g. backup-copy@Mail). Added a change prop; in change mode initialSelection() now seeds from preselect (the seam's preselected, i.e. the current setup) only — the recommendations still render but arrive unticked. SetupSurface forwards props.change. The seam side (change.go preselected) was already clean and is untouched.

Acceptance:

  • Change mode opens with ticks seeded from preselected (current setup) only — new test asserts the Mail gap-filler renders but is unticked, plus the existing pre-tick tests still pass.
  • No-op change (open→confirm) hands over exactly the current-setup keys with no new recommendation — negative test in dashboard/tests/unit/provisionChange.test.ts, so the seam's delta is empty (no ADDS/REMOVES).

Evidence: dashboard/tests/unit/provisionChange.test.ts (9 pass); full provisioning suite (39 pass) + vue-tsc clean.

Done in `43b3973` (on `origin/main`). **Fix:** In change mode `SelectRoleServicesScreen` seeded ticks from the seam's NEW gap-filling recommendations *plus* the current setup, so a no-op change surfaced a spurious ADDS row (e.g. `backup-copy@Mail`). Added a `change` prop; in change mode `initialSelection()` now seeds from `preselect` (the seam's `preselected`, i.e. the current setup) **only** — the recommendations still render but arrive unticked. `SetupSurface` forwards `props.change`. The seam side (`change.go` `preselected`) was already clean and is untouched. **Acceptance:** - Change mode opens with ticks seeded from `preselected` (current setup) only — new test asserts the Mail gap-filler renders but is unticked, plus the existing pre-tick tests still pass. - No-op change (open→confirm) hands over exactly the current-setup keys with no new recommendation — negative test in `dashboard/tests/unit/provisionChange.test.ts`, so the seam's delta is empty (no ADDS/REMOVES). Evidence: `dashboard/tests/unit/provisionChange.test.ts` (9 pass); full provisioning suite (39 pass) + `vue-tsc` clean.
ben closed this issue 2026-07-26 19:45:59 +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#122
No description provided.