Skip to content

Transição para Match Tech, Mensagens In-App (LGPD) e Correções no Firestore#71

Merged
YnotMax merged 11 commits into
developfrom
tony
Jun 16, 2026
Merged

Transição para Match Tech, Mensagens In-App (LGPD) e Correções no Firestore#71
YnotMax merged 11 commits into
developfrom
tony

Conversation

@YnotMax

@YnotMax YnotMax commented Jun 16, 2026

Copy link
Copy Markdown
Member

🎯 Objetivo
Esta PR consolida a evolução da plataforma Match Tech de um modelo estrito de guilda para um sistema aberto de matchmaking e descoberta de participantes para hackathons, garantindo conformidade com a LGPD e corrigindo problemas críticos de regras de segurança do Firestore no ambiente de desenvolvimento.

🛠️ O que mudou?

  1. 🔍 Descobrir em vez de "A Guilda"
    Exclusão completa de "A Guilda": Removemos toda a funcionalidade e referências da página obsoleta GuildaPage (sob src/features/guilda/), incluindo seus componentes e serviços.
    Nova Página de Descoberta: Implementamos a página de descoberta centralizada em /discover (DiscoverPage.tsx e ProfilesGrid.tsx), alimentada pelo hook em tempo real useProfilesRealtime.ts escutando a coleção profiles.
    Fluxo de Acesso: Atualizamos a Landing.tsx, o HeroSection.tsx, o RootLayout.tsx e a tabela de rotas (routes.tsx) para tornar a página de descoberta o centro das atenções, acessível apenas a usuários logados.
  2. 📇 Melhorias no ProfileCard
    Seção de Confortos ("OPERO BEM"): Adicionamos a exibição das tags de conforto nos cards de perfil públicos na aba de descoberta. Segue o mesmo padrão visual de Paixões e Vetos (limite de 3 tags com tooltip dinâmico de +X para excedentes).
  3. 📬 Mensagens em Tempo Real (Conformidade LGPD)
    Para evitar a exposição direta de dados pessoais sensíveis (como e-mail e telefone) nos cards públicos:

Mensagens Privadas: Criamos um modal de mensagens SendMessageModal.tsx integrado diretamente na lista de descoberta.
Chat Interno: Implementamos a página de mensagens /messages (MessagesPage.tsx) com interface em tempo real usando a coleção messages do Firestore.
Message Repository: Adicionamos o messageRepository.ts na camada de infraestrutura seguindo a arquitetura limpa (Clean Architecture) da aplicação.
4. 🔒 Segurança & Correção de Regras do Firestore
Permissão de Visibilidade: Ajustamos o arquivo firestore.rules para permitir que o cliente envie o campo visibility nas operações de criação e atualização da coleção profiles.
Regras de Mensagens: Adicionamos validações rigorosas em firestore.rules sob match /messages/{messageId} garantindo que apenas usuários autenticados e envolvidos na conversa (remetente ou destinatário) possam interagir com as mensagens.
Padrão Onboarding: Modificamos o hook de onboarding useOnboardingForm.ts para salvar novos perfis com visibility: "public" por padrão, assegurando que apareçam para os outros operadores na descoberta.
📂 Arquivos Modificados
Regras de Segurança: firestore.rules
Onboarding & Descoberta: src/features/onboarding/hooks/useOnboardingForm.ts, src/features/discover/ (nova estrutura), src/shared/components/ui/ProfileCard.tsx
Mensagens: src/features/messages/, src/infrastructure/firebase/messageRepository.ts
Navegação & Rotas: src/routes/routes.tsx, src/layouts/RootLayout.tsx, src/features/landing/
Limpeza: Remoção completa da pasta src/features/guilda/

@coderabbitai

coderabbitai Bot commented Jun 16, 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: 6891dad7-99b2-405f-8caf-e538dbe95459

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.

@vercel

vercel Bot commented Jun 16, 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 16, 2026 6:05am

@YnotMax YnotMax merged commit 5fa654f into develop Jun 16, 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