This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch feat-menu
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit f338a796f59f9c694f969b7a78a27be470c76b7e
Author: mintsweet <[email protected]>
AuthorDate: Tue Oct 8 20:30:38 2024 +1300

    feat: adjust the menu
---
 config-ui/src/app/routrer.tsx          | 23 ++---------------------
 config-ui/src/routes/layout/config.tsx | 12 +++---------
 2 files changed, 5 insertions(+), 30 deletions(-)

diff --git a/config-ui/src/app/routrer.tsx b/config-ui/src/app/routrer.tsx
index f59b0a58a..2ee79bfb9 100644
--- a/config-ui/src/app/routrer.tsx
+++ b/config-ui/src/app/routrer.tsx
@@ -30,11 +30,8 @@ import {
   ProjectGeneralSettings,
   ProjectWebhook,
   ProjectAdditionalSettings,
-  BlueprintHomePage,
-  BlueprintDetailPage,
   BlueprintConnectionDetailPage,
   Pipelines,
-  Pipeline,
   ApiKeys,
   NotFound,
 } from '@/routes';
@@ -112,31 +109,15 @@ export const router = createBrowserRouter(
               path: 'advanced',
               children: [
                 {
-                  path: 'blueprints',
-                  element: <BlueprintHomePage />,
-                },
-                {
-                  path: 'blueprints/:id',
-                  element: <BlueprintDetailPage />,
-                },
-                {
-                  path: 'blueprints/:bid/:unique',
-                  element: <BlueprintConnectionDetailPage />,
+                  path: 'keys',
+                  element: <ApiKeys />,
                 },
                 {
                   path: 'pipelines',
                   element: <Pipelines />,
                 },
-                {
-                  path: 'pipeline/:id',
-                  element: <Pipeline />,
-                },
               ],
             },
-            {
-              path: 'keys',
-              element: <ApiKeys />,
-            },
           ],
         },
       ],
diff --git a/config-ui/src/routes/layout/config.tsx 
b/config-ui/src/routes/layout/config.tsx
index 8e2b9a6d2..069798c1d 100644
--- a/config-ui/src/routes/layout/config.tsx
+++ b/config-ui/src/routes/layout/config.tsx
@@ -20,7 +20,6 @@ import {
   AppstoreOutlined,
   ProjectOutlined,
   ExperimentOutlined,
-  KeyOutlined,
   DashboardOutlined,
   FileSearchOutlined,
   ApiOutlined,
@@ -54,20 +53,15 @@ export const menuItems: MenuItem[] = [
     icon: <ExperimentOutlined />,
     children: [
       {
-        key: '/advanced/blueprints',
-        label: 'Blueprints',
+        key: '/advanced/keys',
+        label: 'API Keys',
       },
       {
         key: '/advanced/pipelines',
-        label: 'Pipelines',
+        label: 'Pipeline Results',
       },
     ],
   },
-  {
-    key: '/keys',
-    label: 'API Keys',
-    icon: <KeyOutlined />,
-  },
 ];
 
 const getMenuMatchs = (items: MenuItem[], parentKey?: string) => {

Reply via email to