From d2a4b27fc869f0ae8d50528eb508e926f34a298e Mon Sep 17 00:00:00 2001 From: Krystian Duma Date: Wed, 21 Oct 2026 19:49:35 +0000 Subject: [PATCH 1/3] Preserve WebPrint branding and light appearance after upgrade --- .../components/application-logo.blade.php | 27 ++++++++++++++++--- .../components/application-mark.blade.php | 26 +++++++++++++++--- .../authentication-card-logo.blade.php | 27 ++++++++++++++++--- .../components/application-logo.blade.php | 24 ----------------- .../components/application-mark.blade.php | 24 ----------------- .../authentication-card-logo.blade.php | 27 ------------------- tailwind.config.js | 2 ++ 7 files changed, 72 insertions(+), 85 deletions(-) delete mode 100644 resources/views/vendor/jetstream/components/application-logo.blade.php delete mode 100644 resources/views/vendor/jetstream/components/application-mark.blade.php delete mode 100755 resources/views/vendor/jetstream/components/authentication-card-logo.blade.php diff --git a/resources/views/components/application-logo.blade.php b/resources/views/components/application-logo.blade.php index fe49dae..8c92fda 100644 --- a/resources/views/components/application-logo.blade.php +++ b/resources/views/components/application-logo.blade.php @@ -1,5 +1,24 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/views/components/application-mark.blade.php b/resources/views/components/application-mark.blade.php index 182054e..8c92fda 100644 --- a/resources/views/components/application-mark.blade.php +++ b/resources/views/components/application-mark.blade.php @@ -1,4 +1,24 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/views/components/authentication-card-logo.blade.php b/resources/views/components/authentication-card-logo.blade.php index 752bae4..5f11ca2 100644 --- a/resources/views/components/authentication-card-logo.blade.php +++ b/resources/views/components/authentication-card-logo.blade.php @@ -1,6 +1,27 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/views/vendor/jetstream/components/application-logo.blade.php b/resources/views/vendor/jetstream/components/application-logo.blade.php deleted file mode 100644 index 8c92fda..0000000 --- a/resources/views/vendor/jetstream/components/application-logo.blade.php +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/views/vendor/jetstream/components/application-mark.blade.php b/resources/views/vendor/jetstream/components/application-mark.blade.php deleted file mode 100644 index 8c92fda..0000000 --- a/resources/views/vendor/jetstream/components/application-mark.blade.php +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/views/vendor/jetstream/components/authentication-card-logo.blade.php b/resources/views/vendor/jetstream/components/authentication-card-logo.blade.php deleted file mode 100755 index 5f11ca2..0000000 --- a/resources/views/vendor/jetstream/components/authentication-card-logo.blade.php +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tailwind.config.js b/tailwind.config.js index e5b8a60..a302a8b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,6 +2,8 @@ const defaultTheme = require("tailwindcss/defaultTheme"); /** @type {import('tailwindcss').Config} */ module.exports = { + darkMode: "class", + content: [ "./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php", "./vendor/laravel/jetstream/**/*.blade.php", From f96278d6b80f467099d02148d54678cbe7772175 Mon Sep 17 00:00:00 2001 From: Krystian Duma Date: Wed, 21 Oct 2026 19:49:35 +0000 Subject: [PATCH 2/3] Test printer team boundaries with valid Sanctum abilities --- tests/Feature/RuntimeUpgradeTest.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/Feature/RuntimeUpgradeTest.php b/tests/Feature/RuntimeUpgradeTest.php index b112de8..c7831c1 100644 --- a/tests/Feature/RuntimeUpgradeTest.php +++ b/tests/Feature/RuntimeUpgradeTest.php @@ -15,6 +15,7 @@ use App\Settings\GeneralSettings; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Storage; +use Laravel\Sanctum\Sanctum; use Livewire\Livewire; use Tests\TestCase; @@ -64,12 +65,29 @@ public function test_settings_form_saves_and_dispatches_livewire_events(): void $this->assertSame('pl', app(GeneralSettings::class)->language); } + public function test_user_can_update_a_printer_owned_by_their_team(): void + { + $user = User::factory()->withNonPersonalTeam()->create(); + $server = PrintServer::factory()->recycle($user->currentTeam)->create(); + $printer = Printer::factory()->for($server, 'Server')->create(['name' => 'Original printer']); + + Sanctum::actingAs($user, ['*']); + + Livewire::test(UpdatePrinter::class, ['printer' => $printer]) + ->set('name', 'Updated printer') + ->call('save') + ->assertHasNoErrors() + ->assertDispatched('saved'); + + $this->assertSame('Updated printer', $printer->fresh()->name); + } + public function test_user_cannot_mount_another_teams_printer_editor_and_save_changes(): void { $user = User::factory()->withNonPersonalTeam()->create(); $printer = Printer::factory()->create(['name' => 'Original printer']); - $this->actingAs($user); + Sanctum::actingAs($user, ['*']); Livewire::test(UpdatePrinter::class, ['printer' => $printer]) ->set('name', 'Unauthorized change') From 4cf10c450eaf331f8ad7b5c1d3cb7a439a6feb4c Mon Sep 17 00:00:00 2001 From: Krystian Duma Date: Wed, 21 Oct 2026 19:49:35 +0000 Subject: [PATCH 3/3] Isolate settings migration test from database transactions --- tests/Feature/SettingsMigrationTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/SettingsMigrationTest.php b/tests/Feature/SettingsMigrationTest.php index 0e90b48..40ca4bc 100644 --- a/tests/Feature/SettingsMigrationTest.php +++ b/tests/Feature/SettingsMigrationTest.php @@ -2,14 +2,14 @@ namespace Tests\Feature; -use Illuminate\Foundation\Testing\RefreshDatabase; +use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; use Tests\TestCase; class SettingsMigrationTest extends TestCase { - use RefreshDatabase; + use DatabaseMigrations; public function test_settings_upgrade_preserves_existing_values_and_lock_state(): void {