members: join-approval-ui — branded signup, waiting, dead-invite, not-approved + the approval queue #101

Closed
opened 2026-07-25 12:58:04 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #19 (members). Follow-up UI slice filed by design-verify 2026-07-25: #64 closed seam-only; this slice ships the owed screen(s) P6-S3/S3x/S5/S5x per swarm prompt rule 2b (the wireframe is the binding UI contract).

What to build

The member-facing join journey and the operator's approval queue: branded signup (S3, brandkit-compiled tokens), the waiting state (S5), the no-reason dead-invite (S3x) and not-approved (S5x) ends, and the pending list grouped by invite with approve-all on the operator side. Public screens follow enroll's public-endpoint discipline. Build to the four wireframes.

Acceptance criteria

  • Given a valid invite link, when it opens, then S3 renders branded (name + logo via brandkit tokens) and submits through the seam's signup API into S5 waiting.
  • Given a dead invite, when the link opens, then S3x renders the branded no-reason end (no cause leaked).
  • Given a declined join, when the member returns, then S5x shows the honest not-approved state.
  • Given pending joins, when the operator views them, then they group by invite with approve-all, and approval propagates over OIDC (seam API).

Blocked by

  • #64 members:join-approval — the seam.
  • #27 bootstrap:brandkit-seam — branded screens.

Task manifest

task: members:join-approval-ui
implements_flow: p6-members
implements_edge: "S2→S3, S3→S5, S5→S1, S5→S5x, S2→S3x"
wireframe: [p6-s3-member-joins.html, p6-s5-waiting-approval.html, p6-s3x-dead-invite.html, p6-s5x-not-approved.html] (docs/ux/wireframes/p6-members/)
interface: "the public join screens + the operator approval queue over the member seam's signup/approve APIs"
seam: "component tests against the wireframe's data-field/data-action/data-status contract (dashboard + public signup face); reads only through the closed seam's API — no local truth"
acceptance: "the UI-facing Given/When/Then clauses of the parent seam ticket, verified against the rendered screen (see Acceptance criteria above)"
depends_on: [members:join-approval, bootstrap:brandkit-seam]
out_of_scope: [the seam behaviour itself (closed in the parent seam ticket) — this slice renders it, never reimplements it]
needs_human_decision: []
## Parent Feature spec: #19 (members). Follow-up UI slice filed by design-verify 2026-07-25: #64 closed seam-only; this slice ships the owed screen(s) P6-S3/S3x/S5/S5x per swarm prompt rule 2b (the wireframe is the binding UI contract). ## What to build The member-facing join journey and the operator's approval queue: branded signup (S3, brandkit-compiled tokens), the waiting state (S5), the no-reason dead-invite (S3x) and not-approved (S5x) ends, and the pending list grouped by invite with approve-all on the operator side. Public screens follow enroll's public-endpoint discipline. Build to the four wireframes. ## Acceptance criteria - [ ] Given a valid invite link, when it opens, then S3 renders branded (name + logo via brandkit tokens) and submits through the seam's signup API into S5 waiting. - [ ] Given a dead invite, when the link opens, then S3x renders the branded no-reason end (no cause leaked). - [ ] Given a declined join, when the member returns, then S5x shows the honest not-approved state. - [ ] Given pending joins, when the operator views them, then they group by invite with approve-all, and approval propagates over OIDC (seam API). ## Blocked by - #64 members:join-approval — the seam. - #27 bootstrap:brandkit-seam — branded screens. ## Task manifest ```yaml task: members:join-approval-ui implements_flow: p6-members implements_edge: "S2→S3, S3→S5, S5→S1, S5→S5x, S2→S3x" wireframe: [p6-s3-member-joins.html, p6-s5-waiting-approval.html, p6-s3x-dead-invite.html, p6-s5x-not-approved.html] (docs/ux/wireframes/p6-members/) interface: "the public join screens + the operator approval queue over the member seam's signup/approve APIs" seam: "component tests against the wireframe's data-field/data-action/data-status contract (dashboard + public signup face); reads only through the closed seam's API — no local truth" acceptance: "the UI-facing Given/When/Then clauses of the parent seam ticket, verified against the rendered screen (see Acceptance criteria above)" depends_on: [members:join-approval, bootstrap:brandkit-seam] out_of_scope: [the seam behaviour itself (closed in the parent seam ticket) — this slice renders it, never reimplements it] needs_human_decision: [] ```
Author
Owner

Done in commit bc54244 — the owed screens ship as real components, built to the four wireframes' data-field/data-action/data-status contract.

What landed

  • dashboard/src/lib/members.ts — the seam-mirroring contract: MemberJoinClient (OpenSignup/SubmitSignup/CheckState, enroll's public-endpoint discipline) + ApprovalQueueClient (pending / ApproveInviteGroup), with hand-written fakes mirroring the Go orchestrator's observable behaviour (requestId idempotency, uniform dead-token refusal).
  • dashboard/src/components/members/ — JoinSurface hosting MemberJoinsScreen (S3), WaitingApprovalScreen (S5), DeadInviteScreen (S3x), NotApprovedScreen (S5x), plus ApprovalQueue (the P6-S1 AWAITING APPROVAL section) and CommunityMark (the brand monogram wearing --oc-accent from the compiled kit's tokens).

Acceptance evidence (15 component tests, dashboard/tests/unit/{membersJoin,approvalQueue}.test.ts, all green; vue-tsc + eslint clean)

  1. Valid invite → S3 renders branded (seam Brand port name/greeting + monogram via brandkit token) and submits through the seam's signup API into S5 waiting — incl. both credential paths and idempotent retry (same account, one invite use).
  2. Dead invite → S3x renders the seam's own no-reason copy, still branded, zero actions/links; leak assertions prove expired/revoked/used-up are indistinguishable on screen.
  3. Declined join → check-again resolves to the honest S5x (account gone, no reason, no retry).
  4. Pending joins group by invite with approve-all; approve-all drives the seam's ApproveInviteGroup (OIDC propagation + per-person audit inside the seam) and the queue re-reads — no local truth; approved ids re-emitted for #99's Members surface.

No seam behaviour reimplemented — the components only read/drive internal/member's closed APIs. Note (pre-existing, out of scope): deviceAdd.test.ts has a real-clock flake ("expires in 7 days" reads 6 late in the day); fails on a clean tree too.

Done in commit bc54244 — the owed screens ship as real components, built to the four wireframes' data-field/data-action/data-status contract. **What landed** - `dashboard/src/lib/members.ts` — the seam-mirroring contract: `MemberJoinClient` (OpenSignup/SubmitSignup/CheckState, enroll's public-endpoint discipline) + `ApprovalQueueClient` (pending / ApproveInviteGroup), with hand-written fakes mirroring the Go orchestrator's observable behaviour (requestId idempotency, uniform dead-token refusal). - `dashboard/src/components/members/` — `JoinSurface` hosting `MemberJoinsScreen` (S3), `WaitingApprovalScreen` (S5), `DeadInviteScreen` (S3x), `NotApprovedScreen` (S5x), plus `ApprovalQueue` (the P6-S1 AWAITING APPROVAL section) and `CommunityMark` (the brand monogram wearing `--oc-accent` from the compiled kit's tokens). **Acceptance evidence** (15 component tests, `dashboard/tests/unit/{membersJoin,approvalQueue}.test.ts`, all green; vue-tsc + eslint clean) 1. Valid invite → S3 renders branded (seam Brand port name/greeting + monogram via brandkit token) and submits through the seam's signup API into S5 waiting — incl. both credential paths and idempotent retry (same account, one invite use). 2. Dead invite → S3x renders the seam's own no-reason copy, still branded, zero actions/links; leak assertions prove expired/revoked/used-up are indistinguishable on screen. 3. Declined join → check-again resolves to the honest S5x (account gone, no reason, no retry). 4. Pending joins group by invite with approve-all; approve-all drives the seam's `ApproveInviteGroup` (OIDC propagation + per-person audit inside the seam) and the queue re-reads — no local truth; approved ids re-emitted for #99's Members surface. No seam behaviour reimplemented — the components only read/drive `internal/member`'s closed APIs. Note (pre-existing, out of scope): `deviceAdd.test.ts` has a real-clock flake ("expires in 7 days" reads 6 late in the day); fails on a clean tree too.
ben closed this issue 2026-07-25 14:14:56 +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.

Reference
Matou/idss#101
No description provided.