Repository navigation
Add pro_list_invites / pro_list_requests / pro_revoke_invite / pro_current_person Tauri commands (#239) - #1472
Merged
mstomar125 merged 1 commit intoJul 2, 2026
Merged
mstomar125 merged 1 commit into
mstomar125 merged 1 commit into
Conversation
…rrent_person Tauri commands (#239) Refresh the vendored Pro proto from the daemon source-of-truth (adds the ListInvites / ListRequests / RevokeInvite / GetIdentity RPCs + Invite / JoinRequest / GetIdentity messages) and add the matching Tauri commands: - pro_list_invites → Vec<InviteDto{id,code,email,permission,expires_at}> - pro_list_requests → Vec<RequestDto{id,requested_by,created_at}> - pro_revoke_invite(invite_id) — cancel a pending invite or join request - pro_current_person → PersonDto{person_id,email} — the caller's own bound PersonNode id (+ email) so the UI can identify its own roster row and gate admin controls on the caller's per-collection role. Empty person_id on an un-bound device is treated as "role unknown". Each is a thin pass-through over the daemon gRPC client, mirroring the eight existing membership commands, and registered in the invoke handler. They resolve the ProClient or fail in community mode, so the community build is unaffected. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
Author
|
APPROVE S2 core-half — correct and wire-safe. Verified at head
🟢 Non-blocking (pre-existing): the module doc ( 🔶 Cross-layer: this consumes sync#244's daemon RPCs (still open) — keep the daemon landing ahead of / with this so the commands resolve at runtime. LGTM. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core (desktop-app) half of NodeSpaceAI/nodespace-sync#239 (S2 of the collection-membership-UI epic #237). Pairs with the daemon-half PR on nodespace-sync (adds the four gRPC methods this consumes).
What
Refreshes the vendored Pro proto from the daemon source-of-truth and adds four Tauri commands, each a thin pass-through over the daemon gRPC client — mirroring the eight existing membership commands (resolve the
ProClientor fail in community mode, then one RPC):pro_list_invites(collection_id)Vec<InviteDto{id,code,email,permission,expires_at}>pro_list_requests(collection_id)Vec<RequestDto{id,requested_by,created_at}>pro_revoke_invite(invite_id)()pro_current_person()PersonDto{person_id,email}pro_current_persongives the UI the caller's identity so it can tell which roster row is "me" and gate admin controls on the caller's own per-collection role. An emptyperson_id(un-bound device) is treated as "role unknown".The proto is refreshed wholesale from
nodespace-sync/nodespaced-pro/proto/nodespace_pro.proto(the documentedscripts/refresh-pro-proto.shsource-of-truth), so the vendored copy stays byte-identical to the daemon's wire contract.Community build
All four resolve the
ProClientor return an error in community mode (noProClientin managed state) — identical to the existing membership commands. The communitynodespacedbinary has no knowledge of this proto package, so the community build is behaviorally unchanged.Checks
cargo check— clean (proto regenerates viabuild.rs).cargo clippy— clean.cargo fmt -- --check— clean.Rust-only change (Tauri command bindings + vendored proto); no frontend surface yet — the UI lands in S1/S3/S4/S5.
Part of NodeSpaceAI/nodespace-sync#239.