1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: Insights placement in drawer nav (#6846)

Moves the Insights nav menu item down to match desktop ordering

Closes #
[1-2290](https://linear.app/unleash/issue/1-2290/mobile-menu-insights-pops-up-as-the-first-item)
<img width="951" alt="Screenshot 2024-04-12 at 13 12 25"
src="https://github.com/Unleash/unleash/assets/104830839/c4222912-2fb9-4d01-8c82-e3288738f52c">

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2024-04-12 14:22:53 +03:00 committed by GitHub
parent 945e086f81
commit 34e917f0ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 22 deletions

View File

@ -10,17 +10,6 @@ exports[`returns all baseRoutes 1`] = `
"title": "Unleash", "title": "Unleash",
"type": "protected", "type": "protected",
}, },
{
"component": [Function],
"enterprise": false,
"flag": "executiveDashboardUI",
"menu": {
"mobile": true,
},
"path": "/insights",
"title": "Insights",
"type": "protected",
},
{ {
"component": { "component": {
"$$typeof": Symbol(react.lazy), "$$typeof": Symbol(react.lazy),
@ -151,6 +140,17 @@ exports[`returns all baseRoutes 1`] = `
"title": "Playground", "title": "Playground",
"type": "protected", "type": "protected",
}, },
{
"component": [Function],
"enterprise": false,
"flag": "executiveDashboardUI",
"menu": {
"mobile": true,
},
"path": "/insights",
"title": "Insights",
"type": "protected",
},
{ {
"component": [Function], "component": [Function],
"menu": {}, "menu": {},

View File

@ -60,17 +60,6 @@ export const routes: IRoute[] = [
isStandalone: true, isStandalone: true,
}, },
// Insights - previously "Executive dashboard"
{
path: '/insights',
title: 'Insights',
component: Insights,
type: 'protected',
menu: { mobile: true },
flag: 'executiveDashboardUI',
enterprise: false,
},
// Project // Project
{ {
path: '/projects/create', path: '/projects/create',
@ -173,6 +162,17 @@ export const routes: IRoute[] = [
menu: { mobile: true }, menu: { mobile: true },
}, },
// Insights
{
path: '/insights',
title: 'Insights',
component: Insights,
type: 'protected',
menu: { mobile: true },
flag: 'executiveDashboardUI',
enterprise: false,
},
// Applications // Applications
{ {
path: '/applications/:name/*', path: '/applications/:name/*',