Conversation
added 14 commits
June 14, 2026 21:55
…a mapping for Firestore operations
…out, avatar, radar chart e grid 3 colunas
…ile grid, and radar chart
…pact mode support
…with visibility support
…fileCard components
…n and conversation management
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
YnotMax
added a commit
that referenced
this pull request
Jun 16, 2026
* # Integração de Perfis e Correção de Integridade (#49, #55) (#66) * docs: reestruturar documentacao principal e integrar guia de revisao de prs * feat: implement FirebaseProfileRepository with Zod validation and data mapping for Firestore operations --------- Co-authored-by: tony max <tonymaxonline@gmail.com> * feat(discover): controle de acesso ao Roast de IA, correção de oscilações no Radar e integridade do Firestore (#68) * docs: reestruturar documentacao principal e integrar guia de revisao de prs * feat: implement FirebaseProfileRepository with Zod validation and data mapping for Firestore operations * feat(onboarding): adjust onboarding language to matchmaker identity (Issue #43, #44) * Revert "feat(onboarding): adjust onboarding language to matchmaker identity (Issue #43, #44)" This reverts commit 2cbe6ad. * fix(discover): restaurar design original do ProfileCard com bento layout, avatar, radar chart e grid 3 colunas * feat: add profile discovery UI components including roast modal, profile grid, and radar chart * fix(discover): resolve user ID mismatch in own profile check --------- Co-authored-by: tony max <tonymaxonline@gmail.com> * Transição para Match Tech, Mensagens In-App (LGPD) e Correções no Firestore (#71) * docs: reestruturar documentacao principal e integrar guia de revisao de prs * feat: implement FirebaseProfileRepository with Zod validation and data mapping for Firestore operations * feat(onboarding): adjust onboarding language to matchmaker identity (Issue #43, #44) * Revert "feat(onboarding): adjust onboarding language to matchmaker identity (Issue #43, #44)" This reverts commit 2cbe6ad. * fix(discover): restaurar design original do ProfileCard com bento layout, avatar, radar chart e grid 3 colunas * feat: add profile discovery UI components including roast modal, profile grid, and radar chart * fix(discover): resolve user ID mismatch in own profile check * feat: create ProfileCard component with neo-brutalist styling and compact mode support * feat: implement real-time messaging system and expand profile schema with visibility support * style: rename 'sinal' to 'mensagem' to improve clarity --------- Co-authored-by: tony max <tonymaxonline@gmail.com> * 💬 Sistema de Mensagens — Histórico de Conversas e UI de Chat (#72) * docs: reestruturar documentacao principal e integrar guia de revisao de prs * feat: implement FirebaseProfileRepository with Zod validation and data mapping for Firestore operations * feat(onboarding): adjust onboarding language to matchmaker identity (Issue #43, #44) * Revert "feat(onboarding): adjust onboarding language to matchmaker identity (Issue #43, #44)" This reverts commit 2cbe6ad. * fix(discover): restaurar design original do ProfileCard com bento layout, avatar, radar chart e grid 3 colunas * feat: add profile discovery UI components including roast modal, profile grid, and radar chart * fix(discover): resolve user ID mismatch in own profile check * feat: create ProfileCard component with neo-brutalist styling and compact mode support * feat: implement real-time messaging system and expand profile schema with visibility support * style: rename 'sinal' to 'mensagem' to improve clarity * feat(messages): redesign inbox into threaded conversation UI with real-time history * fix(firestore): allow conversationId field and list permission for message threads * feat: implement messages page with real-time Firestore synchronization and conversation management --------- Co-authored-by: tony max <tonymaxonline@gmail.com> * chore: address CodeRabbit feedback on profile visibility, batch updates, and ChatThread rendering safety --------- Co-authored-by: tony max <tonymaxonline@gmail.com>
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.
💬 Sistema de Mensagens — Histórico de Conversas e UI de Chat
Resumo
Transforma a caixa de entrada linear em uma interface de chat moderna com histórico por conversa, no padrão universal de apps de mensagens (WhatsApp, Messenger, Slack), mantendo a identidade visual neo-brutalista do Match Tech.
Motivação
O sistema anterior mostrava apenas as mensagens recebidas, sem histórico de conversa com o remetente. O usuário ao responder não conseguia ver o contexto da mensagem original, tornando a comunicação difícil de acompanhar. A terminologia "Sinal" também era subjetiva e pouco clara para novos usuários.
O que mudou
🏗️ Arquitetura — Camada de Dados
messageRepository.ts— refatorado com novos métodos:makeConversationId(uidA, uidB)— gera um ID determinístico[uid1, uid2].sort().join('_'), garantindo que ambos os usuários compartilhem a mesma thread, independente de quem iniciou.subscribeToConversations(userId)— substituisubscribeToInbox. Executa duas queries Firestore paralelas em tempo real (mensagens enviadas + recebidas), mescla e agrupa localmente por conversa.subscribeToThread(conversationId)— escuta em tempo real todas as mensagens de uma conversa específica, ordenadas cronologicamente.markConversationAsRead(conversationId, userId)— marca em batch todas as mensagens não lidas de uma conversa como lidas.subscribeToInboxesubscribeToUnreadCountmantidos para retrocompatibilidade com o badge da navbar.messages.types.ts— novo tipoConversation:🎨 UI — Novos Componentes
ConversationList.tsx(novo)ChatThread.tsx(novo)Enterpara enviar eShift+Enterpara quebra de linhaEmptyChat.tsx(novo)/discover📄 Páginas Modificadas
MessagesPage.tsx— reescrita completa:?with=userId— abre diretamente a conversa com aquele usuário (usado pelo fluxo de Descoberta)SendMessageModal.tsx— atualizado:/messages?with={receiverId}para o usuário ver a thread iniciada✏️ Copy / UX
MANDAR SINAL 💬→MANDAR MENSAGEM 💬Mandar Sinal_→Enviar Mensagem_ENVIAR SINAL ⚡→ENVIAR MENSAGEM ⚡Sinal enviado com sucesso!→Mensagem enviada com sucesso!um sinal direto para cá→uma mensagem direta para cáFluxo completo após as mudanças
Arquivos alterados
src/features/messages/components/ChatThread.tsxsrc/features/messages/components/ConversationList.tsxsrc/features/messages/components/EmptyChat.tsxsrc/features/messages/model/messages.types.tssrc/infrastructure/firebase/messageRepository.tssrc/features/messages/pages/MessagesPage.tsxsrc/features/messages/components/SendMessageModal.tsxsrc/features/discover/pages/DiscoverPage.tsxsrc/features/discover/components/ProfilesGrid.tsxsrc/shared/components/ui/ProfileCard.tsxChecklist
tsc --noEmit) passando sem errosvitest run) — 22/22 passandoIssues relacionadas
/discover)