style(sidebar): add resource menu return row and refine dark UI details

- Add a main-menu row that reopens the resource menu, with a placeholder row
- Show only the other view as an icon in the view switcher
- Remove the active tile glow and the collapsed Search frame
- Tint the dark command palette purple and whiten focused-row details
- Soften the toast edge and give the toast icon tile 3D depth
- Document the decisions in DESIGN.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-22 14:02:18 +02:00
co-authored by Claude Opus 5.5
parent 59928035b7
commit dff2674466
16 changed files with 183 additions and 43 deletions
+3 -2
View File
@@ -4626,11 +4626,12 @@ function wireNavigate(): string
* Registers a resource menu that the main sidebar shows in place of its main menu on wide screens
* (see components/navbar.blade.php). The menu teleports itself into #main-nav-context-{depth}.
* Back on a menu shows the menu one depth lower, and Back at depth 0 shows the main menu.
* The main menu then shows a row (labelled with $name) that opens the deepest resource menu again.
*/
function registerMainNavContext(int $depth, string $label, string $backTitle): void
function registerMainNavContext(int $depth, string $label, string $backTitle, ?string $name = null): void
{
$levels = request()->attributes->get('mainNavContext', []);
$levels[$depth] = ['label' => $label, 'backTitle' => $backTitle];
$levels[$depth] = ['label' => $label, 'backTitle' => $backTitle, 'name' => $name];
ksort($levels);
request()->attributes->set('mainNavContext', $levels);