Skip to content

# Integração de Perfis e Correção de Integridade (#49, #55)#66

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

# Integração de Perfis e Correção de Integridade (#49, #55)#66
YnotMax merged 2 commits into
developfrom
tony

Conversation

@YnotMax

@YnotMax YnotMax commented Jun 15, 2026

Copy link
Copy Markdown
Member

Integração de Perfis e Correção de Integridade (#49, #55)

Esta PR corrige a leitura, escrita e integridade dos perfis de usuário do Firestore, unificando o banco sob a coleção definitiva profiles e alinhando-a com a tipagem do domínio.

O que foi resolvido?

  • Coleção Unificada: Ajustado o repositório para ler e salvar na coleção definitiva "profiles" (resolvendo o problema de perfil público não encontrado da [INFRA] Criar script de migração de dados members → profiles #49).
  • Mapeamento de Leitura (Conversão Transparente):
    • Mapeamos userId para uid
    • Mapeamos name para displayName
    • Mapeamos primaryRole para role
    • Mapeamos status to squadStatus
    • Convertemos a estrutura física canvas: { loves, comfort, veto } do Firestore para o array de objetos tags: { name, sentiment }[] esperado pelo schema do Zod (MemberSchema/PublicMemberSchema).
  • Mapeamento de Escrita: Adicionada a tradução de volta ao salvar via updateProfile.
  • Filtro de Busca: Ajustado o filtro de consulta por cargo em listPublicProfiles para buscar por primaryRole no Firestore.

Resolves #49
Resolves #55

@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 9:49pm

@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: 007a34a4-2772-403c-b30d-6010547ebe11

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 9d77ce6 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