Refactor: Remove unused imports across multiple frontend components (#6232)
* refactor: Remove unused imports across multiple frontend components * update outdated components --------- Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
45bac3714a
commit
b8346a0afa
50 changed files with 161 additions and 209 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
||||||
import React, { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
|
|
||||||
import { getNodeOutputColors } from "../../../helpers/get-node-output-colors";
|
import { getNodeOutputColors } from "../../../helpers/get-node-output-colors";
|
||||||
import { getNodeOutputColorsName } from "../../../helpers/get-node-output-colors-name";
|
import { getNodeOutputColorsName } from "../../../helpers/get-node-output-colors-name";
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
import ForwardedIconComponent from "../../components/common/genericIconComponent";
|
import ForwardedIconComponent from "../../components/common/genericIconComponent";
|
||||||
import Checkmark from "../../components/ui/checkmark";
|
|
||||||
import Loading from "../../components/ui/loading";
|
|
||||||
import Xmark from "../../components/ui/xmark";
|
import Xmark from "../../components/ui/xmark";
|
||||||
import { BuildStatus } from "../../constants/enums";
|
import { BuildStatus } from "../../constants/enums";
|
||||||
import { VertexBuildTypeAPI } from "../../types/api";
|
|
||||||
|
|
||||||
const useIconStatus = (buildStatus: BuildStatus | undefined) => {
|
const useIconStatus = (buildStatus: BuildStatus | undefined) => {
|
||||||
const conditionError = buildStatus === BuildStatus.ERROR;
|
const conditionError = buildStatus === BuildStatus.ERROR;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ import {
|
||||||
CardHeader,
|
CardHeader,
|
||||||
CardTitle,
|
CardTitle,
|
||||||
} from "../../ui/card";
|
} from "../../ui/card";
|
||||||
import Loading from "../../ui/loading";
|
|
||||||
import IconComponent from "../genericIconComponent";
|
import IconComponent from "../genericIconComponent";
|
||||||
import ShadTooltip from "../shadTooltipComponent";
|
import ShadTooltip from "../shadTooltipComponent";
|
||||||
import useDataEffect from "./hooks/use-data-effect";
|
import useDataEffect from "./hooks/use-data-effect";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import BaseModal from "../../../modals/baseModal";
|
import BaseModal from "../../../modals/baseModal";
|
||||||
import { fetchErrorComponentType } from "../../../types/components";
|
import { fetchErrorComponentType } from "../../../types/components";
|
||||||
import Loading from "../../ui/loading";
|
import Loading from "../../ui/loading";
|
||||||
import IconComponent from "../genericIconComponent";
|
|
||||||
|
|
||||||
export default function TimeoutErrorComponent({
|
export default function TimeoutErrorComponent({
|
||||||
message,
|
message,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import ForwardedIconComponent from "@/components/common/genericIconComponent";
|
|
||||||
import { useLogout } from "@/controllers/API/queries/auth";
|
import { useLogout } from "@/controllers/API/queries/auth";
|
||||||
import { CustomFeedbackDialog } from "@/customization/components/custom-feedback-dialog";
|
import { CustomFeedbackDialog } from "@/customization/components/custom-feedback-dialog";
|
||||||
import { CustomHeaderMenuItemsTitle } from "@/customization/components/custom-header-menu-items-title";
|
import { CustomHeaderMenuItemsTitle } from "@/customization/components/custom-header-menu-items-title";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { FlowType } from "@/types/flow";
|
import { FlowType } from "@/types/flow";
|
||||||
import { storeComponent } from "../../../../../types/store";
|
|
||||||
import { cn } from "../../../../../utils/utils";
|
import { cn } from "../../../../../utils/utils";
|
||||||
import ForwardedIconComponent from "../../../../common/genericIconComponent";
|
import ForwardedIconComponent from "../../../../common/genericIconComponent";
|
||||||
import { Card, CardHeader, CardTitle } from "../../../../ui/card";
|
import { Card, CardHeader, CardTitle } from "../../../../ui/card";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import { FlowType } from "@/types/flow";
|
||||||
import { useCallback } from "react";
|
import { useCallback } from "react";
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import useFlowsManagerStore from "../../../../stores/flowsManagerStore";
|
import useFlowsManagerStore from "../../../../stores/flowsManagerStore";
|
||||||
import { storeComponent } from "../../../../types/store";
|
|
||||||
import DragCardComponent from "../components/dragCardComponent";
|
import DragCardComponent from "../components/dragCardComponent";
|
||||||
|
|
||||||
const useDragStart = (data: FlowType) => {
|
const useDragStart = (data: FlowType) => {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import { getInputsAndOutputs } from "../../../utils/storeUtils";
|
||||||
import { cn } from "../../../utils/utils";
|
import { cn } from "../../../utils/utils";
|
||||||
import IconComponent from "../../common/genericIconComponent";
|
import IconComponent from "../../common/genericIconComponent";
|
||||||
import ShadTooltip from "../../common/shadTooltipComponent";
|
import ShadTooltip from "../../common/shadTooltipComponent";
|
||||||
import { Button } from "../../ui/button";
|
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardDescription,
|
CardDescription,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
||||||
import { tomorrow } from "react-syntax-highlighter/dist/cjs/styles/prism";
|
import { tomorrow } from "react-syntax-highlighter/dist/cjs/styles/prism";
|
||||||
import { useDarkStore } from "../../../stores/darkStore";
|
|
||||||
import IconComponent from "../../common/genericIconComponent";
|
import IconComponent from "../../common/genericIconComponent";
|
||||||
import { Button } from "../../ui/button";
|
import { Button } from "../../ui/button";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Input } from "../../../../ui/input";
|
import { Input } from "../../../../ui/input";
|
||||||
import { ButtonInputList } from "./components/button-input-list";
|
import { ButtonInputList } from "./components/button-input-list";
|
||||||
import { DropdownMenuInputList } from "./components/dropdown-menu";
|
|
||||||
|
|
||||||
import { GRADIENT_CLASS } from "@/constants/constants";
|
import { GRADIENT_CLASS } from "@/constants/constants";
|
||||||
import { cn } from "../../../../../utils/utils";
|
import { cn } from "../../../../../utils/utils";
|
||||||
|
|
@ -139,7 +138,7 @@ export default function InputListComponent({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/*
|
{/*
|
||||||
We will add this back in a future release
|
We will add this back in a future release
|
||||||
{!disabled && (
|
{!disabled && (
|
||||||
<DropdownMenuInputList
|
<DropdownMenuInputList
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import {
|
||||||
} from "@/utils/reactflowUtils";
|
} from "@/utils/reactflowUtils";
|
||||||
import { cn } from "@/utils/utils";
|
import { cn } from "@/utils/utils";
|
||||||
import { cloneDeep } from "lodash";
|
import { cloneDeep } from "lodash";
|
||||||
import React, { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import IconComponent from "../../../../common/genericIconComponent";
|
import IconComponent from "../../../../common/genericIconComponent";
|
||||||
|
|
||||||
const KeypairListComponent = ({
|
const KeypairListComponent = ({
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { PopoverAnchor } from "@radix-ui/react-popover";
|
|
||||||
import Fuse from "fuse.js";
|
import Fuse from "fuse.js";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { cn } from "../../../../../utils/utils";
|
import { cn } from "../../../../../utils/utils";
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import {
|
||||||
memo,
|
memo,
|
||||||
useCallback,
|
useCallback,
|
||||||
useContext,
|
useContext,
|
||||||
useEffect,
|
|
||||||
useId,
|
useId,
|
||||||
useMemo,
|
useMemo,
|
||||||
} from "react";
|
} from "react";
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import {
|
||||||
TargetAndTransition,
|
TargetAndTransition,
|
||||||
Variants,
|
Variants,
|
||||||
} from "framer-motion";
|
} from "framer-motion";
|
||||||
import React, { ReactElement } from "react";
|
import React from "react";
|
||||||
|
|
||||||
type PresetType = "blur" | "shake" | "scale" | "fade" | "slide";
|
type PresetType = "blur" | "shake" | "scale" | "fade" | "slide";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,11 @@ import { AxiosRequestConfig, AxiosResponse } from "axios";
|
||||||
import { BASE_URL_API } from "../../constants/constants";
|
import { BASE_URL_API } from "../../constants/constants";
|
||||||
import { api } from "../../controllers/API/api";
|
import { api } from "../../controllers/API/api";
|
||||||
import {
|
import {
|
||||||
Component,
|
|
||||||
VertexBuildTypeAPI,
|
VertexBuildTypeAPI,
|
||||||
VerticesOrderTypeAPI,
|
VerticesOrderTypeAPI,
|
||||||
} from "../../types/api/index";
|
} from "../../types/api/index";
|
||||||
import { FlowStyleType, FlowType } from "../../types/flow";
|
import { FlowStyleType, FlowType } from "../../types/flow";
|
||||||
import { StoreComponentResponse } from "../../types/store";
|
import { StoreComponentResponse } from "../../types/store";
|
||||||
import { FlowPoolType } from "../../types/zustand/flow";
|
|
||||||
|
|
||||||
const GITHUB_API_URL = "https://api.github.com";
|
const GITHUB_API_URL = "https://api.github.com";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
import {
|
import { resetPasswordType, useMutationFunctionType } from "@/types/api";
|
||||||
changeUser,
|
|
||||||
resetPasswordType,
|
|
||||||
useMutationFunctionType,
|
|
||||||
} from "@/types/api";
|
|
||||||
import { UseMutationResult } from "@tanstack/react-query";
|
import { UseMutationResult } from "@tanstack/react-query";
|
||||||
import { api } from "../../api";
|
import { api } from "../../api";
|
||||||
import { getURL } from "../../helpers/constants";
|
import { getURL } from "../../helpers/constants";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { LoginType, changeUser, useMutationFunctionType } from "@/types/api";
|
import { LoginType, useMutationFunctionType } from "@/types/api";
|
||||||
import { UseMutationResult } from "@tanstack/react-query";
|
import { UseMutationResult } from "@tanstack/react-query";
|
||||||
import { api } from "../../api";
|
import { api } from "../../api";
|
||||||
import { getURL } from "../../helpers/constants";
|
import { getURL } from "../../helpers/constants";
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
import { keepPreviousData } from "@tanstack/react-query";
|
import { useMutationFunctionType } from "../../../../types/api";
|
||||||
import {
|
|
||||||
useMutationFunctionType,
|
|
||||||
useQueryFunctionType,
|
|
||||||
} from "../../../../types/api";
|
|
||||||
import { api } from "../../api";
|
|
||||||
import { getURL } from "../../helpers/constants";
|
import { getURL } from "../../helpers/constants";
|
||||||
import { UseRequestProcessor } from "../../services/request-processor";
|
import { UseRequestProcessor } from "../../services/request-processor";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { useGlobalVariablesStore } from "@/stores/globalVariablesStore/globalVar
|
||||||
import getUnavailableFields from "@/stores/globalVariablesStore/utils/get-unavailable-fields";
|
import getUnavailableFields from "@/stores/globalVariablesStore/utils/get-unavailable-fields";
|
||||||
import { useMutationFunctionType } from "@/types/api";
|
import { useMutationFunctionType } from "@/types/api";
|
||||||
import { GlobalVariable } from "@/types/global_variables";
|
import { GlobalVariable } from "@/types/global_variables";
|
||||||
import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
import { UseMutationResult } from "@tanstack/react-query";
|
||||||
import { api } from "../../api";
|
import { api } from "../../api";
|
||||||
import { getURL } from "../../helpers/constants";
|
import { getURL } from "../../helpers/constants";
|
||||||
import { UseRequestProcessor } from "../../services/request-processor";
|
import { UseRequestProcessor } from "../../services/request-processor";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { useMutationFunctionType } from "@/types/api";
|
import { useMutationFunctionType } from "@/types/api";
|
||||||
import { GlobalVariable } from "@/types/global_variables";
|
|
||||||
import { UseMutationResult } from "@tanstack/react-query";
|
import { UseMutationResult } from "@tanstack/react-query";
|
||||||
import { api } from "../../api";
|
import { api } from "../../api";
|
||||||
import { getURL } from "../../helpers/constants";
|
import { getURL } from "../../helpers/constants";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { useGetRefreshFlows } from "@/controllers/API/queries/flows/use-get-refresh-flows";
|
|
||||||
import { createFileUpload } from "@/helpers/create-file-upload";
|
import { createFileUpload } from "@/helpers/create-file-upload";
|
||||||
import { getObjectsFromFilelist } from "@/helpers/get-objects-from-filelist";
|
import { getObjectsFromFilelist } from "@/helpers/get-objects-from-filelist";
|
||||||
import useFlowStore from "@/stores/flowStore";
|
import useFlowStore from "@/stores/flowStore";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
const ArXivIcon = (props) => {
|
const ArXivIcon = (props) => {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
const UpstashIcon = (props) => (
|
const UpstashIcon = (props) => (
|
||||||
<svg
|
<svg
|
||||||
width="256px"
|
width="256px"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
const YouTubeIcon = (props) => (
|
const YouTubeIcon = (props) => (
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import useFileSizeValidator from "@/shared/hooks/use-file-size-validator";
|
||||||
import useAlertStore from "@/stores/alertStore";
|
import useAlertStore from "@/stores/alertStore";
|
||||||
import useFlowStore from "@/stores/flowStore";
|
import useFlowStore from "@/stores/flowStore";
|
||||||
import { useUtilityStore } from "@/stores/utilityStore";
|
import { useUtilityStore } from "@/stores/utilityStore";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef } from "react";
|
||||||
import ShortUniqueId from "short-unique-id";
|
import ShortUniqueId from "short-unique-id";
|
||||||
import {
|
import {
|
||||||
ALLOWED_IMAGE_INPUT_EXTENSIONS,
|
ALLOWED_IMAGE_INPUT_EXTENSIONS,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { useState } from "react";
|
|
||||||
import IconComponent, {
|
import IconComponent, {
|
||||||
ForwardedIconComponent,
|
ForwardedIconComponent,
|
||||||
} from "../../../../../../components/common/genericIconComponent";
|
} from "../../../../../../components/common/genericIconComponent";
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ import JsonView from "react18-json-view";
|
||||||
import "react18-json-view/src/dark.css";
|
import "react18-json-view/src/dark.css";
|
||||||
import "react18-json-view/src/style.css";
|
import "react18-json-view/src/style.css";
|
||||||
import IconComponent from "../../components/common/genericIconComponent";
|
import IconComponent from "../../components/common/genericIconComponent";
|
||||||
import { CODE_DICT_DIALOG_SUBTITLE } from "../../constants/constants";
|
|
||||||
import { useDarkStore } from "../../stores/darkStore";
|
import { useDarkStore } from "../../stores/darkStore";
|
||||||
import BaseModal from "../baseModal";
|
import BaseModal from "../baseModal";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { track } from "../../../../customization/utils/analytics";
|
import { track } from "../../../../customization/utils/analytics";
|
||||||
import useAddFlow from "../../../../hooks/flows/use-add-flow";
|
import useAddFlow from "../../../../hooks/flows/use-add-flow";
|
||||||
import useFlowsManagerStore from "../../../../stores/flowsManagerStore";
|
|
||||||
import { FlowType } from "../../../../types/flow";
|
import { FlowType } from "../../../../types/flow";
|
||||||
import { updateIds } from "../../../../utils/reactflowUtils";
|
import { updateIds } from "../../../../utils/reactflowUtils";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ import {
|
||||||
} from "../../../../components/ui/card";
|
} from "../../../../components/ui/card";
|
||||||
import { useFolderStore } from "../../../../stores/foldersStore";
|
import { useFolderStore } from "../../../../stores/foldersStore";
|
||||||
import { UndrawCardComponentProps } from "../../../../types/components";
|
import { UndrawCardComponentProps } from "../../../../types/components";
|
||||||
import { updateIds } from "../../../../utils/reactflowUtils";
|
|
||||||
import { useFlowCardClick } from "../hooks/use-redirect-flow-card-click";
|
import { useFlowCardClick } from "../hooks/use-redirect-flow-card-click";
|
||||||
|
|
||||||
export default function UndrawCardComponent({
|
export default function UndrawCardComponent({
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
import {
|
import { ENABLE_INTEGRATIONS } from "@/customization/feature-flags";
|
||||||
ENABLE_INTEGRATIONS,
|
|
||||||
ENABLE_MVPS,
|
|
||||||
} from "@/customization/feature-flags";
|
|
||||||
import { useStoreStore } from "@/stores/storeStore";
|
import { useStoreStore } from "@/stores/storeStore";
|
||||||
import { cloneDeep } from "lodash";
|
import { cloneDeep } from "lodash";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import React from "react";
|
|
||||||
const NoResultsMessage = ({
|
const NoResultsMessage = ({
|
||||||
onClearSearch,
|
onClearSearch,
|
||||||
message = "No components found.",
|
message = "No components found.",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { Switch } from "@/components/ui/switch";
|
import { Switch } from "@/components/ui/switch";
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
const FeatureToggles = ({
|
const FeatureToggles = ({
|
||||||
showBeta,
|
showBeta,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import ForwardedIconComponent from "@/components/common/genericIconComponent";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { SidebarMenuButton } from "@/components/ui/sidebar";
|
import { SidebarMenuButton } from "@/components/ui/sidebar";
|
||||||
import { CustomLink } from "@/customization/components/custom-link";
|
import { CustomLink } from "@/customization/components/custom-link";
|
||||||
import React from "react";
|
|
||||||
|
|
||||||
const SidebarMenuButtons = ({
|
const SidebarMenuButtons = ({
|
||||||
hasStore = false,
|
hasStore = false,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { APIDataType } from "@/types/api";
|
import { APIDataType } from "@/types/api";
|
||||||
import { FuseResult } from "fuse.js";
|
|
||||||
|
|
||||||
export const filteredDataFn = (
|
export const filteredDataFn = (
|
||||||
data: APIDataType,
|
data: APIDataType,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { APIDataType } from "@/types/api";
|
import { APIDataType } from "@/types/api";
|
||||||
import { normalizeString } from "./normalize-string";
|
|
||||||
import { searchInMetadata } from "./search-on-metadata";
|
import { searchInMetadata } from "./search-on-metadata";
|
||||||
|
|
||||||
export const traditionalSearchMetadata = (
|
export const traditionalSearchMetadata = (
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import EditNodeModal from "@/modals/editNodeModal";
|
||||||
import ShareModal from "@/modals/shareModal";
|
import ShareModal from "@/modals/shareModal";
|
||||||
import { APIClassType } from "@/types/api";
|
import { APIClassType } from "@/types/api";
|
||||||
import { FlowType } from "@/types/flow";
|
import { FlowType } from "@/types/flow";
|
||||||
import React, { memo } from "react";
|
import { memo } from "react";
|
||||||
|
|
||||||
interface ToolbarModalsProps {
|
interface ToolbarModalsProps {
|
||||||
// Modal visibility states
|
// Modal visibility states
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import ForwardedIconComponent from "../../../../../components/common/genericIconComponent";
|
import ForwardedIconComponent from "../../../../../components/common/genericIconComponent";
|
||||||
import RenderIcons from "../../../../../components/common/renderIconComponent";
|
import RenderIcons from "../../../../../components/common/renderIconComponent";
|
||||||
import { IS_MAC } from "../../../../../constants/constants";
|
|
||||||
import { toolbarSelectItemProps } from "../../../../../types/components";
|
import { toolbarSelectItemProps } from "../../../../../types/components";
|
||||||
|
|
||||||
export default function ToolbarSelectItem({
|
export default function ToolbarSelectItem({
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { useGetFolderQuery } from "@/controllers/API/queries/folders/use-get-fol
|
||||||
import useDeleteFlow from "@/hooks/flows/use-delete-flow";
|
import useDeleteFlow from "@/hooks/flows/use-delete-flow";
|
||||||
import { useFolderStore } from "@/stores/foldersStore";
|
import { useFolderStore } from "@/stores/foldersStore";
|
||||||
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useState } from "react";
|
||||||
import { useLocation, useParams } from "react-router-dom";
|
import { useLocation, useParams } from "react-router-dom";
|
||||||
import ComponentsComponent from "../componentsComponent";
|
import ComponentsComponent from "../componentsComponent";
|
||||||
import HeaderTabsSearchComponent from "./components/headerTabsSearchComponent";
|
import HeaderTabsSearchComponent from "./components/headerTabsSearchComponent";
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import {
|
||||||
useGetApiKeysQuery,
|
useGetApiKeysQuery,
|
||||||
} from "@/controllers/API/queries/api-keys";
|
} from "@/controllers/API/queries/api-keys";
|
||||||
import { SelectionChangedEvent } from "ag-grid-community";
|
import { SelectionChangedEvent } from "ag-grid-community";
|
||||||
import { useContext, useEffect, useRef, useState } from "react";
|
import { useContext, useEffect, useState } from "react";
|
||||||
import TableComponent from "../../../../components/core/parameterRenderComponent/components/tableComponent";
|
import TableComponent from "../../../../components/core/parameterRenderComponent/components/tableComponent";
|
||||||
import { AuthContext } from "../../../../contexts/authContext";
|
import { AuthContext } from "../../../../contexts/authContext";
|
||||||
import useAlertStore from "../../../../stores/alertStore";
|
import useAlertStore from "../../../../stores/alertStore";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
import { useGetRefreshFlows } from "@/controllers/API/queries/flows/use-get-refresh-flows";
|
|
||||||
import { useCustomNavigate } from "@/customization/hooks/use-custom-navigate";
|
import { useCustomNavigate } from "@/customization/hooks/use-custom-navigate";
|
||||||
import { useTypesStore } from "@/stores/typesStore";
|
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { useParams } from "react-router-dom";
|
import { useParams } from "react-router-dom";
|
||||||
import useFlowsManagerStore from "../../stores/flowsManagerStore";
|
import useFlowsManagerStore from "../../stores/flowsManagerStore";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import { FieldParserType, FieldValidatorType } from "../api";
|
|
||||||
|
|
||||||
export type getCodesObjProps = {
|
export type getCodesObjProps = {
|
||||||
runCurlCode: string;
|
runCurlCode: string;
|
||||||
webhookCurlCode: string;
|
webhookCurlCode: string;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { FlowType } from "@/types/flow";
|
|
||||||
import { FolderType } from "../../../pages/MainPage/entities";
|
import { FolderType } from "../../../pages/MainPage/entities";
|
||||||
|
|
||||||
export type FoldersStoreType = {
|
export type FoldersStoreType = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { ColDef, ColGroupDef } from "ag-grid-community";
|
|
||||||
import { Message } from "../../messages";
|
import { Message } from "../../messages";
|
||||||
|
|
||||||
export type MessagesStoreType = {
|
export type MessagesStoreType = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import { expect, Page, test } from "@playwright/test";
|
||||||
import * as dotenv from "dotenv";
|
import * as dotenv from "dotenv";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
import { evaluateReactStateChanges } from "../../utils/evaluate-input-react-state-changes";
|
|
||||||
import { initialGPTsetup } from "../../utils/initialGPTsetup";
|
import { initialGPTsetup } from "../../utils/initialGPTsetup";
|
||||||
|
|
||||||
test(
|
test(
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { expect, test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
import { adjustScreenView } from "../../utils/adjust-screen-view";
|
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
|
|
||||||
test(
|
test(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import { expect, test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
import { readFileSync } from "fs";
|
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
import { simulateDragAndDrop } from "../../utils/simulate-drag-and-drop";
|
|
||||||
test(
|
test(
|
||||||
"user should be able to edit flow name by clicking on the header or on the main page",
|
"user should be able to edit flow name by clicking on the header or on the main page",
|
||||||
{ tag: ["@release"] },
|
{ tag: ["@release"] },
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { expect, Page, test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
import { adjustScreenView } from "../../utils/adjust-screen-view";
|
import { adjustScreenView } from "../../utils/adjust-screen-view";
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { expect, test } from "@playwright/test";
|
import { test } from "@playwright/test";
|
||||||
import * as dotenv from "dotenv";
|
import * as dotenv from "dotenv";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { expect, Page, test } from "@playwright/test";
|
import { expect, test } from "@playwright/test";
|
||||||
import * as dotenv from "dotenv";
|
import * as dotenv from "dotenv";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue