## 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
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Models\OperationRun;
|
|
use App\Support\OpsUx\OperationUxPresenter;
|
|
use App\Support\ReasonTranslation\ReasonPresenter;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class OperationRunCompleted extends Notification
|
|
{
|
|
use Queueable;
|
|
|
|
public function __construct(
|
|
public OperationRun $run
|
|
) {}
|
|
|
|
public function via(object $notifiable): array
|
|
{
|
|
return ['database'];
|
|
}
|
|
|
|
public function toDatabase(object $notifiable): array
|
|
{
|
|
$message = OperationUxPresenter::terminalDatabaseNotificationMessage($this->run, $notifiable);
|
|
$reasonEnvelope = app(ReasonPresenter::class)->forOperationRun($this->run, 'notification');
|
|
$baselineTruthChanged = data_get($this->run->context, 'baseline_capture.current_baseline_changed');
|
|
|
|
if ($reasonEnvelope !== null) {
|
|
$message['reason_translation'] = $reasonEnvelope->toArray();
|
|
$message['diagnostic_reason_code'] = $reasonEnvelope->diagnosticCode();
|
|
}
|
|
|
|
if (is_bool($baselineTruthChanged)) {
|
|
$message['baseline_truth_changed'] = $baselineTruthChanged;
|
|
}
|
|
|
|
return $message;
|
|
}
|
|
}
|