From 0a8f6c4a2ff657a32344676c796d6f354773c72a Mon Sep 17 00:00:00 2001 From: Henrique Leme de Brito Date: Tue, 21 Jul 2026 12:16:07 -0300 Subject: [PATCH 1/2] =?UTF-8?q?fix(panel-app):=20corrige=20camada=20do=20m?= =?UTF-8?q?odal=20de=20unifica=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/livewire/connection-hub.blade.php | 70 ++++++++++--------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/resources/views/livewire/connection-hub.blade.php b/resources/views/livewire/connection-hub.blade.php index a419c0789..56bebc561 100644 --- a/resources/views/livewire/connection-hub.blade.php +++ b/resources/views/livewire/connection-hub.blade.php @@ -145,49 +145,51 @@ class="rounded bg-gray-100 px-1 py-0.5 font-mono text-[9px] text-gray-500 ring-1 {{-- Merge Confirmation Modal --}} @if ($showMergeModal && $mergeTarget) -
+ @teleport('body')
-
- -

Conta existente encontrada

-
- -

Já existe uma conta vinculada a esse provedor:

-
-
- @ {{ $mergeTarget['username'] }} - {{ $mergeTarget['created_at'] }} +
+ +

Conta existente encontrada

- @if ($mergeTarget['messages_count'] > 0) -
- {{ number_format($mergeTarget['messages_count']) }} mensagens + +

Já existe uma conta vinculada a esse provedor:

+ +
+
+ @ {{ $mergeTarget['username'] }} + {{ $mergeTarget['created_at'] }}
- @endif -
+ @if ($mergeTarget['messages_count'] > 0) +
+ {{ number_format($mergeTarget['messages_count']) }} mensagens +
+ @endif +
-

Ao unificar, sua conta atual será absorvida por essa conta e você será relogado automaticamente.

+

Ao unificar, sua conta atual será absorvida por essa conta e você será relogado automaticamente.

-
- - Unificar - - - Cancelar - +
+ + Unificar + + + Cancelar + +
-
+ @endteleport @endif
From 2158fe44867d64bbc0222681196237bb4187a689 Mon Sep 17 00:00:00 2001 From: Henrique Leme de Brito Date: Thu, 23 Jul 2026 11:54:33 -0300 Subject: [PATCH 2/2] =?UTF-8?q?fix(panel-app):=20melhora=20acessibilidade?= =?UTF-8?q?=20do=20modal=20de=20unifica=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/Feature/ConnectionHubTest.php | 25 +++++++++++++++++++ .../views/livewire/connection-hub.blade.php | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 app-modules/panel-app/tests/Feature/ConnectionHubTest.php diff --git a/app-modules/panel-app/tests/Feature/ConnectionHubTest.php b/app-modules/panel-app/tests/Feature/ConnectionHubTest.php new file mode 100644 index 000000000..a8dc49331 --- /dev/null +++ b/app-modules/panel-app/tests/Feature/ConnectionHubTest.php @@ -0,0 +1,25 @@ +create(); + $mergeTarget = User::factory()->create(); + + $this->actingAs($currentUser); + + session()->put('oauth_merge_pending', [ + 'conflicting_user_id' => $mergeTarget->id, + ]); + + livewire(ConnectionHub::class) + ->assertSet('showMergeModal', value: true) + ->assertSeeHtml('role="dialog"') + ->assertSeeHtml('aria-modal="true"') + ->assertSeeHtml('@keydown.escape.window="$wire.cancelMerge()"'); +}); diff --git a/resources/views/livewire/connection-hub.blade.php b/resources/views/livewire/connection-hub.blade.php index 56bebc561..2ad5b99aa 100644 --- a/resources/views/livewire/connection-hub.blade.php +++ b/resources/views/livewire/connection-hub.blade.php @@ -150,6 +150,9 @@ class="rounded bg-gray-100 px-1 py-0.5 font-mono text-[9px] text-gray-500 ring-1 x-data="{ open: true }" x-show="open" x-transition + @keydown.escape.window="$wire.cancelMerge()" + role="dialog" + aria-modal="true" class="fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4" >