Skip to content

Add Decline and Remove to the workspace members card - #3293

Merged
mstomar125 merged 2 commits into
mainfrom
feature/issue-514-decline-admission
Sep 29, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
feature/issue-514-decline-admission

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Closes NodeSpaceAI/nodespace-sync#514

Depends on sync PR 515 (NodeSpaceAI/nodespace-sync#515) — merge that first; this PR refreshes core's copy of nodespace_pro.proto from it (additive: one rpc + one message).

  • pro_remove_from_tenant Tauri command over the daemon's new RemoveFromTenant RPC; errors go through admission_error() with a new Remove op (PermissionDenied covers non-admin and owner-removal; NotFound = person already gone).
  • membershipService.removeFromTenant.
  • Workspace members card (owner/admin only, as before): Decline on pending rows and Remove on a new Members list of active rows, excluding the owner and the caller. Both use an inline confirm/cancel step; Approve is hidden while a decline is being confirmed.

Tests: 6 component tests (confirm gating, cancel, error-on-row, owner/self exclusion, hidden section, remove+reload) and 2 Rust error-mapping tests; mutation-checked (skip-confirm, owner/self inclusion, no-disarm, wrong command, pending in Members, Approve visible while confirming, Remove NotFound arm).

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
Contributor Author

Review (pragmatic-code-reviewer, medium): APPROVE with improvements, no blockers. Addressed in the follow-up commit:

  1. Decline/Remove trigger is now disabled while that row is being approved, and per-row confirm state is pruned for people no longer on the roster (test + mutation-checked).
  2. A failed remove now reloads the roster so a stale row disappears (test + mutation-checked).
  3. Remove-specific Unimplemented wording for a daemon that predates RemoveFromTenant (test added).
    Deferred as follow-up (not blocking): focus management and Escape-to-cancel for the inline confirm, and making the in-flight label visible to screen readers.
    Merge order: sync Frontend: Send flat properties directly (remove nested type wrapper) #515 must merge and ship before this, otherwise Decline/Remove return Unimplemented. Fixes were small and local, so re-review was a self-check against the reviewer's items rather than a second full pass.

mstomar125 and others added 2 commits September 29, 2026 13:27
Add a pro_remove_from_tenant Tauri command over the new daemon
RemoveFromTenant RPC (proto refreshed, additive), a
membershipService.removeFromTenant wrapper, and admin-only controls on the
card: Decline on pending rows and Remove on active non-owner, non-self
rows, each behind an inline confirmation step.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…, Remove-specific Unimplemented wording

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@mstomar125
mstomar125 force-pushed the feature/issue-514-decline-admission branch from 71a41c9 to 01e3f3e Compare September 29, 2026 11:28
@mstomar125
mstomar125 merged commit 7540f7b into main Sep 29, 2026
@mstomar125
mstomar125 deleted the feature/issue-514-decline-admission branch September 29, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant