diff --git a/apps/webapp/app/components/navigation/SideMenu.tsx b/apps/webapp/app/components/navigation/SideMenu.tsx index ed30557d8..9d24e7608 100644 --- a/apps/webapp/app/components/navigation/SideMenu.tsx +++ b/apps/webapp/app/components/navigation/SideMenu.tsx @@ -1,5 +1,6 @@ import { AcademicCapIcon, + ArrowRightIcon, ArrowRightOnRectangleIcon, ChartBarIcon, EllipsisHorizontalIcon, @@ -7,13 +8,14 @@ import { import { UserGroupIcon, UserPlusIcon } from "@heroicons/react/24/solid"; import { useNavigation } from "@remix-run/react"; import { IconExclamationCircle } from "@tabler/icons-react"; -import { SlackIcon } from "@trigger.dev/companyicons"; +import { DiscordIcon, SlackIcon } from "@trigger.dev/companyicons"; import { AnchorHTMLAttributes, Fragment, useEffect, useRef, useState } from "react"; import { useFeatures } from "~/hooks/useFeatures"; import { MatchedOrganization } from "~/hooks/useOrganizations"; import { usePathName } from "~/hooks/usePathName"; import { MatchedProject } from "~/hooks/useProject"; import { User } from "~/models/user.server"; +import { useCurrentPlan } from "~/routes/_app.orgs.$organizationSlug/route"; import { cn } from "~/utils/cn"; import { accountPath, @@ -35,9 +37,12 @@ import { import { Feedback } from "../Feedback"; import { ImpersonationBanner } from "../ImpersonationBanner"; import { LogoIcon } from "../LogoIcon"; +import { StepContentContainer } from "../StepContentContainer"; import { UserProfilePhoto } from "../UserProfilePhoto"; import { FreePlanUsage } from "../billing/FreePlanUsage"; import { Button, LinkButton } from "../primitives/Buttons"; +import { ClipboardField } from "../primitives/ClipboardField"; +import { Dialog, DialogContent, DialogHeader, DialogTrigger } from "../primitives/Dialog"; import { Icon } from "../primitives/Icon"; import { type IconNames } from "../primitives/NamedIcon"; import { Paragraph } from "../primitives/Paragraph"; @@ -49,8 +54,8 @@ import { PopoverMenuItem, PopoverSectionHeader, } from "../primitives/Popover"; +import { StepNumber } from "../primitives/StepNumber"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../primitives/Tooltip"; -import { useCurrentPlan } from "~/routes/_app.orgs.$organizationSlug/route"; type SideMenuUser = Pick & { isImpersonating: boolean }; type SideMenuProject = Pick< @@ -195,13 +200,72 @@ export function SideMenu({ user, project, organization, organizations }: SideMen
- + {currentPlan?.subscription?.isPaying === true ? ( + + + + + + Join our Slack +
+
+ + + As a subscriber, you have access to a dedicated Slack channel for 1-to-1 + support with the Trigger.dev team. + +
+
+
+ + + + In your Slack app, create a new channel from the main menu by going to File{" "} + New Channel + + + + + + Name your channel, set its visibility and click 'Create'. + + + + + + Invite this email address to your channel:{" "} + + + + As soon as we can, we'll accept your invitation and say hello! + + +
+
+
+
+ ) : ( + + )} +