Repository navigation
Conversation
Integrated Clerk authentication with sign-in and sign-up pages, added Redux Toolkit for state management, and configured Prettier for code formatting. Updated environment variables, scripts, and dependencies to support these features. Added initial API, profile, and utility files, as well as a custom StoreProvider and GuestBackground component.
Replaced GuestBackground with LinearPurpleBackground and introduced CenteredLayout for consistent centering. Added AuthConditionalButton and Button components to simplify authentication-based navigation and button styling. Updated sign-in, sign-up, and home pages to use new layouts and components. Adjusted dark mode colors and updated app title.
Introduces a GitHub Actions workflow for code quality checks, including linting, formatting, type checking, and build verification. Adds a set of project-level rules for Roo Code AI assistant behavior, covering semantic search, targeted range reads, no fabrication, workflow templates, and handling empty search results.
Added .dockerignore and Dockerfile to enable Docker-based builds and deployments. Updated the start script in package.json to use cross-env for environment variable compatibility and added cross-env as a dev dependency. Minor formatting improvements in LinearPurpleBackground component, added a startup log in server.ts, and updated tsconfig.json to include additional type paths.
Introduces a new AuthConditionalButton on the home page that displays a 'Sign In' button for unauthenticated users, linking to the login route. Also updates AuthConditionalButton to render nothing if authenticatedText is empty and the user is authenticated.
Added Prisma ORM configuration, schema, and client setup for PostgreSQL. Introduced base and user service classes for database operations. Created a new /signing route to sync users on authentication. Updated environment and config files to support Prisma, adjusted type paths, and improved ignore files for Prisma artifacts.
Introduces a new profile page with editable user information (first name, last name, bio) and a responsive UI. Adds supporting layout and UI components (MessagesBackground, LoadingAnimation, MessagesHeader, LayoutWrapper). Updates global styles, ESLint config, and HTTP response utilities to support new features.
Introduced ClerkUserContext to centralize user data handling, including bio extraction from unsafeMetadata. Updated the profile page to use the new context and simplified bio state management.
Added API route to sync user profile data with backend. Updated Prisma schema to include email, firstName, and lastName fields in User model. Modified user service to upsert these fields and added updateLastSeen method. Updated profile page to call sync API after Clerk profile update. Improved button disabled styling in globals.css.
Introduces a Conversation model to the Prisma schema for tracking user-to-user conversations and their latest messages. Adds avatar support to the User model and updates user creation/upsert logic to handle avatars. Refactors UI components to use a new AvatarFrame component for consistent avatar display. Adds friendship and message service layers to support friend and messaging features.
Added API routes for fetching and sending messages between users with cursor-based pagination. Introduced conversation service for managing user conversations and syncing last messages. Refactored message and friendship services for consistency and code reuse. Updated Prisma schema to rename latestMessage to lastMessage and adjusted related logic. Added utility functions for user ID normalization and message data mapping. Removed unused profile API route.
Updated the GET handler in the messages API to return 'userId' instead of 'id' for the opposite user, ensuring consistency in the response object.
Conversations are now sorted by 'updatedAt' instead of last message creation time. The API response field is renamed from 'messages' to 'conversations', and each conversation now includes an 'updateAt' field.
Introduces a Redux slice for conversations and a custom hook to fetch and manage conversations state. Updates the store to include conversations and refactors friend requests reducer export. Integrates StoreProvider in the app layout and connects the new hook to MessagesHeader.
Standardizes the property name from 'updateAt' to 'updatedAt' in both API and Redux slice for consistency and clarity.
Renamed StoreProvider.tsx from src/app to src/redux and updated imports accordingly to better organize redux-related files.
Reorganized UI components into 'atoms', 'display', 'features', and 'feedback' folders for better modularity. Updated imports across the app to reflect new paths. Added CommunitySVG and CrossSignSVG components, and introduced a new SearchInput atom.
Introduces the /messages route with layouts, conversation sidebar, and chat area components. Adds user existence validation for message routes and a user not found page. Implements custom scrollbars and updates user service with isUserExists method.
Adds Redux slice and hooks for per-user chat messages, including pagination, loading, and real-time updates. Introduces MessageBoxChat and related UI components for chat display and input. Updates API routes, hooks, and conversation state to support message loading, sending, and infinite scroll. Adjusts layout and styles for improved chat experience.
Renamed dispose actions in ConversationsSlice and MessagesSlice for clarity and dispatched them after user logout in MessagesHeader to ensure Redux state is cleared when signing out.
Introduces a new useBreakpoint hook to detect screen size and updates the message layout to hide the sidebar on mobile when a conversation is selected. The MessageBoxChat now adjusts its placeholder based on device type, and MessageConversations receives selectedUserId to control its visibility responsively.
Introduces a 'bio' field to the User model, updates Prisma schema, and propagates bio handling through user sync, retrieval, and mapping utilities. Adds a new API route for fetching user data by ID and ensures bio is included in relevant service and API responses.
Introduced a new users slice to store user data separately from conversations. Updated MessageConversations and related hooks to retrieve user info from the users state. Adjusted conversations slice to remove user fields and only store conversation-specific data. Ensured user data is set and cleared appropriately throughout the app lifecycle.
Enhanced error handling in message and user API routes by logging detailed error information to the console. This change aids in debugging by providing more context when errors occur, and standardizes error responses for failed operations.
Introduces the MessageBoxTitle component for enhanced chat headers, including avatar, user info, and action buttons. Adds SVG icon components for UI consistency. Implements useFetchUser hook to fetch and cache user data. Updates MessageBoxChat to accept receiverId as a prop and refactors AvatarFrame for improved sizing. Enhances conversations state management with an isInitialized flag.
Introduce full friendship functionality and related improvements: add new API routes for friend requests (request, accept, reject, remove), listing pending requests and friends, plus a users/search endpoint. Add Constants (ONLINE_THRESHOLD, MAX_MESSAGE_LENGTH) and enforce MAX_MESSAGE_LENGTH in messages endpoint. Expand friendshipService with create/isBlocked/isFriend/isFriendRequestPending/getStatus/getPending/getAccepted and accept/reject helpers; include bio in friend payloads. Update user service with searchUsersByNameOrEmail, adjust several methods to return directly (removed async wrappers) and make updateLastSeen non-async. Add small docs/comments to BackendUtils and Utils. Also require authentication in users/[userId] and users/search handlers and fix user mapping.
Introduce friend requests support: add a new useFriendRequests hook to fetch and manage pending friend requests (calls /api/friends/requests, dispatches bulkAddOrUpdateRequests and setUsers, tracks fetch with a ref). Extend FriendRequestsSlice to use a requests map and flags (isLoading, isInitialized) and add reducers: setLoading, markInitialized, bulkAddOrUpdateRequests, addOrUpdateRequest, removeRequest, and FriendRequestDispose. Integrate the slice and hook into MessagesHeader to fetch friend requests on load and clear them on dispose.
Replace the old friendRequests Redux slice with a new friends slice that stores both pending request mappings and a list of friend IDs. Rename useFriendRequests to useFriends and update it to fetch /api/friends and /api/friends/requests, populate users, bulk request cache, and add friend IDs. Update store and components (MessagesHeader) to use the new slice/actions and dispose logic. Minor API and service tweaks: map pending friend responses to requestId, tighten accept/reject status checks, remove returned email fields from friendship service selects, and remove redundant error checks.
Introduce support for sent friend requests across the stack: - API: Add new GET /api/friends/requests/sent route returning the current user's sent pending requests; add JSDoc to existing requests route. - Service: Add FriendshipService.getSentFriendRequests to query pending sent requests including receiver details. - Redux: Add `sent` map to friends slice with initial state, bulkAddOrUpdateSentRequests, addOrUpdateSentRequest and removeSentRequest reducers; ensure FriendsDispose clears sent. - Hook: Update useFriends to fetch /api/friends/requests/sent, populate users from the response, dispatch bulkAddOrUpdateSentRequests, and return `sent` in the hook result. - UI: Update MessageBoxTitle to read sent/request state from Redux, show appropriate status (Request Pending / Respond to Request / Accept/Decline), add mobile toggle with outside-click handling, and implement accept/decline flow that calls API endpoints and updates the store. These changes enable client-side caching and display of outgoing friend requests and wire up accept/reject flows in the conversation header.
Load .env from the server/ directory at startup by importing pathlib.Path and dotenv.load_dotenv and calling load_dotenv(Path(__file__).parent.parent / '.env') so environment vars are available regardless of where uvicorn is launched. Also add clerk_backend_api to server/requirements.txt to include the new backend dependency.
Delete the video-call page component and make several backend/frontend fixes: - API: src/app/api/users/search/route.ts - Add a limit param (capped to 50) and early-return empty queries. - Pass the current user's id and the limit to the search service. - Service: src/services/user.service.ts - Update searchUsersByNameOrEmail signature to accept excludeUserId and apply a NOT filter to exclude the current user from results. - Signing: src/app/signing/route.ts - Read and sync user's unsafeMetadata.bio and publicMetadata.area (typed as UserArea) when syncing user info. - Hook: src/hooks/useVSLLandmarks.ts - Ensure connection status is set to 'idle' on close and call teardown via queueMicrotask to avoid timing/race issues. These changes ensure searches can be limited and exclude the requesting user, preserve additional user metadata during sync, and harden VSL landmark teardown behavior. The large client-side video-call component was removed.
Reorder and gate holistic landmark detection behind VSL readiness. The VSL hook is initialized before the holistic camera hook, and the holistic useHolisticCamera enabled flag now requires vslStatus === 'ready' in addition to existing checks. The runtime detection loop and effect dependencies were updated to include vslStatus, preventing the heavy WASM/model from loading or running until the VSL subsystem is ready. Also adjusted comments and moved blocks for clearer logical ordering.
… into FrontendWithWebsocket
… into FrontendWithWebsocket
… into FrontendWithWebsocket
Add a new backend API helper (getUserPreloadRecognition) and BACKEND_API_URL constant to fetch user enrollment/profile recognition. Update ClerkUserContext to call the API (using useAuth.getToken), store preloadRecognition state, expose isCalibrated/isFineTuned on the app user object, and add a setIsDeaf handler to update user. Also adjust memo/deps and add error handling around the fetch. Minor debug page changes: reduce simulated loading delays and add a "Get current user ID" button with loading state and toast/log output.
Expose isPreloadRecognitionLoading in ClerkUserContext to track the preload recognition fetch state; initialize it true and set to false in the fetch finally block, and pass it through the UserContext provider. Update getUserPreloadRecognition to accept an optional timeout (default 10000ms) and use AbortSignal.timeout to abort the fetch. Also add todo.txt with feature notes and onboarding/modal requirements for preload recognition and enrollment flows.
+ Fix the error from todo (on MessageDevicesContext). + Test the new model holositic camera.
Improve getUserMedia error handling by checking the DOMException name. Treat NotAllowedError and SecurityError as true permission denials (set permissionState='denied'), but treat other errors (e.g. NotReadableError) as device failures where permission was granted. In the latter case, attempt an audio-only getUserMedia to allow enumerateDevices to return labeled devices, stop any obtained tracks, set permissionState='granted', and avoid locking out device selection.
Introduce a multi-step preload recognition flow to onboard deaf users: add PreloadRecognitionModal (orchestrator) plus CalibrationStep and FineTuningStep components that handle camera initialization, WS sessions, frame streaming, progress UI and cancel/confirm flows. Extend ClerkUserContext with isDeaf/isCalibrated/isFineTuned and an isPreloadRecognitionLoading flag; cast the composed user object to a non-nullable type. Wire the modal into the messages layout (layoutWrapper) with auto-open logic after area selection and when preload is required. Update documentation (.github/structures.md) and make a small wording fix in CallingSettingsModal; minor todo updates included.
Add a zIndex prop to ConfirmationModal and forward it to the underlying Modal so callers can override modal stacking order. Update CalibrationStep and FineTuningStep to pass zIndex={70} for their cancel confirmation dialogs. Default behavior remains unchanged when the prop is omitted.
+ Added NoticeModal for handle notice. + Add _CalibrationStep and _FineTuningStep for example from AI + Fix about error connection handler when failed for CalibrationStep. + Small the modal when opening on phone.
… into FrontendWithWebsocket
… into FrontendWithWebsocket
Improve robustness of the calibration step and tweak UI/UX. Add camera picker isDisabled prop and UI tweaks (disabled styles, label max widths). Replace fragile force-close state with notice modal + toast and stable callback refs (onDoneRef, phaseRef) to avoid re-triggering effects. Harden WebSocket lifecycle: track didOpen to surface connection failures, handle server 'error' and 'done' payloads via notice callbacks, and centralize teardown/cleanup. Gate frame sending by phaseRef and WS status, start camera only when WS ready, and adjust button states/copy for a clearer UX.
Introduce a full FineTuningStep component (client) that handles WS-driven fine-tuning flow, camera capture, RAF loop, instruction video playback and UI states. Integrate a Fine Tuning button + modal into debug page and wire up success/cancel to toast handlers. Remove legacy underscored components (_CalibrationStep, _FineTuningStep). Refactor CalibrationStep to use shared videoMediaConfig, improve teardown (stop tracks earlier / centralise teardown), and tweak cancel button text. Increase modal max width to max-w-4xl in affected modals and simplify preload recognition gating in layoutWrapper. Also update FrontendUtils to expose videoMediaConfig used by camera components.
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.
No description provided.