Skip to content

fix(panel-app): corrige camada do modal de unificação#442

Open
henrique-leme wants to merge 3 commits into
he4rt:4.xfrom
henrique-leme:fix/441-profile-modal-layering
Open

fix(panel-app): corrige camada do modal de unificação#442
henrique-leme wants to merge 3 commits into
he4rt:4.xfrom
henrique-leme:fix/441-profile-modal-layering

Conversation

@henrique-leme

Copy link
Copy Markdown

Closes #441

Contexto

O modal de confirmação de unificação era renderizado dentro da coluna lateral sticky. Isso criava um contexto de empilhamento próprio e fazia os campos Apelido e Data de Nascimento aparecerem por cima do modal quando o topo do perfil estava visível.

O que mudou

O modal agora usa o teleport do Livewire para ser renderizado diretamente no body. A lógica de confirmação e cancelamento continua no mesmo componente, mas o modal deixa de ficar preso ao contexto de camadas da coluna lateral.

Testes

  1. php artisan view:cache
  2. vendor/bin/pest app-modules/panel-app/tests/Feature/ProfilePageTest.php --compact com 16 testes e 92 assertions
  3. vendor/bin/pint --test --parallel
  4. npm run build

Validação manual

Testei o modal no topo da página e depois de rolar 700 pixels. A camada escura ficou acima de todo o perfil nos dois casos. O botão Cancelar fechou o modal normalmente e o botão Unificar manteve o binding com confirmMerge.

@henrique-leme
henrique-leme requested a review from a team July 21, 2026 15:32
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: f6e101bc-c0fa-40dc-b681-e4ef7daa1180

📥 Commits

Reviewing files that changed from the base of the PR and between 0a8f6c4 and 2158fe4.

📒 Files selected for processing (2)
  • app-modules/panel-app/tests/Feature/ConnectionHubTest.php
  • resources/views/livewire/connection-hub.blade.php
🚧 Files skipped from review as they are similar to previous changes (1)
  • resources/views/livewire/connection-hub.blade.php

📝 Walkthrough

Walkthrough

The merge confirmation modal is teleported to the document body and now handles the window-level Escape key through cancelMerge. A feature test verifies the modal state, dialog accessibility attributes, and Escape handler.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed Title matches the main change: fixing the unification modal layering in panel-app.
Description check ✅ Passed Description is directly related to the modal teleport and accessibility changes.
Linked Issues check ✅ Passed #441 is satisfied: the modal is moved to body, confirm/cancel stay intact, and Escape/dialog semantics were added.
Out of Scope Changes check ✅ Passed Changes stay focused on the modal layering fix and accessibility test coverage; no unrelated scope is evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@resources/views/livewire/connection-hub.blade.php`:
- Around line 149-154: Update the modal container identified by x-data="{ open:
true }" to include role="dialog" and aria-modal="true", and add Alpine.js
Escape-key handling that closes the modal by setting open to false. Preserve the
existing visibility and transition behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 13519f41-fe2f-4fa8-b613-9b01aca11bda

📥 Commits

Reviewing files that changed from the base of the PR and between 71a6ab1 and 0a8f6c4.

📒 Files selected for processing (1)
  • resources/views/livewire/connection-hub.blade.php

Comment thread resources/views/livewire/connection-hub.blade.php
BrunaDomingues
BrunaDomingues previously approved these changes Jul 21, 2026

@BrunaDomingues BrunaDomingues left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@danielmendss danielmendss left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@fernanduandrade fernanduandrade left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legit!

@fernanduandrade fernanduandrade added bug Something isn't working difficulty:easy 1-2 days labels Jul 21, 2026
@YuriSouzaDev

Copy link
Copy Markdown
Contributor

Olá, vi um apontamento do coderabbit sobre acessibilidade, seria ideal adicionar isto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working difficulty:easy 1-2 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(panel-app): modal de unificação aparece atrás dos campos do perfil

6 participants