From 48a0f837e32e0576db90db916ceb10bd9d69bb9f Mon Sep 17 00:00:00 2001 From: Dan Farrelly Date: Tue, 16 Apr 2024 18:04:16 -0400 Subject: [PATCH 1/3] Remove new labeling for apps --- .../env/[environmentSlug]/apps/page.tsx | 30 ------------------- .../components/Navigation/AppNavigation.tsx | 5 ---- 2 files changed, 35 deletions(-) diff --git a/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/apps/page.tsx b/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/apps/page.tsx index 03714d9ed6..da3f1a3204 100644 --- a/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/apps/page.tsx +++ b/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/apps/page.tsx @@ -6,10 +6,8 @@ import { InformationCircleIcon, PlusIcon, Squares2X2Icon } from '@heroicons/reac import { Button } from '@inngest/components/Button'; import { HoverCardContent, HoverCardRoot, HoverCardTrigger } from '@inngest/components/HoverCard'; import { Link } from '@inngest/components/Link'; -import { useLocalStorage } from 'react-use'; import { useEnvironment } from '@/app/(organization-active)/(dashboard)/env/[environmentSlug]/environment-context'; -import { Banner } from '@/components/Banner'; import Header, { type HeaderLink } from '@/components/Header/Header'; import { pathCreator } from '@/utils/urls'; import { useBooleanSearchParam } from '@/utils/useSearchParam'; @@ -18,10 +16,6 @@ import { Apps } from './Apps'; export default function Page() { const env = useEnvironment(); const router = useRouter(); - const [isAppsBannerVisible, setIsAppsBannerVisible] = useLocalStorage( - 'AppsLaunchBannerVisible', - true - ); const [isArchived] = useBooleanSearchParam('archived'); @@ -78,8 +72,6 @@ export default function Page() { automatically.


-

Deploys have been renamed to “Syncs.” Syncs are found within Apps.

-
Read Docs @@ -87,28 +79,6 @@ export default function Page() { } />
- {isAppsBannerVisible && ( - { - setIsAppsBannerVisible(false); - }} - className="absolute" - > -

- Inngest deploys have been renamed to “Syncs”. All of your syncs can be found - within your apps.{' '} - - Learn More - -

-
- )} -
diff --git a/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx b/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx index 6e75389bc9..2dbf0eb7d8 100644 --- a/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx +++ b/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx @@ -43,11 +43,6 @@ export default function AppNavigation({ environmentSlug }: AppNavigationProps) { text: 'Apps', hide: [ALL_ENVIRONMENTS_SLUG], icon: , - badge: ( - - New - - ), }, { href: `/env/${environmentSlug}/functions`, From 227b916b454153d4b089b0dea55d295ee778c733 Mon Sep 17 00:00:00 2001 From: Dan Farrelly Date: Tue, 16 Apr 2024 18:05:27 -0400 Subject: [PATCH 2/3] Remove new label for Replay --- .../functions/[slug]/layout.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx b/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx index 86d054e1e3..f2774ed269 100644 --- a/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx +++ b/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx @@ -38,8 +38,6 @@ export default function FunctionLayout({ children, params }: FunctionLayoutProps const { isArchived = false } = fn ?? {}; const isPaused = !isArchived && !data?.workspace.workflow?.current; - const isReplayEnabled = useBooleanFlag('function-replay'); - const emptyData = !data || fetching || !fn; const navLinks: HeaderLink[] = [ { @@ -51,19 +49,11 @@ export default function FunctionLayout({ children, params }: FunctionLayoutProps href: `/env/${params.environmentSlug}/functions/${params.slug}/logs`, text: 'Runs', }, - ]; - - if (isReplayEnabled.value) { - navLinks.push({ + { href: `/env/${params.environmentSlug}/functions/${params.slug}/replay`, text: 'Replay', - badge: ( - - New - - ), - }); - } + }, + ]; const doesFunctionAcceptPayload = fn?.current?.triggers.some((trigger) => { From 7d373da4f2aea528c4d158fade448fcd6cdde93b Mon Sep 17 00:00:00 2001 From: Dan Farrelly Date: Tue, 16 Apr 2024 18:13:56 -0400 Subject: [PATCH 3/3] Remove unused imports --- .../env/[environmentSlug]/functions/[slug]/layout.tsx | 1 - ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx b/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx index f2774ed269..d26caffcbb 100644 --- a/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx +++ b/ui/apps/dashboard/src/app/(organization-active)/(dashboard)/env/[environmentSlug]/functions/[slug]/layout.tsx @@ -7,7 +7,6 @@ import { InvokeButton } from '@inngest/components/InvokeButton'; import { useMutation } from 'urql'; import { useEnvironment } from '@/app/(organization-active)/(dashboard)/env/[environmentSlug]/environment-context'; -import { useBooleanFlag } from '@/components/FeatureFlags/hooks'; import Header, { type HeaderLink } from '@/components/Header/Header'; import { graphql } from '@/gql'; import { useFunction } from '@/queries'; diff --git a/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx b/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx index 2dbf0eb7d8..cd91ab0ca3 100644 --- a/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx +++ b/ui/apps/dashboard/src/components/Navigation/AppNavigation.tsx @@ -8,7 +8,6 @@ import { Squares2X2Icon, WrenchIcon, } from '@heroicons/react/20/solid'; -import { Badge } from '@inngest/components/Badge'; import { useBooleanFlag } from '@/components/FeatureFlags/hooks'; import OrganizationDropdown from '@/components/Navigation/OrganizationDropdown';