From 27f5b1861899d810272f3b153b2fb8af1e9b5573 Mon Sep 17 00:00:00 2001 From: irumvanselme Date: Thu, 21 May 2026 09:24:42 +0200 Subject: [PATCH] chore(frontend): remove deprecated `screening.html` file and related scripts CORE-43 --- frontend-new/public/screening.html | 1161 ----------------- .../src/stories/ScreeningPage.stories.tsx | 138 -- iac/frontend/deploy_frontend.py | 2 +- 3 files changed, 1 insertion(+), 1300 deletions(-) delete mode 100644 frontend-new/public/screening.html delete mode 100644 frontend-new/src/stories/ScreeningPage.stories.tsx diff --git a/frontend-new/public/screening.html b/frontend-new/public/screening.html deleted file mode 100644 index ed9dcb84c..000000000 --- a/frontend-new/public/screening.html +++ /dev/null @@ -1,1161 +0,0 @@ - - - - - - - - - Compass | Screening - - - - - - - - - - - - - - - - - - - - -
Login credentials have been sent to your email.
-
-
-
-
- Compass Logo -
-
-
- -
-
- - - - - - - - - - - - -
-
- -
- - - - - - diff --git a/frontend-new/src/stories/ScreeningPage.stories.tsx b/frontend-new/src/stories/ScreeningPage.stories.tsx deleted file mode 100644 index 0f6a78231..000000000 --- a/frontend-new/src/stories/ScreeningPage.stories.tsx +++ /dev/null @@ -1,138 +0,0 @@ -import { Meta, StoryObj } from "@storybook/react"; -import React, { useEffect, useRef } from "react"; -import { action } from "@storybook/addon-actions"; - -interface ScreeningPageProps { - email?: string; - externalUserId?: string; - showSnackbar?: boolean; - autoLogin?: boolean; -} - -const ScreeningPage: React.FC = ({ - email = "test@example.com", - externalUserId = "test-user-123", - showSnackbar = false, - autoLogin = false, -}) => { - const iframeRef = useRef(null); - - useEffect(() => { - // Simulate the screening page behavior - if (showSnackbar) { - setTimeout(() => { - const snackbar = document.getElementById("snackbar-notification"); - if (snackbar) { - snackbar.className = "show"; - setTimeout(() => { - snackbar.className = snackbar.className.replace("show", ""); - }, 5000); - } - }, 2000); - } - - if (autoLogin) { - // Simulate auto-login behavior - setTimeout(() => { - action("Auto login triggered")(); - }, 1000); - } - }, [showSnackbar, autoLogin]); - - // Create the URL with query parameters - const screeningUrl = `/screening.html?email=${encodeURIComponent(email)}&externalUserId=${encodeURIComponent(externalUserId)}`; - - return ( -
-