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()