<?php

declare(strict_types=1);

use App\Models\Finding;
use App\Support\Filament\FilterOptionCatalog;

it('exposes only canonical finding statuses in the shared filter catalog', function (): void {
    expect(FilterOptionCatalog::findingStatuses())->toBe([
        Finding::STATUS_NEW => 'New',
        Finding::STATUS_TRIAGED => 'Triaged',
        Finding::STATUS_IN_PROGRESS => 'In progress',
        Finding::STATUS_REOPENED => 'Reopened',
        Finding::STATUS_RESOLVED => 'Resolved',
        Finding::STATUS_CLOSED => 'Closed',
        Finding::STATUS_RISK_ACCEPTED => 'Risk accepted',
    ]);
});

it('does not offer acknowledged as a legacy findings filter option', function (): void {
    expect(FilterOptionCatalog::findingStatuses())->not->toHaveKey('acknowledged');
});