Skip to content

feat(discover): controle de acesso ao Roast de IA, correção de oscilações no Radar e integridade do Firestore#68

Merged
YnotMax merged 7 commits into
developfrom
tony
Jun 15, 2026
Merged

feat(discover): controle de acesso ao Roast de IA, correção de oscilações no Radar e integridade do Firestore#68
YnotMax merged 7 commits into
developfrom
tony

Conversation

@YnotMax

@YnotMax YnotMax commented Jun 15, 2026

Copy link
Copy Markdown
Member

🔍 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).

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
match-tech Ready Ready Preview, Comment Jun 15, 2026 11:33pm

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 098b3f25-0321-4082-9cd2-aa2a7e281b9e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tony

Comment @coderabbitai help to get the list of available commands and usage tips.

@YnotMax YnotMax merged commit e1ba69d into develop Jun 15, 2026
4 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant