This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4e0aa267507 Remove link to the legacy UI (#47078)
4e0aa267507 is described below
commit 4e0aa2675071a924e9c122535d38be6a9ccfd299
Author: Jed Cunningham <[email protected]>
AuthorDate: Tue Feb 25 12:52:44 2025 -0700
Remove link to the legacy UI (#47078)
We are in the process of ripping out the legacy UI, so now is the time
to stop directing folks back 🎉
---
airflow/ui/.env.example | 1 -
airflow/ui/src/layouts/Nav/Nav.tsx | 7 +------
airflow/ui/src/vite-env.d.ts | 4 ----
3 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/airflow/ui/.env.example b/airflow/ui/.env.example
index 632f8d977a0..65e8568b68a 100644
--- a/airflow/ui/.env.example
+++ b/airflow/ui/.env.example
@@ -19,4 +19,3 @@
# This is an example. You should make your own `.env.local` file for
development
-VITE_LEGACY_API_URL="http://localhost:28080/home"
diff --git a/airflow/ui/src/layouts/Nav/Nav.tsx
b/airflow/ui/src/layouts/Nav/Nav.tsx
index d182ce6f391..7bb520db878 100644
--- a/airflow/ui/src/layouts/Nav/Nav.tsx
+++ b/airflow/ui/src/layouts/Nav/Nav.tsx
@@ -17,7 +17,7 @@
* under the License.
*/
import { Box, Flex, VStack, Link } from "@chakra-ui/react";
-import { FiCornerUpLeft, FiDatabase, FiHome } from "react-icons/fi";
+import { FiDatabase, FiHome } from "react-icons/fi";
import { useVersionServiceGetVersion } from "openapi/queries";
import { AirflowPin } from "src/assets/AirflowPin";
@@ -56,11 +56,6 @@ export const Nav = () => {
<AdminButton />
</Flex>
<Flex flexDir="column">
- <NavButton
- icon={<FiCornerUpLeft size="1.75rem" />}
- title="Legacy UI"
- to={import.meta.env.VITE_LEGACY_API_URL ||
"http://localhost:28080/home"}
- />
<DocsButton />
<UserSettingsButton />
<Link
diff --git a/airflow/ui/src/vite-env.d.ts b/airflow/ui/src/vite-env.d.ts
index 8a62dd17206..270777f16fb 100644
--- a/airflow/ui/src/vite-env.d.ts
+++ b/airflow/ui/src/vite-env.d.ts
@@ -20,10 +20,6 @@
/// <reference types="vite/client" />
-interface ImportMetaEnv {
- readonly VITE_LEGACY_API_URL: string;
-}
-
interface ImportMeta {
readonly env: ImportMetaEnv;
}