Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
[NO-TICKET] Revert TOTP FE (#5000)
Aaron Perez22453f630a86
diff --git a/skyvern-frontend/src/components/GlobalNotificationListener.tsx b/skyvern-frontend/src/components/GlobalNotificationListener.tsxindex ad0bd7b5d..aafaa340b 100644--- a/skyvern-frontend/src/components/GlobalNotificationListener.tsx+++ b/skyvern-frontend/src/components/GlobalNotificationListener.tsx@@ -3,7 +3,6 @@ import {useNotificationStream,type VerificationRequest,} from "@/hooks/useNotificationStream";-import { enable2faNotifications } from "@/util/env";function notificationLabel(req: VerificationRequest): string {if (req.task_id) return `Task "${req.task_id}"`;@@ -35,11 +34,6 @@ function VerificationCodeHandler({ req }: { req: VerificationRequest }) {}function GlobalNotificationListener() {- if (!enable2faNotifications) return null;- return <GlobalNotificationListenerInner />;-}--function GlobalNotificationListenerInner() {const { verificationRequests } = useNotificationStream();if (verificationRequests.length === 0) return null;diff --git a/skyvern-frontend/src/hooks/useVerificationCodeAlert.ts b/skyvern-frontend/src/hooks/useVerificationCodeAlert.tsindex 8fa6df206..3fff5389f 100644--- a/skyvern-frontend/src/hooks/useVerificationCodeAlert.ts+++ b/skyvern-frontend/src/hooks/useVerificationCodeAlert.ts@@ -1,7 +1,6 @@import { useState, useEffect, useRef, createElement } from "react";import { toast } from "@/components/ui/use-toast";import { VerificationToastContent } from "@/components/VerificationToast";-import { enable2faNotifications } from "@/util/env";/** How long (minutes) before we consider the 2FA request timed out */const VERIFICATION_TIMEOUT_MINS = 15;@@ -82,7 +81,6 @@ function useVerificationCodeAlert({// Browser notification + in-app toast (fire once per waiting transition)useEffect(() => {- if (!enable2faNotifications) return;if (!isWaitingForCode || notifiedTags.has(notificationTag)) return;notifiedTags.add(notificationTag);diff --git a/skyvern-frontend/src/routes/root/RootLayout.tsx b/skyvern-frontend/src/routes/root/RootLayout.tsxindex d97a14518..2f1b726e2 100644--- a/skyvern-frontend/src/routes/root/RootLayout.tsx+++ b/skyvern-frontend/src/routes/root/RootLayout.tsx@@ -7,6 +7,7 @@ import { Sidebar } from "./Sidebar";import { useDebugStore } from "@/store/useDebugStore";import { GlobalNotificationListener } from "@/components/GlobalNotificationListener";import { SelfHealApiKeyBanner } from "@/components/SelfHealApiKeyBanner";+import { enable2faNotifications } from "@/util/env.ts";function RootLayout() {const collapsed = useSidebarStore((state) => state.collapsed);@@ -25,7 +26,7 @@ function RootLayout() {<div className="h-full w-full"><div className={horizontalPadding}><SelfHealApiKeyBanner />- <GlobalNotificationListener />+ {enable2faNotifications && <GlobalNotificationListener />}</div><Header /><main