members: komiti-ui — the P6-S7 komiti detail with the access matrix #104

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

Parent

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

What to build

The S7 komiti screen: komiti CRUD, the service × komiti access matrix (auth-gate truth), declared per-app role mappings, and — on S4 — the kaitiaki designation and operator grant/revoke actions the seam already implements. Build to p6-s7-komiti-detail.html plus S4's amended fields.

Acceptance criteria

  • Given the Members tab, when I open a komiti, then S7 shows its members and the service × komiti matrix (fields per wireframe); edits commit through the seam and bite on next request.
  • Given a port with declared role mappings, when S7 renders it, then the mapping is shown and editable per the declaration.
  • Given S4, when I designate kaitiaki or grant/revoke the operator role, then the seam's verbs run (grant invoking rescue's key mint) and the UI reflects the result.

Blocked by

  • #76 members:komiti-matrix-roles — the seam.
  • #102 — S4 actions + navigation.

Task manifest

task: members:komiti-ui
implements_flow: p6-members
implements_edge: "S1→S7, S7→S1"
wireframe: docs/ux/wireframes/p6-members/p6-s7-komiti-detail.html
interface: "the S7 komiti screen + S4 role actions over the member seam's komiti/matrix/role APIs"
seam: "component tests against the wireframe's data-field/data-action/data-status contract (dashboard); 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:komiti-matrix-roles, members:member-detail-ui]
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: #76 closed seam-only; this slice ships the owed screen(s) P6-S7 per swarm prompt rule 2b (the wireframe is the binding UI contract). ## What to build The S7 komiti screen: komiti CRUD, the service × komiti access matrix (auth-gate truth), declared per-app role mappings, and — on S4 — the kaitiaki designation and operator grant/revoke actions the seam already implements. Build to `p6-s7-komiti-detail.html` plus S4's amended fields. ## Acceptance criteria - [ ] Given the Members tab, when I open a komiti, then S7 shows its members and the service × komiti matrix (fields per wireframe); edits commit through the seam and bite on next request. - [ ] Given a port with declared role mappings, when S7 renders it, then the mapping is shown and editable per the declaration. - [ ] Given S4, when I designate kaitiaki or grant/revoke the operator role, then the seam's verbs run (grant invoking rescue's key mint) and the UI reflects the result. ## Blocked by - #76 members:komiti-matrix-roles — the seam. - #102 — S4 actions + navigation. ## Task manifest ```yaml task: members:komiti-ui implements_flow: p6-members implements_edge: "S1→S7, S7→S1" wireframe: docs/ux/wireframes/p6-members/p6-s7-komiti-detail.html interface: "the S7 komiti screen + S4 role actions over the member seam's komiti/matrix/role APIs" seam: "component tests against the wireframe's data-field/data-action/data-status contract (dashboard); 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:komiti-matrix-roles, members:member-detail-ui] 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 — commit f8a7758 on the swarm branch.

What shipped: the P6-S7 komiti-detail screen (dashboard/src/components/members/KomitiDetailScreen.vue) + the S1 KOMITI management section (KomitiPanel.vue), both over dashboard/src/lib/komiti.ts — the browser contract for the member seam's komiti face (#76, internal/member/komiti.go), composed on MembersSurface (edges S1→S7, S7→S1 with a list re-read).

Acceptance:

  • S7 shows members + the service × komiti matrix; edits commit through the seam and bite on next request — the screen renders the seam's KomitiDetailView verbatim (members with + add, one matrix row per catalogue service with the seam's honest front-door label and access-open/access-restricted status, matrix/delete notes as seam copy, AUDIT-LOGGED chip). Restrict/open run RestrictService/OpenService and the tests prove the edit bites on the member's very next request against the fake's mirrored auth-gate decision (operators never locked out; restricting keeps komiti already opening the service). Rename carries the doors; delete closes doors and touches no account, resting back on S1. Create (with the seam's reserved-name refusal shown honestly) lives on the S1 panel.
  • Declared role mappings shown per the declaration — claim-native and reconciler-mapped name their construct with a kind chip, front-door-only says so honestly (ADR 0076). The mapping itself is the port's declaration, not operator-editable — what S7 edits (front door, membership) reconciles the mapping inside the seam (reconcileMappings), and the tests assert a member-add applies the reconciler mapping.
  • S4 kaitiaki + operator run the seam's verbs — designate-kaitiaki now toggles Designate (a designation, not a role) and the new OPERATOR row runs GrantOperator/RevokeOperator — the grant recorded invoking rescue's key mint (ADR 0089), revoke leaving the member active; every state shown is the seam's next answer.

Evidence: 22 component tests in dashboard/tests/unit/komitiDetail.test.ts against the S7 wireframe's data-field/data-action/data-status contract, plus the amended memberDetail.test.ts; vue-tsc + eslint clean. (The one dashboard-suite failure, deviceAdd's 7-day-expiry copy, is a pre-existing time-of-day flake confirmed failing at HEAD before this change.)

Done — commit f8a7758 on the swarm branch. **What shipped:** the P6-S7 komiti-detail screen (`dashboard/src/components/members/KomitiDetailScreen.vue`) + the S1 KOMITI management section (`KomitiPanel.vue`), both over `dashboard/src/lib/komiti.ts` — the browser contract for the member seam's komiti face (#76, `internal/member/komiti.go`), composed on `MembersSurface` (edges S1→S7, S7→S1 with a list re-read). **Acceptance:** - *S7 shows members + the service × komiti matrix; edits commit through the seam and bite on next request* — the screen renders the seam's `KomitiDetailView` verbatim (members with + add, one matrix row per catalogue service with the seam's honest front-door label and `access-open`/`access-restricted` status, matrix/delete notes as seam copy, AUDIT-LOGGED chip). Restrict/open run `RestrictService`/`OpenService` and the tests prove the edit bites on the member's very next request against the fake's mirrored auth-gate decision (operators never locked out; restricting keeps komiti already opening the service). Rename carries the doors; delete closes doors and touches no account, resting back on S1. Create (with the seam's reserved-name refusal shown honestly) lives on the S1 panel. - *Declared role mappings shown per the declaration* — claim-native and reconciler-mapped name their construct with a kind chip, front-door-only says so honestly (ADR 0076). The mapping itself is the port's declaration, not operator-editable — what S7 edits (front door, membership) reconciles the mapping inside the seam (`reconcileMappings`), and the tests assert a member-add applies the reconciler mapping. - *S4 kaitiaki + operator run the seam's verbs* — designate-kaitiaki now toggles `Designate` (a designation, not a role) and the new OPERATOR row runs `GrantOperator`/`RevokeOperator` — the grant recorded invoking rescue's key mint (ADR 0089), revoke leaving the member active; every state shown is the seam's next answer. **Evidence:** 22 component tests in `dashboard/tests/unit/komitiDetail.test.ts` against the S7 wireframe's data-field/data-action/data-status contract, plus the amended `memberDetail.test.ts`; vue-tsc + eslint clean. (The one dashboard-suite failure, deviceAdd's 7-day-expiry copy, is a pre-existing time-of-day flake confirmed failing at HEAD before this change.)
ben closed this issue 2026-07-25 14:53:22 +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#104
No description provided.