Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint fixes
  • Loading branch information
alexjustesen committed Nov 25, 2025
commit 85f126f229d10685a4256fbdf62bd8bbda5d2abd
78 changes: 39 additions & 39 deletions app/Filament/Pages/Settings/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,46 +214,46 @@ public function form(Schema $schema): Schema
Grid::make([
'default' => 1,
])
->hidden(fn (Get $get) => $get('pushover_enabled') !== true)
->schema([
Fieldset::make('Triggers')
->schema([
Toggle::make('pushover_on_speedtest_run')
->label('Notify on every speedtest run')
->columnSpanFull(),
Toggle::make('pushover_on_threshold_failure')
->label('Notify on threshold failures')
->columnSpanFull(),
]),
Repeater::make('pushover_webhooks')
->label('Pushover Webhooks')
->schema([
TextInput::make('url')
->label('URL')
->placeholder('http://api.pushover.net/1/messages.json')
->maxLength(2000)
->required()
->url(),
TextInput::make('user_key')
->label('User Key')
->placeholder('Your Pushover User Key')
->maxLength(200)
->required(),
TextInput::make('api_token')
->label('API Token')
->placeholder('Your Pushover API Token')
->maxLength(200)
->required(),
])
->columnSpanFull(),
Actions::make([
Action::make('test pushover')
->label('Test Pushover webhook')
->action(fn (Get $get) => SendPushoverTestNotification::run(
webhooks: $get('pushover_webhooks')
))
->hidden(fn (Get $get) => ! count($get('pushover_webhooks'))),
->hidden(fn (Get $get) => $get('pushover_enabled') !== true)
->schema([
Fieldset::make('Triggers')
->schema([
Toggle::make('pushover_on_speedtest_run')
->label('Notify on every speedtest run')
->columnSpanFull(),
Toggle::make('pushover_on_threshold_failure')
->label('Notify on threshold failures')
->columnSpanFull(),
]),
Repeater::make('pushover_webhooks')
->label('Pushover Webhooks')
->schema([
TextInput::make('url')
->label('URL')
->placeholder('http://api.pushover.net/1/messages.json')
->maxLength(2000)
->required()
->url(),
TextInput::make('user_key')
->label('User Key')
->placeholder('Your Pushover User Key')
->maxLength(200)
->required(),
TextInput::make('api_token')
->label('API Token')
->placeholder('Your Pushover API Token')
->maxLength(200)
->required(),
])
->columnSpanFull(),
Actions::make([
Action::make('test pushover')
->label('Test Pushover webhook')
->action(fn (Get $get) => SendPushoverTestNotification::run(
webhooks: $get('pushover_webhooks')
))
->hidden(fn (Get $get) => ! count($get('pushover_webhooks'))),
]),
]),
])
->compact()
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/UnhealthySpeedtestMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function formatBenchmark(string $metric, array $benchmark): array
{
$metricName = str($metric)->title();
$type = str($benchmark['type'])->title();
$thresholdValue = $benchmark['value']. ' ' . str($benchmark['unit'])->title();
$thresholdValue = $benchmark['value'].' '.str($benchmark['unit'])->title();

// Get the actual result value
$resultValue = match ($metric) {
Expand Down
Loading