Tracking issue for the multi-grove TODO at crates/client/src/views.rs:95. The doc-comment at views.rs:87-93 already explains the situation: ServerRegistry::shared_groves needs to walk every ServerEntry's state.members map to compute the intersection of grove memberships between two peers (per profile-card.md §Data dependencies). Today v1 of the client tracks one active grove at a time, and ServerEntry does not carry per-grove state.members, so the helper returns Vec::new().
Scope
- Extend
ServerEntry (in crates/client/src/state.rs or wherever it lives — confirm) to expose the materialized members map for that grove.
- Update
ServerRegistry::shared_groves to walk every entry and intersect — drop the always-empty fallback at views.rs:95-103.
- Wire the UI side (profile card "shared groves" section) to show real names.
Why this matters
Spec edge case "no shared groves → omit section" is handled today by the always-empty return, which means the "shared groves" section currently never renders even when peers do share groves. Once the registry tracks more than one grove, this becomes user-visible incorrectness.
Refs
Tracking issue for the multi-grove TODO at
crates/client/src/views.rs:95. The doc-comment atviews.rs:87-93already explains the situation:ServerRegistry::shared_grovesneeds to walk everyServerEntry'sstate.membersmap to compute the intersection of grove memberships between two peers (perprofile-card.md§Data dependencies). Today v1 of the client tracks one active grove at a time, andServerEntrydoes not carry per-grovestate.members, so the helper returnsVec::new().Scope
ServerEntry(incrates/client/src/state.rsor wherever it lives — confirm) to expose the materializedmembersmap for that grove.ServerRegistry::shared_grovesto walk every entry and intersect — drop the always-empty fallback atviews.rs:95-103.Why this matters
Spec edge case "no shared groves → omit section" is handled today by the always-empty return, which means the "shared groves" section currently never renders even when peers do share groves. Once the registry tracks more than one grove, this becomes user-visible incorrectness.
Refs
docs/specs/2026-04-19-ui-design/profile-card.md§Data dependenciescrates/client/src/views.rs:95crates/client/src/views.rs:85-103