## 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
58 lines
1.5 KiB
PHP
58 lines
1.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Notifications\Findings;
|
|
|
|
use App\Models\Finding;
|
|
use App\Models\Tenant;
|
|
use App\Support\OpsUx\OperationUxPresenter;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
final class FindingEventNotification extends Notification
|
|
{
|
|
use Queueable;
|
|
|
|
/**
|
|
* @param array<string, mixed> $event
|
|
*/
|
|
public function __construct(
|
|
private readonly Finding $finding,
|
|
private readonly Tenant $tenant,
|
|
private readonly array $event,
|
|
) {}
|
|
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public function via(object $notifiable): array
|
|
{
|
|
return ['database'];
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toDatabase(object $notifiable): array
|
|
{
|
|
$message = OperationUxPresenter::findingDatabaseNotificationMessage(
|
|
$this->finding,
|
|
$this->tenant,
|
|
$this->event,
|
|
);
|
|
|
|
$message['finding_event'] = [
|
|
'event_type' => (string) ($this->event['event_type'] ?? ''),
|
|
'finding_id' => (int) $this->finding->getKey(),
|
|
'recipient_reason' => data_get($this->event, 'metadata.recipient_reason'),
|
|
'fingerprint_key' => (string) ($this->event['fingerprint_key'] ?? ''),
|
|
'due_cycle_key' => $this->event['due_cycle_key'] ?? null,
|
|
'tenant_name' => $this->tenant->getFilamentName(),
|
|
'severity' => (string) ($this->event['severity'] ?? ''),
|
|
];
|
|
|
|
return $message;
|
|
}
|
|
}
|