From 8ae4ef63beb3766326bbec2d45acbb10602209fa Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Tue, 15 Apr 2025 21:06:26 -0400 Subject: [PATCH 1/4] [Chore] Added code of conduct and updated labels (#2147) --- .github/ISSUE_TEMPLATE/BUG_REPORT_FORM.yml | 8 ++++---- .github/ISSUE_TEMPLATE/FEATURE_REQUEST_FORM.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT_FORM.yml b/.github/ISSUE_TEMPLATE/BUG_REPORT_FORM.yml index 8ec76f3b6..74b17228a 100644 --- a/.github/ISSUE_TEMPLATE/BUG_REPORT_FORM.yml +++ b/.github/ISSUE_TEMPLATE/BUG_REPORT_FORM.yml @@ -1,7 +1,7 @@ name: Bug Report description: Use this template to report a bug or issue. -title: "[Bug]: " -labels: ["bug", "unverified"] +title: "[Bug] " +labels: ["bug", "needs review"] body: - type: markdown attributes: @@ -17,7 +17,7 @@ body: required: true - label: I have searched open and closed issues. required: true - - label: I agree to follow this project's [Code of Conduct](). + - label: I agree to follow this project's [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md). required: true - type: textarea id: description @@ -54,7 +54,7 @@ body: options: - Docker Compose - Docker Run - - Bare Metal + - Other default: 0 validations: required: true diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_FORM.yml b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_FORM.yml index e311293ef..439014ec8 100644 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_FORM.yml +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST_FORM.yml @@ -1,7 +1,7 @@ name: Feature Request description: Use this template for requesting a new feature or change. -title: "[Feature]: " -labels: ["feature", "needs-review"] +title: "[Feature] " +labels: ["feature", "needs review"] body: - type: markdown attributes: @@ -26,7 +26,7 @@ body: - Charts - Notifications - Speedtest - - WebGui + - Web UI/UX default: 0 validations: required: true From 342f3405c779348c72b674189da7cecbfc81b398 Mon Sep 17 00:00:00 2001 From: Sven van Ginkel Date: Wed, 16 Apr 2025 22:58:58 +0200 Subject: [PATCH 2/4] [Feature] Add Error Message to the results table & Export (#2151) --- app/Actions/CheckInternetConnection.php | 2 +- app/Filament/Exports/ResultExporter.php | 5 +++++ app/Filament/Resources/ResultResource.php | 7 +++++++ app/Jobs/CheckForInternetConnectionJob.php | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/Actions/CheckInternetConnection.php b/app/Actions/CheckInternetConnection.php index c1c2ccd2f..22e26f78d 100644 --- a/app/Actions/CheckInternetConnection.php +++ b/app/Actions/CheckInternetConnection.php @@ -25,7 +25,7 @@ public function handle(): bool|string return Str::trim($response->body()); } catch (Throwable $e) { - Log::error('Failed to check internet connection.', [$e->getMessage()]); + Log::error('Failed to connect to the internet.', [$e->getMessage()]); return false; } diff --git a/app/Filament/Exports/ResultExporter.php b/app/Filament/Exports/ResultExporter.php index ad8e0c54b..ab844ec99 100644 --- a/app/Filament/Exports/ResultExporter.php +++ b/app/Filament/Exports/ResultExporter.php @@ -117,6 +117,11 @@ public static function getColumns(): array ->state(function (Result $record) { return $record->result_url; }), + ExportColumn::make('error_message') + ->state(function (Result $record) { + return $record->error_message; + }) + ->enabledByDefault(false), ExportColumn::make('comments') ->enabledByDefault(false), ExportColumn::make('status') diff --git a/app/Filament/Resources/ResultResource.php b/app/Filament/Resources/ResultResource.php index f17c0572c..9e768b1bf 100644 --- a/app/Filament/Resources/ResultResource.php +++ b/app/Filament/Resources/ResultResource.php @@ -319,6 +319,13 @@ public static function table(Table $table): Table ->toggledHiddenByDefault() ->sortable() ->alignment(Alignment::Center), + Tables\Columns\TextColumn::make('data.message') + ->label('Error Message') + ->limit(15) + ->tooltip(fn ($state) => $state) + ->toggleable() + ->toggledHiddenByDefault() + ->sortable(), Tables\Columns\TextColumn::make('created_at') ->dateTime(config('app.datetime_format')) ->timezone(config('app.display_timezone')) diff --git a/app/Jobs/CheckForInternetConnectionJob.php b/app/Jobs/CheckForInternetConnectionJob.php index 24e769e3a..37c5e6f04 100644 --- a/app/Jobs/CheckForInternetConnectionJob.php +++ b/app/Jobs/CheckForInternetConnectionJob.php @@ -51,7 +51,7 @@ public function handle(): void $this->result->update([ 'data->type' => 'log', 'data->level' => 'error', - 'data->message' => 'Failed to fetch external IP address, server is likely unable to connect to the internet.', + 'data->message' => 'Failed to connect to the internet.', 'status' => ResultStatus::Failed, ]); From 6a73fab1f08dc0e1ec84683216b433a8d6571d5a Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Wed, 16 Apr 2025 17:17:32 -0400 Subject: [PATCH 3/4] Laravel 12.9.2 Shift (#2149) Co-authored-by: Shift --- composer.json | 4 ++-- composer.lock | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index 04ed75f1e..82b86ac0d 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "geerlingguy/ping": "^1.2.1", "influxdata/influxdb-client-php": "^3.7", "laravel-notification-channels/telegram": "^6.0", - "laravel/framework": "^12.9", + "laravel/framework": "^12.9.2", "laravel/prompts": "^0.3.5", "laravel/sanctum": "^4.0.8", "livewire/livewire": "^3.6.3", @@ -31,7 +31,7 @@ "maennchen/zipstream-php": "^2.4", "secondnetwork/blade-tabler-icons": "^3.31.0", "spatie/laravel-json-api-paginate": "^1.16.3", - "spatie/laravel-query-builder": "^6.3.1", + "spatie/laravel-query-builder": "^6.3.2", "spatie/laravel-settings": "^3.4.4", "spatie/laravel-webhook-server": "^3.8.3", "timokoerber/laravel-one-time-operations": "^1.4.5", diff --git a/composer.lock b/composer.lock index c0089ad96..168313849 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6bb9f709553e91633d907dbc2bb29eb6", + "content-hash": "a4ea7ab8ed4da3b5fb7c7e293fe47f82", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -2411,16 +2411,16 @@ }, { "name": "laravel/framework", - "version": "v12.9.0", + "version": "v12.9.2", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "d413f9e297b62238c6c633c082f8f45a888e31b6" + "reference": "3db59aa0f382c349c78a92f3e5b5522e00e3301b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/d413f9e297b62238c6c633c082f8f45a888e31b6", - "reference": "d413f9e297b62238c6c633c082f8f45a888e31b6", + "url": "https://api.github.com/repos/laravel/framework/zipball/3db59aa0f382c349c78a92f3e5b5522e00e3301b", + "reference": "3db59aa0f382c349c78a92f3e5b5522e00e3301b", "shasum": "" }, "require": { @@ -2622,7 +2622,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2025-04-15T15:36:35+00:00" + "time": "2025-04-16T15:44:19+00:00" }, { "name": "laravel/prompts", @@ -6091,16 +6091,16 @@ }, { "name": "spatie/laravel-query-builder", - "version": "6.3.1", + "version": "6.3.2", "source": { "type": "git", "url": "https://github.com/spatie/laravel-query-builder.git", - "reference": "465d9b7364590c9ae3ee3738ff8a293e685dd588" + "reference": "3675f7bace346dc5243f58fa7c531e36471200f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-query-builder/zipball/465d9b7364590c9ae3ee3738ff8a293e685dd588", - "reference": "465d9b7364590c9ae3ee3738ff8a293e685dd588", + "url": "https://api.github.com/repos/spatie/laravel-query-builder/zipball/3675f7bace346dc5243f58fa7c531e36471200f4", + "reference": "3675f7bace346dc5243f58fa7c531e36471200f4", "shasum": "" }, "require": { @@ -6160,7 +6160,7 @@ "type": "custom" } ], - "time": "2025-02-19T07:14:53+00:00" + "time": "2025-04-16T07:30:03+00:00" }, { "name": "spatie/laravel-settings", From b6c34e83ef316aa2670e5bfba234425a79e27945 Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Wed, 16 Apr 2025 18:00:13 -0400 Subject: [PATCH 4/4] Release v1.4.2 (#2152) --- config/speedtest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/speedtest.php b/config/speedtest.php index 349dd52a3..f18055c87 100644 --- a/config/speedtest.php +++ b/config/speedtest.php @@ -4,9 +4,9 @@ return [ - 'build_date' => Carbon::parse('2025-04-15'), + 'build_date' => Carbon::parse('2025-04-16'), - 'build_version' => 'v1.4.1', + 'build_version' => 'v1.4.2', /** * General settings.