diff --git a/app/Filament/Exports/ResultExporter.php b/app/Filament/Exports/ResultExporter.php index a7d7f3d7a..ad8e0c54b 100644 --- a/app/Filament/Exports/ResultExporter.php +++ b/app/Filament/Exports/ResultExporter.php @@ -71,39 +71,48 @@ public static function getColumns(): array ExportColumn::make('download_jitter') ->state(function (Result $record): ?string { return $record->download_jitter; - }), + }) + ->enabledByDefault(false), ExportColumn::make('upload_jitter') ->state(function (Result $record): ?string { return $record->upload_jitter; - }), + }) + ->enabledByDefault(false), ExportColumn::make('ping_jitter') ->state(function (Result $record): ?string { return $record->ping_jitter; - }), + }) + ->enabledByDefault(false), ExportColumn::make('upload_latency_high') ->state(function (Result $record): ?string { return $record->upload_latency_high; - }), + }) + ->enabledByDefault(false), ExportColumn::make('upload_latency_low') ->state(function (Result $record): ?string { return $record->upload_latency_low; - }), + }) + ->enabledByDefault(false), ExportColumn::make('upload_latency_avg') ->state(function (Result $record): ?string { return $record->upload_latency_iqm; - }), + }) + ->enabledByDefault(false), ExportColumn::make('download_latency_high') ->state(function (Result $record): ?string { return $record->download_latency_high; - }), + }) + ->enabledByDefault(false), ExportColumn::make('download_latency_low') ->state(function (Result $record): ?string { return $record->download_latency_low; - }), + }) + ->enabledByDefault(false), ExportColumn::make('download_latency_avg') ->state(function (Result $record): ?string { return $record->download_latency_iqm; - }), + }) + ->enabledByDefault(false), ExportColumn::make('result_url') ->state(function (Result $record) { return $record->result_url; @@ -118,6 +127,11 @@ public static function getColumns(): array ->state(function (Result $record): string { return $record->scheduled ? 'Yes' : 'No'; }), + ExportColumn::make('healthy') + ->state(function (Result $record): string { + return $record->healthy ? 'Yes' : 'No'; + }) + ->enabledByDefault(false), ExportColumn::make('created_at'), ExportColumn::make('updated_at') ->enabledByDefault(false), diff --git a/app/Filament/Resources/ResultResource.php b/app/Filament/Resources/ResultResource.php index d8fdc55ef..4ce9a11a9 100644 --- a/app/Filament/Resources/ResultResource.php +++ b/app/Filament/Resources/ResultResource.php @@ -139,8 +139,11 @@ public static function form(Form $form): Form ->content(fn (Result $result): ?string => $result->server_location), Forms\Components\Placeholder::make('server_host') ->content(fn (Result $result): ?string => $result->server_host), + Forms\Components\Placeholder::make('comment') + ->content(fn (Result $result): ?string => $result->comments), Forms\Components\Checkbox::make('scheduled'), Forms\Components\Checkbox::make('healthy'), + ]) ->columns(1) ->columnSpan([