feat(ui): unify resource headings with responsive action menus

Add responsive overflow handling and dedicated action menus for application,
service, database, and server headings, while improving upgrade and email
settings flows and returning 404s for missing deployment environments.
This commit is contained in:
Andras Bacsai
2026-08-13 12:17:16 +02:00
parent 592b537c61
commit 5f3108b68d
37 changed files with 1155 additions and 733 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
use App\Models\InstanceSettings;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Foundation\ExceptionRenderer;
use Illuminate\Foundation\Exceptions\Renderer\Renderer;
use Illuminate\Foundation\Testing\RefreshDatabase;
uses(RefreshDatabase::class);
beforeEach(function () {
InstanceSettings::forceCreate(['id' => 0]);
});
test('debug exceptions use laravel renderer instead of ignition', function () {
config(['app.debug' => true]);
expect(class_exists('Spatie\\LaravelIgnition\\IgnitionServiceProvider'))->toBeFalse()
->and(app()->bound(ExceptionRenderer::class))->toBeFalse()
->and(app()->bound(Renderer::class))->toBeTrue();
$response = app(ExceptionHandler::class)
->render(request(), new RuntimeException('default-laravel-exception-renderer'));
expect($response->getContent())
->toContain('default-laravel-exception-renderer')
->toContain('scheme-light-dark')
->toContain('dark:bg-neutral-900');
});
test('dev exception preview url renders the laravel debug page', function () {
config(['app.debug' => true]);
$this->get('/__exception')
->assertServerError()
->assertSee('RuntimeException', false)
->assertSee('Testing Laravel exception page')
->assertSee('scheme-light-dark', false);
});