Adopt the shared Ladill signed-out page for Woo Manager.
Deploy Ladill Woo Manager / deploy (push) Successful in 34s

Logout now lands on the branded sign-out screen with Woo-specific copy instead of the minimal placeholder card.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-07 02:52:02 +00:00
co-authored by Cursor
parent 93bfc3e2d2
commit 1edf5aad43
5 changed files with 45 additions and 20 deletions
@@ -150,7 +150,7 @@ class SsoLoginController extends Controller
// Per-app sign-out: end only this app's session and keep the platform
// (auth.ladill.com) SSO session alive so "Sign in again" re-auths silently
// without a password. Full "sign out of all Ladill apps" lives on account.
return redirect()->away($this->defaultSignedOutUrl());
return redirect()->route('woo.signed-out');
}
/** Platform session ended — clear this app and offer silent sign-in again. */
+1 -1
View File
@@ -3,5 +3,5 @@
return [
'title' => 'Ladill Woo Manager',
'logo' => 'images/logo/ladillwoomanager-logo.svg',
'description' => 'Your Ladill Woo Manager session has ended. Sign in again to manage invoices.',
'description' => 'Your Ladill Woo Manager session has ended. Sign in again to manage orders, products, and stores.',
];
+1 -1
View File
@@ -1,6 +1,6 @@
@php
$signedOut = (array) config('signed_out');
$logo = (string) ($signedOut['logo'] ?? 'images/logo/ladillgive-logo.svg');
$logo = (string) ($signedOut['logo'] ?? 'images/logo/ladillwoomanager-logo.svg');
$logoPath = public_path($logo);
@endphp
<!DOCTYPE html>
+1 -17
View File
@@ -1,17 +1 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Signed out Ladill Woo Manager</title>
@include('partials.favicon')
@vite(['resources/css/app.css'])
</head>
<body class="flex min-h-screen items-center justify-center bg-slate-100 p-6 font-sans antialiased">
<div class="max-w-md rounded-2xl border border-slate-200 bg-white p-8 text-center shadow-sm">
<h1 class="text-lg font-semibold text-slate-900">Signed out</h1>
<p class="mt-2 text-sm text-slate-600">You have been signed out of Ladill Woo Manager.</p>
<a href="{{ route('sso.connect') }}" class="mt-6 inline-flex rounded-xl bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-700">Sign in again</a>
</div>
</body>
</html>
@include('auth.signed-out')
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class WooSignedOutTest extends TestCase
{
use RefreshDatabase;
public function test_guest_sees_standard_signed_out_page(): void
{
$this->get(route('woo.signed-out'))
->assertOk()
->assertSee('Youre signed out', false)
->assertSee('Ladill Woo Manager', false)
->assertSee('manage orders, products, and stores', false)
->assertSee(route('sso.connect'), false)
->assertSee('Go to ladill.com', false);
}
public function test_authenticated_user_is_redirected_from_signed_out_page(): void
{
$this->actingAs(User::factory()->create())
->get(route('woo.signed-out'))
->assertRedirect(route('woo.dashboard'));
}
public function test_logout_redirects_to_signed_out_page(): void
{
$user = User::factory()->create();
$this->actingAs($user)
->post(route('logout'))
->assertRedirect(route('woo.signed-out'));
$this->assertGuest();
}
}