feat(discover): controle de acesso ao Roast de IA, correção de oscilações no Radar e integridade do Firestore#68
Merged
Conversation
added 7 commits
June 14, 2026 21:55
…a mapping for Firestore operations
…out, avatar, radar chart e grid 3 colunas
…ile grid, and radar chart
|
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.
🔍 O que esta PR faz?
Esta Pull Request traz correções críticas para a integridade de dados de perfis no Firestore, refinamentos importantes no comportamento e interações de cards no painel de descoberta (Discover) e resolve um problema persistente de oscilação visual (flicker/piscadas) nos nomes dos eixos do gráfico de radar hexagonal.
🛠️ Alterações Detalhadas
Controle de Acesso ao Roast de IA (Discover):
Restrição de Acesso: O Roast de IA foi limitado para que o usuário autenticado possa visualizar e acionar somente o seu próprio perfil.
Ajustes na Grid de Descoberta: No
ProfilesGrid.tsx
, a ação de clique (onClick) só é injetada nos cards se o ID do perfil corresponder ao do usuário atual logado.
Remoção de Elementos de Interação de Outros Perfis: No
ProfileCard.tsx
, removemos totalmente o cursor de ponteiro (cursor-pointer), o efeito de elevação no hover (neo-shadow-hover), o botão VER SINA → e a animação de clique quando o card pertencer a outro usuário.
Fim do Flickering no Gráfico Hexagonal (SkillRadar):
Memoização Estável de Ticks: Em
SkillRadar.tsx
, os rótulos de texto SVG (CustomTick) foram encapsulados em um componente memoizado e injetados de maneira referencialmente estável. Isso impede que o Recharts remonte as tags SVG de texto a cada ciclo de render.
Prevenção de Renderizações Redundantes: Implementamos um comparador customizado de propriedades (propsAreEqual) no wrapper React.memo do SkillRadar. Agora, o gráfico de habilidades só re-renderiza se os valores numéricos das notas mudarem de fato, eliminando por completo o efeito visual de piscada ao navegar, filtrar ou sofrer atualizações assíncronas do Firebase.
Desativação de Animações Internas: O Radar interno foi definido com isAnimationActive={false}.
Integridade de Dados e Persistência (Firestore):
Migração de Coleção: Corrigimos a coleção padrão no profileRepository.ts de "members" para "profiles" para alinhar com o banco de dados oficial.
Mapeamento de Domínio: Traduzimos os dados do Firestore (incluindo o formato canvas com loves/veto) para o modelo de domínio do frontend (tags estruturadas).