members: operator-decline — decline a pending member from S1, end-to-end (#64/#101) #115

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

Parent

Feature spec: #19 (members). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over 6596977..9e946b7). Blocker: the S5→S5x edge is dead end-to-end. The seam Decline exists and is tested (internal/member/approval.go:101) and the member-side NotApprovedScreen renders, but ApprovalQueueClient (dashboard/src/lib/members.ts:154-160) exposes only pending()/approveInviteGroup() — decline is a test-only hook. Root cause: p6-s1-members.html only draws "approve all", so the builder faithfully built a wireframe gap.

What to build

Per-member decline in the S1 pending group wired to the seam's Decline, and amend p6-s1-members.html to draw the decline affordance (the wireframe is the binding contract — fix the contract in the same slice).

Acceptance criteria

  • Given pending members in the S1 approval group, when I decline one, then the seam's Decline runs, the member leaves the pending group, and the rest are untouched.
  • Given a declined member, when they next look at their app, then they see S5x (not approved) — the edge is live end-to-end.
  • The amended wireframe draws the decline affordance and the built screen matches its data-action contract.

Blocked by

None — seam and member-side screen are closed.

Task manifest

task: members:operator-decline
implements_flow: p6-members
implements_edge: "S1 pending group → decline; S5→S5x"
wireframe: docs/ux/wireframes/p6-members/p6-s1-members.html
interface: "a production decline path on ApprovalQueueClient + per-member decline action in the S1 pending group; wireframe amended to draw it"
seam: "component test driving decline through the production client (not the test hook); seam untouched"
acceptance: "#64's decline clauses become true end-to-end (see Acceptance criteria above)"
depends_on: []
out_of_scope: [approval flow (built), removal (S6, built)]
needs_human_decision: []
## Parent Feature spec: #19 (members). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over `6596977..9e946b7`). Blocker: the S5→S5x edge is dead end-to-end. The seam `Decline` exists and is tested (`internal/member/approval.go:101`) and the member-side NotApprovedScreen renders, but `ApprovalQueueClient` (`dashboard/src/lib/members.ts:154-160`) exposes only `pending()`/`approveInviteGroup()` — `decline` is a test-only hook. Root cause: `p6-s1-members.html` only draws "approve all", so the builder faithfully built a wireframe gap. ## What to build Per-member decline in the S1 pending group wired to the seam's `Decline`, and **amend `p6-s1-members.html`** to draw the decline affordance (the wireframe is the binding contract — fix the contract in the same slice). ## Acceptance criteria - [ ] Given pending members in the S1 approval group, when I decline one, then the seam's Decline runs, the member leaves the pending group, and the rest are untouched. - [ ] Given a declined member, when they next look at their app, then they see S5x (not approved) — the edge is live end-to-end. - [ ] The amended wireframe draws the decline affordance and the built screen matches its data-action contract. ## Blocked by None — seam and member-side screen are closed. ## Task manifest ```yaml task: members:operator-decline implements_flow: p6-members implements_edge: "S1 pending group → decline; S5→S5x" wireframe: docs/ux/wireframes/p6-members/p6-s1-members.html interface: "a production decline path on ApprovalQueueClient + per-member decline action in the S1 pending group; wireframe amended to draw it" seam: "component test driving decline through the production client (not the test hook); seam untouched" acceptance: "#64's decline clauses become true end-to-end (see Acceptance criteria above)" depends_on: [] out_of_scope: [approval flow (built), removal (S6, built)] needs_human_decision: [] ```
Author
Owner

Done in 4a3261f (on origin/main). The S5→S5x decline edge is now live end-to-end.

  • ApprovalQueueClient.decline(personId) is a real face on the interface (no reason authored on screen — DDR 0073); FakeApprovalQueueClient mirrors the seam (declined row leaves its group, rest untouched, emptied group drops out).
  • ApprovalQueue.vue draws a per-member decline affordance (data-field="pending-member-*", data-action="decline") alongside approve-all, wired to the seam's Decline; MembersSurface re-reads so the declined member leaves S1 too.
  • p6-s1-members.html amended to draw the decline affordance (the binding contract, fixed in the same slice).

Acceptance: (1) declining one runs the seam's Decline, the member leaves the pending group, the rest are untouched — membersList.test.ts per-member-decline block; (2) the member sees S5x on their next check — the member-side path (checkState → not-approved) is unchanged and covered by membersJoin.test.ts, over the shared Go seam; (3) the wireframe draws the decline affordance and the built screen matches its data-action contract.

Evidence: full dashboard suite green (414 tests), typecheck + eslint clean; Go seam untouched. Files: dashboard/src/lib/members.ts, dashboard/src/components/members/{ApprovalQueue,MembersSurface}.vue, docs/ux/wireframes/p6-members/p6-s1-members.html, dashboard/tests/unit/membersList.test.ts.

Done in `4a3261f` (on `origin/main`). The S5→S5x decline edge is now live end-to-end. - `ApprovalQueueClient.decline(personId)` is a real face on the interface (no reason authored on screen — DDR 0073); `FakeApprovalQueueClient` mirrors the seam (declined row leaves its group, rest untouched, emptied group drops out). - `ApprovalQueue.vue` draws a per-member `decline` affordance (`data-field="pending-member-*"`, `data-action="decline"`) alongside `approve-all`, wired to the seam's `Decline`; `MembersSurface` re-reads so the declined member leaves S1 too. - `p6-s1-members.html` amended to draw the decline affordance (the binding contract, fixed in the same slice). Acceptance: (1) declining one runs the seam's Decline, the member leaves the pending group, the rest are untouched — `membersList.test.ts` per-member-decline block; (2) the member sees S5x on their next check — the member-side path (`checkState → not-approved`) is unchanged and covered by `membersJoin.test.ts`, over the shared Go seam; (3) the wireframe draws the decline affordance and the built screen matches its `data-action` contract. Evidence: full dashboard suite green (414 tests), typecheck + eslint clean; Go seam untouched. Files: `dashboard/src/lib/members.ts`, `dashboard/src/components/members/{ApprovalQueue,MembersSurface}.vue`, `docs/ux/wireframes/p6-members/p6-s1-members.html`, `dashboard/tests/unit/membersList.test.ts`.
ben closed this issue 2026-07-26 21:17:43 +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#115
No description provided.