From 50575f61fa728e22a5ab52f38c0ac5e319ced822 Mon Sep 17 00:00:00 2001
From: PietiKinnunen <106057688+PietiKinnunen@users.noreply.github.com>
Date: Wed, 4 Oct 2023 11:54:58 +0300
Subject: [PATCH 1/6] Add Community nav item
---
components/Menu/structure.ts | 27 +++++++++++++++++++++++++++
tests/data/navbar-data.ts | 30 +++++++++++++++++++++++++++---
2 files changed, 54 insertions(+), 3 deletions(-)
diff --git a/components/Menu/structure.ts b/components/Menu/structure.ts
index 5eda93a252..7686ff8126 100644
--- a/components/Menu/structure.ts
+++ b/components/Menu/structure.ts
@@ -268,6 +268,33 @@ const menu: MenuCategoryProps[] = [
href: "/pricing/",
testId: "pricing",
},
+ {
+ title: "Community",
+ href: "/community/",
+ testId: "community",
+ children: [
+ {
+ title: "Getting Started with OSS",
+ href: "/docs/",
+ },
+ {
+ title: "Downloads",
+ href: "/download/",
+ },
+ {
+ title: "Community Slack",
+ href: "/community-slack/",
+ },
+ {
+ title: "GitHub Discussions",
+ href: "https://github.com/gravitational/teleport/discussions",
+ },
+ {
+ title: "Podcasts",
+ href: "/resources/podcast/",
+ },
+ ],
+ },
];
export default menu;
diff --git a/tests/data/navbar-data.ts b/tests/data/navbar-data.ts
index c5ce3f5dcd..7e285566f4 100644
--- a/tests/data/navbar-data.ts
+++ b/tests/data/navbar-data.ts
@@ -300,9 +300,33 @@ export const navigationData: NavbarData = [
isExternal: true,
},
{
- button: { title: "", testId: "search" },
- href: "https://goteleport.com/search/",
- isExternal: true,
+ button: { title: "Community", testId: "community" },
+ menu: {
+ title: "Community",
+ testId: "community-menu",
+ children: [
+ {
+ title: "Getting Started with OSS",
+ href: "/docs/",
+ },
+ {
+ title: "Downloads",
+ href: "/download/",
+ },
+ {
+ title: "Community Slack",
+ href: "/community-slack/",
+ },
+ {
+ title: "GitHub Discussions",
+ href: "https://github.com/gravitational/teleport/discussions",
+ },
+ {
+ title: "Podcasts",
+ href: "/resources/podcast/",
+ },
+ ],
+ },
},
{
button: { title: "Downloads", testId: "downloads" },
From dd0363d6e725d959c0c0dcfdc7b4c1f0ba27734f Mon Sep 17 00:00:00 2001
From: PietiKinnunen <106057688+PietiKinnunen@users.noreply.github.com>
Date: Wed, 4 Oct 2023 11:57:59 +0300
Subject: [PATCH 2/6] Remove downloads link
---
components/Header/HeaderCTA.tsx | 8 --------
tests/data/navbar-data.ts | 5 -----
2 files changed, 13 deletions(-)
diff --git a/components/Header/HeaderCTA.tsx b/components/Header/HeaderCTA.tsx
index f4b30e01ab..de215d629f 100644
--- a/components/Header/HeaderCTA.tsx
+++ b/components/Header/HeaderCTA.tsx
@@ -2,7 +2,6 @@ import cn from "classnames";
import { useState, useCallback, useRef, MouseEvent } from "react";
import { useClickAway } from "react-use";
import Button from "components/Button";
-import Link from "components/Link";
import {
DropdownMenuOverlay,
DropdownMenuCTA,
@@ -30,13 +29,6 @@ const HeaderCTA = () => {
<>
{isSignInVisible && }
-
- Downloads
-