feat: live collaboration rooms, SidePanel, sharing self-hosting#88
Merged
Conversation
- Add CollaborationBar, JoinRoomModal, SidePanel components - Add collaborationStore (room state, participants, lock, aiMode, isLocalHost) - Add useCollaboration hook for WebSocket room management - Migrate conversation/room settings to SidePanel overlay - Fix infinite render loop: replace object selectors with scalar selectors - Add optimistic setAiMode with server echo - StatusBar: context-aware live indicator (active vs other chat) - SettingsPanel Sharing tab: multi-section (Shared Links / Live / Self-Hosting) - Add AppSettings.selfHosting.shareServerUrl for custom relay server URL - ChatArea: isLocalHost flag for immediate gear icon visibility - uiStore: add showRoomSettings toggle - types: AppSettings.selfHosting, extend IPC collab API - lib/export: conversation export utilities
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.
Summary
Adds live collaboration rooms, a reusable
SidePaneloverlay, and a restructured Sharing settings tab with self-hosting support.New components
CollaborationBar— room status bar with invite copy, participant avatars, AI mode toggle, and gear buttonJoinRoomModal— modal to join a room via invite URL or room IDSidePanel— reusable right-side overlay panel (used for conversation settings and room settings)New stores / hooks
collaborationStore— room state:roomId,participants,lockHolder,aiMode,hostId,isLocalHost,myIduseCollaboration— WebSocket lifecycle: connect, reconnect, event dispatch, IPC bridgeChatArea
SidePaneloverlays(s) => ({...})creates new reference on every call → use one selector per scalar)isLocalHostflag for immediate gear icon visibility before server confirmshostIdsetAiModeupdate on clickStatusBar
SettingsPanel — Sharing tab
Restructured as multi-section tab (same pill-nav pattern as AI tab):
settings.selfHosting.shareServerUrlTypes
AppSettings.selfHosting?: { shareServerUrl?: string }— custom relay server URLenv.d.tsOther
lib/export.ts— conversation export utilitiesuiStore:showRoomSettingstoggle