From a80f0c7ca875a5a8f58c0c5709aa2dfe1d3d1a13 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 30 Oct 2026 17:23:49 +0100 Subject: [PATCH] fix(ui): name the deepest menu on the resource menu row - Backup pages show Backup, and service sub-resources show their own name, because the row opens that menu. Co-Authored-By: Claude Opus 5.5 --- DESIGN.md | 3 ++- resources/views/components/backup-sidebar.blade.php | 2 +- resources/views/components/service-database/sidebar.blade.php | 3 ++- resources/views/livewire/project/service/index.blade.php | 3 ++- tests/Feature/ResourceMenuInMainNavTest.php | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index c6b59b8601..6dd7dec361 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -312,7 +312,8 @@ Class names below are examples. Keep the values and structure. - A menu that replaces another menu in place starts with a back row: a centered label and a 12px left chevron (`‹ Dashboard`). - On a resource page, the main menu starts with a row that opens the resource - menu again. It points right and shows the resource name (`adonisjs ›`). On + menu again. It points right and shows the name of the deepest menu (`adonisjs ›`, + `Backup ›`). On other pages the main menu has no row above its items, and Dashboard is the first item, right under Search. diff --git a/resources/views/components/backup-sidebar.blade.php b/resources/views/components/backup-sidebar.blade.php index efa09f884a..2167e72ee7 100644 --- a/resources/views/components/backup-sidebar.blade.php +++ b/resources/views/components/backup-sidebar.blade.php @@ -51,7 +51,7 @@ }; @endphp -