feat(chat, profile, ui): implement chat UX improvements, profile side…#23
Merged
DevMuhammed3 merged 3 commits intomainfrom Apr 12, 2026
Merged
feat(chat, profile, ui): implement chat UX improvements, profile side…#23DevMuhammed3 merged 3 commits intomainfrom
DevMuhammed3 merged 3 commits intomainfrom
Conversation
…bar, and reusable components
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Review Summary by QodoChat UX improvements with profile sidebar, message management, and design system standardization
WalkthroughsDescription• **Chat UX Improvements**: Integrated ChatHeader, ChatSidebar, and ProfileModal components for enhanced user profile display and interaction within conversations • **Profile System**: Implemented structured profile sidebar and modal with user data (avatar, name, bio, mutual friends, mutual zones, online status) • **Backend Relationship Data**: Enhanced /users/:username endpoint with friend status detection, mutual friends calculation, and mutual zones computation • **Reusable Components**: Created UserAvatar component with fallback logic and standardized avatar rendering across the app; added EmptyChatState for new conversations • **Message Management**: Added message editing, deletion, and pinning functionality with mutations, queries, and UI controls in channel pages • **Theme Consistency**: Introduced semantic CSS utility classes (.bg-sidebar, .bg-main, .bg-surface) and updated all settings/layout pages to use design tokens instead of hardcoded colors • **Emoji Picker**: Integrated lazy-loaded emoji picker component using @emoji-mart/react library • **Zone Settings**: Created new ZoneSettings component replacing deprecated ZoneDashboardSheet and ZoneSettingsModal with tabbed interface for zone management • **Input Enhancement**: Added useInputWithCursor hook for cursor-aware text insertion • **Validation**: Added file size validation (2MB max) for avatar uploads and zone name length validation (50 chars max) • **Responsive Design**: Improved mobile responsiveness with sheet-based sidebars and responsive layouts • **Component Refactoring**: Replaced custom Avatar implementations with reusable UserAvatar component across friend lists, chat lists, voice participants, and blocked users • **Email Verification**: Added VerifyEmailDialog component for modal-based email verification flow Diagramflowchart LR
A["Backend User Endpoint<br/>Enhanced with Relationships"] -->|"friend status<br/>mutual friends<br/>mutual zones"| B["Frontend Chat Page"]
B -->|"displays"| C["ChatHeader<br/>ChatSidebar<br/>ProfileModal"]
C -->|"uses"| D["UserAvatar<br/>Component"]
B -->|"manages"| E["Messages<br/>Edit/Delete/Pin"]
E -->|"queries/mutations"| F["Message API"]
B -->|"renders"| G["EmojiPicker<br/>GifPicker"]
H["Theme System<br/>CSS Variables"] -->|"applied to"| I["Settings Pages<br/>Layout Pages<br/>Zone Pages"]
J["ZoneSettings<br/>Component"] -->|"replaces"| K["Deprecated<br/>Components"]
File Changes |
Code Review by Qodo
|
| @@ -0,0 +1,169 @@ | |||
| 'use client' | |||
|
|
|||
| import { Button } from 'packages/ui' | |||
There was a problem hiding this comment.
1. Unused button import 🐞 Bug ≡ Correctness
ChatSidebar.tsx imports Button but never uses it. Because the repo enables noUnusedLocals, this will fail TypeScript compilation and break the frontend build.
Agent Prompt
### Issue description
`apps/frontend/src/components/ChatSidebar.tsx` imports `Button` but never uses it. With `noUnusedLocals` enabled, this causes a TypeScript compile error.
### Issue Context
The component uses native `<button>` elements instead of the `Button` component.
### Fix Focus Areas
- apps/frontend/src/components/ChatSidebar.tsx[1-6]
### Suggested fix
Remove `import { Button } from 'packages/ui'` (or replace the native `<button>` elements with `<Button>` if that was the intent).
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
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.
Overview
This branch introduces a major improvement to the chat experience by adding a structured profile system, improving UI consistency, and enhancing overall user interaction within conversations.
Key Changes
Chat Experience
EmptyChatStatefor new conversations with guided interactionProfile System (Sidebar + Modal)
Introduced
ChatSidebarto display real user data:Added
ProfileModal:Reusable Components
AvatarandUserAvatarcomponents with fallback logicChat Header
Implemented
ChatHeaderwith:Friends System UI Improvements
Updated:
Fixed inconsistencies in friend state rendering
UI / UX Improvements
Cleanup & Refactor
Removed deprecated components:
ZoneDashboardSheetZoneSettingsModalRefactored chat-related components for better structure
Backend Integration
Integrated real data from
/users/:usernameAdded support for:
friendStatusmutualFriendsmutualZonesEnsured UI strictly reflects backend data (no fake states)
Notes