feat(113): Platform Ops Runbooks — UX Polish (Filament-native, system theme, live scope) #137

Merged
ahmido merged 11 commits from 113-platform-ops-runbooks into dev 2026-02-27 01:11:26 +00:00
2 changed files with 14 additions and 1 deletions
Showing only changes of commit 4f1568b759 - Show all commits

View File

@ -14,6 +14,14 @@
class Login extends BaseLogin
{
/**
* Filament's base login page uses Livewire-level rate limiting. We override it
* to enforce the System panel policy via Laravel's RateLimiter (SR-003).
*/
protected function rateLimit($maxAttempts, $decaySeconds = 60, $method = null, $component = null): void
{
}
public function authenticate(): ?LoginResponse
{
$data = $this->form->getState();

View File

@ -30,6 +30,9 @@
]);
for ($i = 0; $i < 10; $i++) {
Filament::setCurrentPanel('system');
Filament::bootCurrentPanel();
Livewire::test(Login::class)
->set('data.email', $user->email)
->set('data.password', 'wrong-password')
@ -37,6 +40,9 @@
->assertHasErrors(['data.email']);
}
Filament::setCurrentPanel('system');
Filament::bootCurrentPanel();
Livewire::test(Login::class)
->set('data.email', $user->email)
->set('data.password', 'wrong-password')
@ -59,4 +65,3 @@
expect($latestAudit)->not->toBeNull();
expect($latestAudit->metadata['reason'] ?? null)->toBe('throttled');
});