-
Notifications
You must be signed in to change notification settings - Fork 0
Development #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Development #5
Conversation
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
…uting; update avatar dependency
…nd improve responsiveness
…ty, and refactor Chat components
…tructure, and create ChatWindowWrapper for state management
…hatList to manage active chat, and implement getChatById in chatSlice for improved chat loading
…ance avatar handling, and improve message structure; update user fetching in Main component
…ay, and improve name handling in utility function
…g chat by ID, simplify ChatSidebar by removing setChatId prop, enhance ChatWindow to handle message sending, and implement unique array utility for message management
Refactor websocket integration: replace WebsocketProvider with useChatWebsocket and usePostWebsocket hooks, update chatSlice to handle chat room messages, and enhance websocket initialization logic
…and ChatList, introduce ChatRoomWithNotifications type, and implement utility for managing unique messages in chatSlice
…tions, update unread message handling, and add user avatar display in the header component
…notification styling in header.tsx
…es and adjust layout for better visibility
…AllChats in useEffect
…agesForChat and update message handling
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.
This pull request introduces significant changes to the chat and main page functionalities, along with some refactoring and improvements to the UI components. The most important changes include the addition of chat-related components, updates to routing, and enhancements to the header and notification system.
Chat Functionality Enhancements:
ChatSidebar,ChatList,ChatItem, andChatWindowcomponents to manage and display chat functionalities. These components handle the display of chat rooms, messages, and user interactions. [1] [2] [3] [4] [5]Routing and Page Structure:
App.tsxto use wildcard routing for the main component, allowing for nested routes.MainPageandChatsPage) and updating the main routing to include these subpages. [1] [2]UI Components and Styling:
BadgeandPopoverfor improved styling and functionality. These components are used for displaying notifications and other UI elements. [1] [2]Dependency Updates:
@radix-ui/react-avatarto version^1.1.1and added@radix-ui/react-popoverto the dependencies for improved UI components.Code Refactoring:
postlist.tsxandusersPanel.tsx, simplifying the code. [1] [2] [3]chooseTwoCharsFromNameto handle cases where the input name might be empty.These changes collectively enhance the chat functionality, improve the user interface, and streamline the codebase for better maintainability.