From 9fbff54b34d2d8de36950aa289596f761d1acda4 Mon Sep 17 00:00:00 2001 From: Dotty Date: Fri, 22 Nov 2024 10:04:44 -0400 Subject: [PATCH 1/4] [TM-1464] add route /dashboard in navbar --- src/components/generic/Navbar/navbarItems.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/generic/Navbar/navbarItems.ts b/src/components/generic/Navbar/navbarItems.ts index 968f24f5f..c8f6c388e 100644 --- a/src/components/generic/Navbar/navbarItems.ts +++ b/src/components/generic/Navbar/navbarItems.ts @@ -27,6 +27,11 @@ export const getNavbarItems = (t: typeof useT, myOrg?: MyOrganisationConnection) url: "/", visibility: true }, + { + title: t("Dashboards"), + url: "/dashboard", + visibility: true + }, { title: t("Support"), url: zendeskSupportLink, From 8a48ecd512178c31609b1de4a0a4b33a03493a32 Mon Sep 17 00:00:00 2001 From: diego-morales-flores-1996 Date: Fri, 22 Nov 2024 11:11:07 -0400 Subject: [PATCH 2/4] [TM-1464] update test --- .../MainLayout.stories.storyshot | 23 +++++++++++++++++++ .../__snapshots__/Navbar.stories.storyshot | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/src/components/generic/Layout/__snapshots__/MainLayout.stories.storyshot b/src/components/generic/Layout/__snapshots__/MainLayout.stories.storyshot index fdeb0c568..a59b5dab0 100644 --- a/src/components/generic/Layout/__snapshots__/MainLayout.stories.storyshot +++ b/src/components/generic/Layout/__snapshots__/MainLayout.stories.storyshot @@ -95,6 +95,29 @@ exports[`Storyshots Components/Generic/Layouts/MainLayout Default 1`] = ` +
+
+ +
+ + Dashboards + +
+
+
+
+
+
+ +
+ + Dashboards + +
+
+
+
Date: Fri, 22 Nov 2024 13:22:48 -0400 Subject: [PATCH 3/4] [TM-1464] add route dashboard in navbar private --- src/components/generic/Navbar/navbarItems.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/generic/Navbar/navbarItems.ts b/src/components/generic/Navbar/navbarItems.ts index c8f6c388e..968cb52d0 100644 --- a/src/components/generic/Navbar/navbarItems.ts +++ b/src/components/generic/Navbar/navbarItems.ts @@ -44,6 +44,11 @@ export const getNavbarItems = (t: typeof useT, myOrg?: MyOrganisationConnection) url: "/home", visibility }, + { + title: t("Dashboards"), + url: "/dashboard", + visibility: true + }, { title: t("Opportunities"), url: "/opportunities", From d08fd668a3eb6068e2b28414af1dbc77cd68140f Mon Sep 17 00:00:00 2001 From: diego-morales-flores-1996 Date: Fri, 22 Nov 2024 13:46:28 -0400 Subject: [PATCH 4/4] [TM-1464] update storyshots --- .../__snapshots__/Navbar.stories.storyshot | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/components/generic/Navbar/__snapshots__/Navbar.stories.storyshot b/src/components/generic/Navbar/__snapshots__/Navbar.stories.storyshot index 5ce3a4f00..c03fcb0e0 100644 --- a/src/components/generic/Navbar/__snapshots__/Navbar.stories.storyshot +++ b/src/components/generic/Navbar/__snapshots__/Navbar.stories.storyshot @@ -66,6 +66,29 @@ exports[`Storyshots Components/Generic/Navbar Logged In 1`] = `
+
+
+ +
+ + Dashboards + +
+
+
+