You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collections sidebar should reactively update when member_of relationships change #832
The Collections sidebar doesn't automatically refresh when new collections are created or when nodes are added to collections via MCP or other external sources.
Current Behavior
Events for member_of relationship changes are received in tauri-sync-listener.ts and browser-sync-service.ts
These events are only logged, not acted upon:
}elseif(rel.relationshipType==='member_of'){// Collection membership - currently just log, could update collection state if neededlog.debug(\`Memberadded: \${rel.fromId}tocollection \${rel.toId}\`);}
User must manually click on Collections to trigger a refresh
Expected Behavior
When a member_of relationship is created/deleted, the collections sidebar should automatically update
New collections should appear immediately
Member counts should update in real-time
Technical Approach
In tauri-sync-listener.ts (line ~140) and browser-sync-service.ts (line ~274):
Import collectionsData from $lib/stores/collections
On member_of relationship created: call collectionsData.loadCollections()
Optionally: if the target collection is currently selected, also refresh its members
Consider debouncing if many relationships are created in quick succession (like during bulk imports)
Activity
malibio commentedon Jan 26, 2026
Test Baseline (Pre-Implementation)
Frontend Tests: 3468 passed (102 test files)
Rust Backend Tests: 722 passed
Starting implementation of reactive collection sidebar updates.
Reactive collections sidebar updates on member_of changes (#832)
Reactive collections sidebar updates on member_of changes (#833)
Reactive collections sidebar updates on member_of changes (#833)
Reactive collections sidebar updates on member_of changes (#833)
Reactive collections sidebar updates on member_of changes (#833)