completed the frontend dashboard component and bound it to the tenant admin pwa for the optimal onboarding experience.. Added a profile page.

This commit is contained in:
Codex Agent
2025-11-04 22:28:37 +01:00
parent fe380689fb
commit b32413b108
29 changed files with 1416 additions and 425 deletions

View File

@@ -90,11 +90,15 @@ class DashboardPageTest extends TestCase
->where('task_progress', 100)
->where('upcoming_events', 1)
->where('new_photos', 1)
->where('credit_balance', 4)
->etc()
)
->where('tenant.activePackage.name', 'Premium Paket')
->where('tenant.activePackage.remainingEvents', 9)
->has('onboarding', fn (AssertableInertia $steps) => $steps
->where('0.key', 'admin_app')
->where('1.done', true)
->etc()
)
->has('upcomingEvents', 1)
->has('recentPurchases', 1)
->where('emailVerification.mustVerify', true)

View File

@@ -73,4 +73,18 @@ class ProfilePageTest extends TestCase
)
);
}
public function test_localized_profile_route_resolves_to_profile_page(): void
{
$user = User::factory()->create([
'preferred_locale' => 'de',
]);
$this->actingAs($user);
$response = $this->get(route('marketing.profile.index', ['locale' => 'de']));
$response->assertStatus(200)
->assertInertia(fn (AssertableInertia $page) => $page->component('Profile/Index'));
}
}