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
feat: bi-directional favorites sync between WebUI and Meteor
Implement real-time favorites synchronization with Meteor Client as source of truth
Backend changes:
- Add FAVORITES_STATE_CHANGED and FAVORITES_UPDATE message types
- Add getFavorites/setFavorites/createFavoritesStateMessage to ModuleMapper
- Add handleFavoritesUpdate handler in MeteorWebSocket
- Add broadcastFavoritesChanged to MeteorWebServer
- Track favorite state changes in EventMonitor alongside module state
- Include favorites in initial WebSocket state
Frontend changes:
- Remove localStorage persistence (Meteor is now source of truth)
- Add setFavorites() to modules store for backend updates
- Modify toggleFavorite() to return new favorites array
- Send favorites updates to backend via WebSocket
- Handle favorites.state.changed messages
- Update all favorite toggle components (ModuleCard, ModuleCardCompact, ModuleSettingsDialog)
Favorites now sync bidirectionally:
- WebUI → Meteor: Toggling favorites in browser updates Meteor Client
- Meteor → WebUI: Toggling favorites in-game broadcasts to all connected clients
- Initial state: Favorites loaded from Meteor on WebSocket connect
0 commit comments