feat(nav): redesign navigation bar and add Browse/Community links

Enhance the navigation with a modern floating glass design, new Browse and Community dropdown links, and improved theme/blur toggles that now handle multiple instances. Update dropdown components with rounded styling and support for wider widths, refine nav-link active states, and add navigation feature tests.
This commit is contained in:
2026-08-09 10:13:54 +02:00
parent d08e280ce0
commit 338c190ae8
16 changed files with 393 additions and 293 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use App\Enums\UserRole;
use App\Models\User;
use Tests\RefreshDatabase;
use Tests\TestCase;
class NavigationTest extends TestCase
{
use RefreshDatabase;
public function test_home_page_renders_new_nav(): void
{
$this->get('/search')
->assertOk()
->assertSee('Browse')
->assertSee('Playlists')
->assertSeeHtml('id="toogleTheme"');
}
public function test_admin_layout_renders_for_admin(): void
{
$admin = User::factory()->create();
$admin->addRole(UserRole::ADMINISTRATOR);
$this->actingAs($admin)
->get(route('admin.upload.index'))
->assertOk();
}
}