feat(ui): add configurable page widths and searchable controls

Add full-width and centered layout preferences across the app shell and workspaces.
Replace page-size selects with dropdowns and add searchable breadcrumb switching.
This commit is contained in:
Andras Bacsai committed 2026-08-16 20:54:50 +02:00
1 parent b3b4d8a5f1
commit 5b517f21be
75 files changed
+263 -148

No files matched your search

+14
View File
@@ -65,3 +65,17 @@ it('changes appearance from a submenu instead of navigating to a separate page',
->toContain('hover:bg-neutral-200 hover:text-neutral-950')
->not->toContain("route('profile.appearance')");
});
it('offers page width controls inside the appearance menu', function () {
$menu = file_get_contents(resource_path('views/components/top-user-menu.blade.php'));
expect($menu)
->toContain("pageWidth: localStorage.getItem('pageWidth') || 'full'")
->toContain("['value' => 'full', 'label' => 'Full width']")
->toContain("['value' => 'centered', 'label' => 'Centered']")
->toContain("@click=\"setWidth('{{ \$option['value'] }}')\"")
->toContain('Full width')
->toContain('Centered')
->toContain("localStorage.setItem('pageWidth', width)")
->toContain("new CustomEvent('page-width-changed', { detail: width })");
});