## Summary - rebuild the public Tenantial homepage around an evidence-first Microsoft tenant governance narrative - replace the old hero visual with a new static dashboard preview and add dedicated Trust Bar and Feature Pillars sections - update the shared public shell, navigation, footer, dark design tokens, assets, and homepage content to match the new brand direction - align website smoke coverage and Spec 400 artifacts with the rebuilt homepage ## Testing - not run in this pass - updated website smoke specs under apps/website/tests/smoke ## Note - `website-dev` was pushed to `origin` so the requested PR base exists remotely - the remote `website-dev` branch is an ancestor of `origin/dev`, so this PR may also show upstream `dev` history relative to that base Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #387
62 lines
2.4 KiB
PHP
62 lines
2.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Support\Badges\BadgeCatalog;
|
|
use App\Support\Badges\BadgeDomain;
|
|
use App\Support\Badges\BadgeSpec;
|
|
use App\Support\Badges\OperatorSemanticAxis;
|
|
use App\Support\Badges\OperatorStateClassification;
|
|
|
|
it('returns a safe unknown badge spec for unknown values', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::OperationRunStatus, 'not-a-real-status');
|
|
|
|
expect($spec)->toBeInstanceOf(BadgeSpec::class);
|
|
expect($spec->label)->toBe('Unknown');
|
|
expect($spec->color)->toBe('gray');
|
|
});
|
|
|
|
it('defines the allowed Filament badge colors', function (): void {
|
|
expect(BadgeSpec::allowedColors())->toBe([
|
|
'gray',
|
|
'info',
|
|
'success',
|
|
'warning',
|
|
'danger',
|
|
'primary',
|
|
]);
|
|
});
|
|
|
|
it('carries taxonomy metadata on first-slice badge specs', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::BaselineSnapshotFidelity, 'unsupported');
|
|
|
|
expect($spec->semanticAxis)->toBe(OperatorSemanticAxis::ProductSupportMaturity)
|
|
->and($spec->classification)->toBe(OperatorStateClassification::Diagnostic)
|
|
->and($spec->diagnosticLabel)->toBe('Fallback renderer');
|
|
});
|
|
|
|
it('registers inventory coverage state badge mappings centrally', function (): void {
|
|
expect(BadgeCatalog::mapper(BadgeDomain::InventoryCoverageState))->not->toBeNull()
|
|
->and(BadgeCatalog::spec(BadgeDomain::InventoryCoverageState, 'failed')->label)->toBe('Failed');
|
|
});
|
|
|
|
it('keeps lifecycle badges on the shared boolean-enabled domain instead of legacy provider domains', function (): void {
|
|
$domainValues = collect(BadgeDomain::cases())
|
|
->map(fn (BadgeDomain $domain): string => $domain->value)
|
|
->all();
|
|
|
|
expect(BadgeCatalog::mapper(BadgeDomain::BooleanEnabled))->not->toBeNull()
|
|
->and($domainValues)->not->toContain('provider_connection.status', 'provider_connection.health');
|
|
});
|
|
|
|
it('keeps retired tenant app-status out of the central catalog while active tenant domains remain registered', function (): void {
|
|
$domainValues = collect(BadgeDomain::cases())
|
|
->map(fn (BadgeDomain $domain): string => $domain->value)
|
|
->all();
|
|
|
|
expect($domainValues)->not->toContain('tenant_app_status')
|
|
->and(BadgeCatalog::mapper(BadgeDomain::TenantStatus))->not->toBeNull()
|
|
->and(BadgeCatalog::mapper(BadgeDomain::TenantRbacStatus))->not->toBeNull()
|
|
->and(BadgeCatalog::mapper(BadgeDomain::TenantPermissionStatus))->not->toBeNull();
|
|
});
|