From a2966a875d8ccf00a4ddd3067a9f879bb7d0f58a Mon Sep 17 00:00:00 2001 From: renshen <1005457301@qq.com> Date: Thu, 5 Nov 2026 19:59:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E7=9A=84=E9=87=8D=E5=A4=8D=E5=8E=9F=E5=9E=8B?= =?UTF-8?q?=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Utilities/SidebarMenu.php | 3 --- tests/Feature/Settings/NavigationTest.php | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/Utilities/SidebarMenu.php b/app/Utilities/SidebarMenu.php index a8ea341d..39288d97 100644 --- a/app/Utilities/SidebarMenu.php +++ b/app/Utilities/SidebarMenu.php @@ -45,9 +45,6 @@ class SidebarMenu ['company-management', 'company-progress', '公司进度表', 'timeline'], ['store-management', 'change-progress', '店铺变更进度表', 'swap_horiz'], ['trademark-management', 'trademark-progress', '商标进度表', 'format_list_bulleted'], - ['other', 'systemization-todos', '系统化待办', 'checklist'], - ['workspace', 'tasks', '待办事项', 'assignment_turned_in'], - ['workspace', 'warnings', '预警页面', 'warning_amber'], ]], ['title' => '财务报表', 'items' => [ ['prototype-finance-reports', 'profit-report', '公司利润报表', 'request_quote'], diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index c5d65ec9..9fb205d6 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -350,6 +350,18 @@ class NavigationTest extends FeatureTestCase ); } + public function testPrototypeSidebarDoesNotDuplicateOtherDirectoryPages(): void + { + $prototypePages = collect(SidebarMenu::groups($this->user)) + ->flatMap(static fn (array $group): array => $group['items']) + ->pluck('page') + ->all(); + + $this->assertNotContains('systemization-todos', $prototypePages); + $this->assertNotContains('tasks', $prototypePages); + $this->assertNotContains('warnings', $prototypePages); + } + public function test_business_pages_render_menu_filter_and_open_page_tabs(): void { $this->loginAs()