members: a joiner with no invite behind them (open registration, DDR 0230) cannot be approved from the ledger — the seam has only the cohort verb #1440

Closed
opened 2026-09-12 15:04:05 +00:00 by ben · 3 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Gap

Approve moved onto the waiting member's row (Ben, 2026-09-12; the awaiting-approval section is gone). The row's verb is approveInviteGroup(inviteId) — approval is per invite cohort (DDR 0073, the hui approve-all), and ApprovalQueueClient has no per-person approve (dashboard/src/lib/members.ts ~:154-166). internal/member/member.go:236-249 groups waiting members by InviteID INCLUDING the empty string, so a person who registered without an invite (DDR 0230: registration is open on IDSS) lands in a cohort with inviteId: "" — and the row's Approve had nothing to emit. The 2026-09-12 review fix disables that button with the title "joined without an invite — approving them is not wired yet" (data-status="no-invite") so it is honest; this ticket makes it work.

What to do

  • openapi + Go: POST /members/{person_id}/approve — per-person admission, the same ledger write the cohort verb makes for one person; refused for a person who is not awaiting approval.
  • internal/member/member.go: do not group the empty invite id — list those as single-person cohorts with no invite ref.
  • Dashboard: ApprovalQueueClient.approve(personId); MembersScreen emits approve for a row with no cohort and approve-group for one with; the button reads "approve" (one person) and is enabled.
  • Decline already is per-person — unchanged.

Acceptance criteria

  • Given a self-registered person awaiting approval, when approve is pressed on their row, then they become a member and the row re-reads as such.
  • Given an invite cohort of three, then the row still reads "approve all 3" and admits the cohort (DDR 0073 unchanged).
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Gap Approve moved onto the waiting member's row (Ben, 2026-09-12; the awaiting-approval section is gone). The row's verb is `approveInviteGroup(inviteId)` — approval is per invite cohort (DDR 0073, the hui approve-all), and `ApprovalQueueClient` has no per-person approve (`dashboard/src/lib/members.ts` ~:154-166). `internal/member/member.go:236-249` groups waiting members by `InviteID` INCLUDING the empty string, so a person who registered without an invite (DDR 0230: registration is open on IDSS) lands in a cohort with `inviteId: ""` — and the row's Approve had nothing to emit. The 2026-09-12 review fix disables that button with the title "joined without an invite — approving them is not wired yet" (`data-status="no-invite"`) so it is honest; this ticket makes it work. ## What to do - openapi + Go: `POST /members/{person_id}/approve` — per-person admission, the same ledger write the cohort verb makes for one person; refused for a person who is not awaiting approval. - `internal/member/member.go`: do not group the empty invite id — list those as single-person cohorts with no invite ref. - Dashboard: `ApprovalQueueClient.approve(personId)`; `MembersScreen` emits `approve` for a row with no cohort and `approve-group` for one with; the button reads "approve" (one person) and is enabled. - Decline already is per-person — unchanged. ## Acceptance criteria - [ ] Given a self-registered person awaiting approval, when approve is pressed on their row, then they become a member and the row re-reads as such. - [ ] Given an invite cohort of three, then the row still reads "approve all 3" and admits the cohort (DDR 0073 unchanged).

swarm-claim host=elitebook-distributed-server-03 run=22579
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=22579 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1440 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1440,
  "status": "success",
  "commits": [
    "1e5bdf6076cc8b4d0cb147bf1b6a5b020bd6377e"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/members/ApprovalQueue.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/membersClient.ts",
    "dashboard/src/lib/members.ts",
    "dashboard/tests/fakes/members.ts",
    "dashboard/tests/unit/approvalQueue.test.ts",
    "dashboard/tests/unit/membersGuard304.test.ts",
    "internal/controlapi/members.go",
    "internal/controlapi/members_integration_test.go",
    "internal/member/member.go",
    "internal/member/signup_test.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "go test ./internal/member/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go test ./... (full module)",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./...",
      "exit_code": 0
    },
    {
      "command": "CI=true node_modules/.bin/vitest run tests/unit/approvalQueue.test.ts tests/unit/membersGuard304.test.ts tests/unit/membersList.test.ts tests/unit/membersLive.test.ts tests/unit/membersIdipKomitiRest.test.ts tests/unit/inviteScreen.test.ts tests/unit/removal.test.ts tests/unit/memberDetail.test.ts tests/unit/komitiDetail.test.ts",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "pnpm run lint (eslint .)",
      "exit_code": 0
    },
    {
      "command": "node scripts/generate-client.mjs --check (openapi in sync)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a self-registered person awaiting approval, when approve is pressed on their row, then they become a member and the row re-reads as such": "internal/member/member.go lists an empty-InviteID awaiting member as a single-person PendingGroup (no invite ref); the orchestrator's per-person Approve is wired over POST /members/{person_id}/approve (openapi postMemberApprove + internal/controlapi/members.go handler); dashboard ApprovalQueue.vue renders an enabled per-person 'approve' (data-action='approve') for a no-cohort group calling ApprovalQueueClient.approve(personId), then re-reads so the admitted row drops. Proven by TestMembers_SelfRegisteredNoInviteIsSinglePersonCohortNoInviteRef (internal/member/signup_test.go), TestMembersHandler_ApprovePersonAdmitsSelfRegisteredJoiner (internal/controlapi/members_integration_test.go), and the 'a self-registered joiner...' vitest cases in dashboard/tests/unit/approvalQueue.test.ts.",
    "Given an invite cohort of three, then the row still reads 'approve all 3' and admits the cohort (DDR 0073 unchanged)": "ApprovalQueue.vue keeps data-action='approve-all' for a group with an invite (hasCohort), and the button reads 'approve all {{ g.members.length }}'. Proven by the 'a cohort’s approve-all names its count (\"approve all 3\")' vitest case; ApproveInviteGroup and its HTTP route are untouched (TestApproveInviteGroup_OneActionEachAuditedIndividually and TestMembersHandler_ApproveGroupReachesTheOrchestrator still green)."
  },
  "summary": "A self-registered joiner with no invite (open registration, DDR 0230) is no longer lumped into a nameless cohort — they list as a single-person group and are admitted one at a time via a new per-person approve wired end to end (Go seam + POST /members/{person_id}/approve + dashboard), while invite cohorts keep 'approve all N' (DDR 0073 unchanged).",
  "reason": "",
  "blockers": []
}
**close-report** for #1440 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1440, "status": "success", "commits": [ "1e5bdf6076cc8b4d0cb147bf1b6a5b020bd6377e" ], "changed_files": [ "STATUS.md", "dashboard/src/components/members/ApprovalQueue.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/membersClient.ts", "dashboard/src/lib/members.ts", "dashboard/tests/fakes/members.ts", "dashboard/tests/unit/approvalQueue.test.ts", "dashboard/tests/unit/membersGuard304.test.ts", "internal/controlapi/members.go", "internal/controlapi/members_integration_test.go", "internal/member/member.go", "internal/member/signup_test.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "go test ./internal/member/ ./internal/controlapi/", "exit_code": 0 }, { "command": "go test ./... (full module)", "exit_code": 0 }, { "command": "golangci-lint run ./...", "exit_code": 0 }, { "command": "CI=true node_modules/.bin/vitest run tests/unit/approvalQueue.test.ts tests/unit/membersGuard304.test.ts tests/unit/membersList.test.ts tests/unit/membersLive.test.ts tests/unit/membersIdipKomitiRest.test.ts tests/unit/inviteScreen.test.ts tests/unit/removal.test.ts tests/unit/memberDetail.test.ts tests/unit/komitiDetail.test.ts", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "pnpm run lint (eslint .)", "exit_code": 0 }, { "command": "node scripts/generate-client.mjs --check (openapi in sync)", "exit_code": 0 } ], "criteria": { "Given a self-registered person awaiting approval, when approve is pressed on their row, then they become a member and the row re-reads as such": "internal/member/member.go lists an empty-InviteID awaiting member as a single-person PendingGroup (no invite ref); the orchestrator's per-person Approve is wired over POST /members/{person_id}/approve (openapi postMemberApprove + internal/controlapi/members.go handler); dashboard ApprovalQueue.vue renders an enabled per-person 'approve' (data-action='approve') for a no-cohort group calling ApprovalQueueClient.approve(personId), then re-reads so the admitted row drops. Proven by TestMembers_SelfRegisteredNoInviteIsSinglePersonCohortNoInviteRef (internal/member/signup_test.go), TestMembersHandler_ApprovePersonAdmitsSelfRegisteredJoiner (internal/controlapi/members_integration_test.go), and the 'a self-registered joiner...' vitest cases in dashboard/tests/unit/approvalQueue.test.ts.", "Given an invite cohort of three, then the row still reads 'approve all 3' and admits the cohort (DDR 0073 unchanged)": "ApprovalQueue.vue keeps data-action='approve-all' for a group with an invite (hasCohort), and the button reads 'approve all {{ g.members.length }}'. Proven by the 'a cohort’s approve-all names its count (\"approve all 3\")' vitest case; ApproveInviteGroup and its HTTP route are untouched (TestApproveInviteGroup_OneActionEachAuditedIndividually and TestMembersHandler_ApproveGroupReachesTheOrchestrator still green)." }, "summary": "A self-registered joiner with no invite (open registration, DDR 0230) is no longer lumped into a nameless cohort — they list as a single-person group and are admitted one at a time via a new per-person approve wired end to end (Go seam + POST /members/{person_id}/approve + dashboard), while invite cohorts keep 'approve all N' (DDR 0073 unchanged).", "reason": "", "blockers": [] } ``` </details>
Author
Owner

Follow-through on main 427c840e: the control-panel pass (606531a0) had already moved approve/decline onto the waiting row and retired ApprovalQueue.vue, so the row now reads the #1440 shape — a group with a real invite id is a cohort (approveInviteGroup, "approve all N"); an empty-invite single is admitted through approve(personId) (data-status="no-invite"). Your approvalQueue.test.ts cases live on the row in membersList.test.ts; the harness gated scenario joins the new verb to its ledger.

Follow-through on main `427c840e`: the control-panel pass (`606531a0`) had already moved approve/decline onto the waiting row and retired `ApprovalQueue.vue`, so the row now reads the #1440 shape — a group with a real invite id is a cohort (`approveInviteGroup`, "approve all N"); an empty-invite single is admitted through `approve(personId)` (`data-status="no-invite"`). Your `approvalQueue.test.ts` cases live on the row in `membersList.test.ts`; the harness gated scenario joins the new verb to its ledger.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1440
No description provided.