From 01de9efef24627e1ec52a59191290aadbc91962c Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 5 Nov 2024 14:06:20 -0300 Subject: [PATCH] fix: Minor fixes and feature flag removal (#4409) * minor fixes in playground * remove feature flag * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- src/frontend/src/App.css | 3 +++ src/frontend/src/components/cardComponent/index.tsx | 4 ---- src/frontend/src/components/flowToolbarComponent/index.tsx | 7 ++----- src/frontend/src/components/storeCardComponent/index.tsx | 2 -- src/frontend/src/components/ui/textAnimation.tsx | 2 +- src/frontend/src/customization/feature-flags.ts | 1 - src/frontend/src/modals/IOModal/newModal.tsx | 3 ++- src/frontend/src/pages/Playground/index.tsx | 5 +---- 8 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/frontend/src/App.css b/src/frontend/src/App.css index 602a82815f5f..9accedaaef6f 100644 --- a/src/frontend/src/App.css +++ b/src/frontend/src/App.css @@ -194,3 +194,6 @@ body { border-radius: 20% !important; } +code { + font-family: var(--font-mono)s !important; +} \ No newline at end of file diff --git a/src/frontend/src/components/cardComponent/index.tsx b/src/frontend/src/components/cardComponent/index.tsx index a92aa1e232be..6e1edbfc2339 100644 --- a/src/frontend/src/components/cardComponent/index.tsx +++ b/src/frontend/src/components/cardComponent/index.tsx @@ -1,9 +1,6 @@ -import { ENABLE_NEW_IO_MODAL } from "@/customization/feature-flags"; import { track } from "@/customization/utils/analytics"; import { useState } from "react"; import { Control } from "react-hook-form"; -import IOModalOld from "../../modals/IOModal"; -import IOModalNew from "../../modals/IOModal/newModal"; import useAlertStore from "../../stores/alertStore"; import useFlowsManagerStore from "../../stores/flowsManagerStore"; import { FlowType } from "../../types/flow"; @@ -24,7 +21,6 @@ import { FormControl, FormField } from "../ui/form"; import Loading from "../ui/loading"; import useDragStart from "./hooks/use-on-drag-start"; import { convertTestName } from "./utils/convert-test-name"; -const IOModal = ENABLE_NEW_IO_MODAL ? IOModalNew : IOModalOld; export default function CollectionCardComponent({ data, diff --git a/src/frontend/src/components/flowToolbarComponent/index.tsx b/src/frontend/src/components/flowToolbarComponent/index.tsx index 900331eae6f5..ece682615fdb 100644 --- a/src/frontend/src/components/flowToolbarComponent/index.tsx +++ b/src/frontend/src/components/flowToolbarComponent/index.tsx @@ -1,12 +1,11 @@ import ShadTooltip from "@/components/shadTooltipComponent"; -import { ENABLE_API, ENABLE_NEW_IO_MODAL } from "@/customization/feature-flags"; +import { ENABLE_API } from "@/customization/feature-flags"; import { track } from "@/customization/utils/analytics"; +import IOModal from "@/modals/IOModal/newModal"; import { useEffect, useMemo, useState } from "react"; import { useHotkeys } from "react-hotkeys-hook"; import { Panel } from "reactflow"; import ApiModal from "../../modals/apiModal"; -import IOModalOld from "../../modals/IOModal"; -import IOModalNew from "../../modals/IOModal/newModal"; import ShareModal from "../../modals/shareModal"; import useFlowStore from "../../stores/flowStore"; import { useShortcutsStore } from "../../stores/shortcuts"; @@ -14,8 +13,6 @@ import { useStoreStore } from "../../stores/storeStore"; import { classNames, isThereModal } from "../../utils/utils"; import ForwardedIconComponent from "../genericIconComponent"; -const IOModal = ENABLE_NEW_IO_MODAL ? IOModalNew : IOModalOld; - export default function FlowToolbar(): JSX.Element { const preventDefault = true; const [open, setOpen] = useState(false); diff --git a/src/frontend/src/components/storeCardComponent/index.tsx b/src/frontend/src/components/storeCardComponent/index.tsx index ef349810e531..49bc07288218 100644 --- a/src/frontend/src/components/storeCardComponent/index.tsx +++ b/src/frontend/src/components/storeCardComponent/index.tsx @@ -1,5 +1,4 @@ import { usePostLikeComponent } from "@/controllers/API/queries/store"; -import { ENABLE_NEW_IO_MODAL } from "@/customization/feature-flags"; import { useState } from "react"; import { getComponent } from "../../controllers/API"; import IOModalOld from "../../modals/IOModal"; @@ -27,7 +26,6 @@ import Loading from "../ui/loading"; import useDataEffect from "./hooks/use-data-effect"; import useInstallComponent from "./hooks/use-handle-install"; import { convertTestName } from "./utils/convert-test-name"; -const IOModal = ENABLE_NEW_IO_MODAL ? IOModalNew : IOModalOld; export default function StoreCardComponent({ data, diff --git a/src/frontend/src/components/ui/textAnimation.tsx b/src/frontend/src/components/ui/textAnimation.tsx index a57089647035..6b79ff054da8 100644 --- a/src/frontend/src/components/ui/textAnimation.tsx +++ b/src/frontend/src/components/ui/textAnimation.tsx @@ -37,7 +37,7 @@ const defaultContainerVariants: Variants = { visible: { opacity: 1, transition: { - staggerChildren: 0.05, + staggerChildren: 0.025, }, }, exit: { diff --git a/src/frontend/src/customization/feature-flags.ts b/src/frontend/src/customization/feature-flags.ts index ed028fbcb416..aa1f04f72be1 100644 --- a/src/frontend/src/customization/feature-flags.ts +++ b/src/frontend/src/customization/feature-flags.ts @@ -7,7 +7,6 @@ export const ENABLE_BRANDING = true; export const ENABLE_MVPS = false; export const ENABLE_CUSTOM_PARAM = false; export const ENABLE_INTEGRATIONS = false; -export const ENABLE_NEW_IO_MODAL = true; export const ENABLE_NEW_LOGO = false; export const ENABLE_DATASTAX_LANGFLOW = false; export const ENABLE_HOMEPAGE = true; diff --git a/src/frontend/src/modals/IOModal/newModal.tsx b/src/frontend/src/modals/IOModal/newModal.tsx index 964b00ee9c32..22cdb39cc208 100644 --- a/src/frontend/src/modals/IOModal/newModal.tsx +++ b/src/frontend/src/modals/IOModal/newModal.tsx @@ -307,7 +307,7 @@ export default function IOModal({