From eea1a8de4e5d63cf300bd0d514a2b1cb579f25a9 Mon Sep 17 00:00:00 2001 From: salam Date: Fri, 29 May 2026 12:24:03 +0200 Subject: [PATCH] wip --- app/Filament/Pages/Statistic.php | 9 +++++---- app/Filament/Widgets/Data/LoadPerformance.php | 10 ++++++++-- app/Filament/Widgets/StatsMedianAverage.php | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index d1616243..2ea8beee 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -182,15 +182,16 @@ class Statistic extends BaseDashboard 'all' => 'All Database', ]), Slider::make('accuracy') + ->label('Accuracy max: 0.25, steps: 0.025') ->hiddenLabel() ->disabled(fn (Get $get) => $get('similar_past_matches') == 'none') // ->fillTrack() - ->default(5) - ->step(0.1) + ->range(minValue: 0, maxValue: 0.25) + ->step(0.025) ->decimalPlaces(1) + ->decimalPlaces(3) ->tooltips() - ->range(minValue: 0, maxValue: 1) - ->pips() + // ->pips() ->live(), Select::make('tm_player_id') ->label('Player') diff --git a/app/Filament/Widgets/Data/LoadPerformance.php b/app/Filament/Widgets/Data/LoadPerformance.php index 85aee157..43d6c820 100644 --- a/app/Filament/Widgets/Data/LoadPerformance.php +++ b/app/Filament/Widgets/Data/LoadPerformance.php @@ -73,7 +73,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#fb2c36', - 'backgroundColor' => '#c10007', + 'backgroundColor' => '#fb2c36', ], [ 'label' => 'Defence', @@ -81,6 +81,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#c10007', + 'backgroundColor' => '#c10007', 'fill' => false, ], [ @@ -89,6 +90,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#c10007', + 'backgroundColor' => '#c10007', 'fill' => false, ], [ @@ -97,6 +99,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#c10007', + 'backgroundColor' => '#c10007', 'fill' => false, ], [ @@ -105,7 +108,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#fdc700', - 'backgroundColor' => '#a65f00', + 'backgroundColor' => '#fdc700', 'fill' => false, ], [ @@ -114,6 +117,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#d08700', + 'backgroundColor' => '#d08700', 'fill' => false, ], [ @@ -122,6 +126,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#d08700', + 'backgroundColor' => '#d08700', 'fill' => false, ], [ @@ -130,6 +135,7 @@ class LoadPerformance 'spanGaps' => true, 'tension' => 0.5, 'borderColor' => '#d08700', + 'backgroundColor' => '#d08700', 'fill' => false, ], ], diff --git a/app/Filament/Widgets/StatsMedianAverage.php b/app/Filament/Widgets/StatsMedianAverage.php index 0af7255c..daba981c 100644 --- a/app/Filament/Widgets/StatsMedianAverage.php +++ b/app/Filament/Widgets/StatsMedianAverage.php @@ -25,7 +25,7 @@ class StatsMedianAverage extends StatsOverviewWidget protected function getStats(): array { - $data = LoadEvents::load($this->filters, 'Events'); + $data = LoadEvents::load($this->filters); $statistic_type = ucfirst(HelperStatisticType::get($this->filters));