members: ledger-and-trail — S1 open-invites ledger and the audit-trail drill-in (#99/#42/#102 residuals) #116

Closed
opened 2026-07-26 19:41:02 +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). Two narrow residuals from the remediation wave:

  1. S1 open-invites ledger — p6-s1-members.html:29 draws an open-invites section on S1 (including revoke-invite); the built MembersScreen renders the ledger only inside S2 (#99 residual).
  2. Audit-trail drill-in — #42 story 31: the seam Trail is tested, but S4 renders only the static chip (MemberDetailScreen.vue:167-171) — no drill-in from member detail (#102 residual).

Acceptance criteria

  • Given open invites, when S1 renders, then the open-invites section appears per the wireframe with working revoke-invite.
  • Given a member's detail (S4), when I open the audit trail, then the seam's Trail entries render — the chip becomes a drill-in.

Blocked by

None.

Task manifest

task: members:ledger-and-trail
implements_flow: p6-members
implements_edge: "S1 open-invites section (+revoke-invite); S4 → audit trail drill-in"
wireframe: docs/ux/wireframes/p6-members/p6-s1-members.html
interface: "the S1 open-invites ledger section on MembersScreen + a Trail drill-in on MemberDetailScreen, both over the closed member seam"
seam: "component tests against the wireframes' data-field/data-action contracts; reads only through the seam"
acceptance: "the residual UI clauses of #42 story 31 and #99's S1 contract become true (see Acceptance criteria above)"
depends_on: []
out_of_scope: [invite creation (S2, built), member detail body (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`). Two narrow residuals from the remediation wave: 1. **S1 open-invites ledger** — `p6-s1-members.html:29` draws an open-invites section on S1 (including `revoke-invite`); the built MembersScreen renders the ledger only inside S2 (#99 residual). 2. **Audit-trail drill-in** — #42 story 31: the seam `Trail` is tested, but S4 renders only the static chip (`MemberDetailScreen.vue:167-171`) — no drill-in from member detail (#102 residual). ## Acceptance criteria - [ ] Given open invites, when S1 renders, then the open-invites section appears per the wireframe with working revoke-invite. - [ ] Given a member's detail (S4), when I open the audit trail, then the seam's Trail entries render — the chip becomes a drill-in. ## Blocked by None. ## Task manifest ```yaml task: members:ledger-and-trail implements_flow: p6-members implements_edge: "S1 open-invites section (+revoke-invite); S4 → audit trail drill-in" wireframe: docs/ux/wireframes/p6-members/p6-s1-members.html interface: "the S1 open-invites ledger section on MembersScreen + a Trail drill-in on MemberDetailScreen, both over the closed member seam" seam: "component tests against the wireframes' data-field/data-action contracts; reads only through the seam" acceptance: "the residual UI clauses of #42 story 31 and #99's S1 contract become true (see Acceptance criteria above)" depends_on: [] out_of_scope: [invite creation (S2, built), member detail body (built)] needs_human_decision: [] ```
Author
Owner

Shipped in 960a5bd (on origin/main).

1. S1 open-invites ledger (#99 residual). New dashboard/src/components/members/OpenInvitesLedger.vue composes on MembersSurface below the approval queue, reading the invite seam's OpenInvites()/RevokeInvite() — the wireframe's OPEN INVITES section (p6-s1-members.html:29) now lives on S1, showing still-open invites with a working data-action="revoke-invite" that re-reads (a revoked invite drops out on the seam's next answer; the section steps away when none remain — invites never appear as phantom member rows).

2. S4 audit-trail drill-in (#42 story 31 / #102 residual). The ALL IDENTITY ACTIONS AUDIT-LOGGED chip on MemberDetailScreen.vue is no longer static — it is a drill-in (data-action="open-audit-trail") that reads the seam's Trail(personId) and renders the member's audit entries newest-first (data-field="audit-entry-*"). New seam types AuditEntry/AuditAction in memberDetail.ts mirror internal/member/audit.go, and FakeMemberDetailClient now records an entry for every lifecycle verb (reset/suspend/unsuspend/designation/role-change) so the drill-in shows what actually happened.

Acceptance: both clauses verified by new component tests in dashboard/tests/unit/membersList.test.ts (S1 ledger renders + revoke) and dashboard/tests/unit/memberDetail.test.ts (chip-as-drill-in, newest-first, action-lands-in-trail, empty-trail honesty).

Verify: dashboard vitest 410 pass, vue-tsc typecheck clean, eslint clean on changed files.

Shipped in `960a5bd` (on `origin/main`). **1. S1 open-invites ledger (#99 residual).** New `dashboard/src/components/members/OpenInvitesLedger.vue` composes on `MembersSurface` below the approval queue, reading the invite seam's `OpenInvites()`/`RevokeInvite()` — the wireframe's `OPEN INVITES` section (`p6-s1-members.html:29`) now lives on S1, showing still-open invites with a working `data-action="revoke-invite"` that re-reads (a revoked invite drops out on the seam's next answer; the section steps away when none remain — invites never appear as phantom member rows). **2. S4 audit-trail drill-in (#42 story 31 / #102 residual).** The `ALL IDENTITY ACTIONS AUDIT-LOGGED` chip on `MemberDetailScreen.vue` is no longer static — it is a drill-in (`data-action="open-audit-trail"`) that reads the seam's `Trail(personId)` and renders the member's audit entries newest-first (`data-field="audit-entry-*"`). New seam types `AuditEntry`/`AuditAction` in `memberDetail.ts` mirror `internal/member/audit.go`, and `FakeMemberDetailClient` now records an entry for every lifecycle verb (reset/suspend/unsuspend/designation/role-change) so the drill-in shows what actually happened. **Acceptance:** both clauses verified by new component tests in `dashboard/tests/unit/membersList.test.ts` (S1 ledger renders + revoke) and `dashboard/tests/unit/memberDetail.test.ts` (chip-as-drill-in, newest-first, action-lands-in-trail, empty-trail honesty). **Verify:** dashboard vitest 410 pass, `vue-tsc` typecheck clean, eslint clean on changed files.
ben closed this issue 2026-07-26 21:11:26 +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#116
No description provided.