mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 06:32:24 +00:00
* Enhance onboarding flow with conditional routing - Introduced OnboardingRoute component to conditionally navigate users based on onboarding status. - Updated AppRoutes to utilize OnboardingRoute, redirecting users to the home page if onboarding is complete. - Removed direct Telegram link from GetStartedStep to streamline onboarding process and improve user experience. This update improves the onboarding experience by ensuring users are only shown the onboarding page when necessary. * Enhance error handling and connection management in Telegram components - Added console error logging in TelegramConnectionModal for better debugging during authentication failures. - Updated connection status check in TelegramProvider to only verify once when connected, improving efficiency. - Simplified socket connection logic in socketService by removing unnecessary checks and reducing timeout for initial connection. This update improves error visibility and optimizes connection handling, enhancing the overall user experience during Telegram interactions. * Implement JWT payload parsing in socketService for user ID retrieval - Enhanced the getSocketUserId function to extract user IDs from JWT tokens, improving user identification in socket connections. - Added error handling for token parsing to ensure robustness against malformed tokens. This update enhances the socket service's ability to manage user-specific connections by accurately retrieving user IDs from authentication tokens.