Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit a023b8d

Browse files
committed
style(Flows): change space between arrow node and stage node. Refactor files architecture for workflows entire feature.
Signed-off-by: reslene <[email protected]>
1 parent 27b81bf commit a023b8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+78
-78
lines changed

app/routes/instances/$instanceId.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ import {
2626
} from '@numaryhq/storybook';
2727

2828
import { getRoute, WORKFLOW_ROUTE } from '~/src/components/Layout/routes';
29+
import CustomNode from '~/src/components/Workflows/CustomNode';
30+
import ArrowNode from '~/src/components/Workflows/CustomNode/ArrowNode';
31+
import ActivitiesWrapper from '~/src/components/Workflows/histories/activities/ActivitiesWrapper';
32+
import {
33+
logsFactory,
34+
OrchestrationFactoryLog,
35+
} from '~/src/components/Workflows/logs/factory';
2936
import ComponentErrorBoundary from '~/src/components/Wrappers/ComponentErrorBoundary';
3037
import IconTitlePage from '~/src/components/Wrappers/IconTitlePage';
3138
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
@@ -35,13 +42,6 @@ import {
3542
orchestrationInstanceStatusIconMap,
3643
} from '~/src/components/Wrappers/StatusChip/maps';
3744
import Table from '~/src/components/Wrappers/Table';
38-
import CustomNode from '~/src/components/Wrappers/Workflows/CustomNode';
39-
import ArrowNode from '~/src/components/Wrappers/Workflows/CustomNode/ArrowNode';
40-
import ActivitiesWrapper from '~/src/components/Wrappers/Workflows/histories/activities/ActivitiesWrapper';
41-
import {
42-
logsFactory,
43-
OrchestrationFactoryLog,
44-
} from '~/src/components/Wrappers/Workflows/logs/factory';
4545
import {
4646
FlowInstance,
4747
OrchestrationInstanceStatuses,
@@ -146,7 +146,7 @@ export default function Index() {
146146

147147
const stagesNodes = instance.stages
148148
.map((stage: any, index: number) => {
149-
x = x + index === 0 ? initPosInstance : x + 400;
149+
x = x + index === 0 ? initPosInstance : x + 350;
150150
if (isEmpty(stage.error) && stage.name) {
151151
const nodes = [
152152
{
@@ -169,7 +169,7 @@ export default function Index() {
169169
draggable: false,
170170
selectable: false,
171171
id: `arrow-node-${index}`,
172-
position: { x: x + 210, y: 100 },
172+
position: { x: x + 185, y: 100 },
173173
} as any);
174174
}
175175
if (stage.activities.length > 0) {

app/routes/workflows/$workflowId.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import invariant from 'tiny-invariant';
1212

1313
import { Chip, Date, Page, Row, SectionWrapper } from '@numaryhq/storybook';
1414

15+
import CustomNode from '~/src/components/Workflows/CustomNode';
16+
import ArrowNode from '~/src/components/Workflows/CustomNode/ArrowNode';
1517
import ComponentErrorBoundary from '~/src/components/Wrappers/ComponentErrorBoundary';
1618
import IconTitlePage from '~/src/components/Wrappers/IconTitlePage';
1719
import InstanceList from '~/src/components/Wrappers/Lists/InstanceList';
1820
import Table from '~/src/components/Wrappers/Table';
19-
import CustomNode from '~/src/components/Wrappers/Workflows/CustomNode';
20-
import ArrowNode from '~/src/components/Wrappers/Workflows/CustomNode/ArrowNode';
2121
import { FlowWorkflow } from '~/src/types/orchestration';
2222
import { API_ORCHESTRATION } from '~/src/utils/api';
2323
import { createApiClient } from '~/src/utils/api.server';
@@ -68,7 +68,7 @@ export default function Index() {
6868
const initPos = workflow.config.stages.length === 1 ? 0 : -200;
6969
const nodes = workflow.config.stages
7070
.map((stage: any, index: number) => {
71-
x = x + index === 0 ? initPos : x + 360;
71+
x = x + index === 0 ? initPos : x + 300;
7272

7373
const nodes = [
7474
{
@@ -89,7 +89,7 @@ export default function Index() {
8989
draggable: false,
9090
selectable: false,
9191
id: `arrow-node-${index}`,
92-
position: { x: x + 190, y: 250 },
92+
position: { x: x + 160, y: 250 },
9393
} as any);
9494
}
9595

app/src/components/Wrappers/Workflows/CustomNode/ArrowNode/ArrowNode.tsx app/src/components/Workflows/CustomNode/ArrowNode/ArrowNode.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const ArrowNode: FunctionComponent<ArrowNodeProps> = () => (
1010
<Box
1111
sx={{
1212
borderBottom: ({ palette }) => `1px solid ${palette.neutral[400]}`,
13-
width: 110,
13+
width: 60,
1414
}}
1515
/>
1616
<ArrowRight
1717
sx={{
1818
position: 'absolute',
1919
top: '-11px',
2020
zIndex: 9,
21-
left: '95px',
21+
left: '46px',
2222
color: ({ palette }) => palette.neutral[500],
2323
}}
2424
/>

app/src/components/Wrappers/Workflows/CustomNode/CustomNode.tsx app/src/components/Workflows/CustomNode/CustomNode.tsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ import { Handle, Position } from 'reactflow';
66

77
import { CustomNodeProps } from './types';
88

9-
import CreateTransaction from '~/src/components/Wrappers/Workflows/histories/activities/CreateTransaction';
10-
import CreditWallet from '~/src/components/Wrappers/Workflows/histories/activities/CreditWallet';
11-
import DebitWallet from '~/src/components/Wrappers/Workflows/histories/activities/DebitWallet';
12-
import GetAccount from '~/src/components/Wrappers/Workflows/histories/activities/GetAccount';
13-
import GetPayment from '~/src/components/Wrappers/Workflows/histories/activities/GetPayment';
14-
import GetWallet from '~/src/components/Wrappers/Workflows/histories/activities/GetWallet';
15-
import RevertTransaction from '~/src/components/Wrappers/Workflows/histories/activities/RevertTransaction';
16-
import StripeTransfer from '~/src/components/Wrappers/Workflows/histories/activities/StripeTransfer';
17-
import RunSend from '~/src/components/Wrappers/Workflows/histories/RunSend';
18-
import DelayStage from '~/src/components/Wrappers/Workflows/stages/DelayStage';
19-
import SendStage from '~/src/components/Wrappers/Workflows/stages/SendStage';
20-
import WaitEventStage from '~/src/components/Wrappers/Workflows/stages/WaitEventStage/WaitEventStage';
9+
import CreateTransaction from '~/src/components/Workflows/histories/activities/CreateTransaction';
10+
import CreditWallet from '~/src/components/Workflows/histories/activities/CreditWallet';
11+
import DebitWallet from '~/src/components/Workflows/histories/activities/DebitWallet';
12+
import GetAccount from '~/src/components/Workflows/histories/activities/GetAccount';
13+
import GetPayment from '~/src/components/Workflows/histories/activities/GetPayment';
14+
import GetWallet from '~/src/components/Workflows/histories/activities/GetWallet';
15+
import RevertTransaction from '~/src/components/Workflows/histories/activities/RevertTransaction';
16+
import StripeTransfer from '~/src/components/Workflows/histories/activities/StripeTransfer';
17+
import RunSend from '~/src/components/Workflows/histories/RunSend';
18+
import DelayStage from '~/src/components/Workflows/stages/DelayStage';
19+
import SendStage from '~/src/components/Workflows/stages/SendStage';
20+
import WaitEventStage from '~/src/components/Workflows/stages/WaitEventStage/WaitEventStage';
2121
import {
2222
OrchestrationRunHistories,
2323
OrchestrationStages,

app/src/components/Wrappers/Workflows/CustomNode/ErrorBox/ErrorBox.tsx app/src/components/Workflows/CustomNode/ErrorBox/ErrorBox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Alert, Box, Typography } from '@mui/material';
44
import { isEmpty } from 'lodash';
55
import { useTranslation } from 'react-i18next';
66

7-
import { ErrorBoxProps } from '~/src/components/Wrappers/Workflows/CustomNode/ErrorBox/types';
7+
import { ErrorBoxProps } from '~/src/components/Workflows/CustomNode/ErrorBox/types';
88

99
const ErrorBox: FunctionComponent<ErrorBoxProps> = ({ error }) => {
1010
const { t } = useTranslation();

app/src/components/Wrappers/Workflows/CustomNode/NodeTitle/NodeTitle.tsx app/src/components/Workflows/CustomNode/NodeTitle/NodeTitle.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Box, Typography } from '@mui/material';
55

66
import { LoadingButton } from '@numaryhq/storybook';
77

8-
import { NodeTitleProps } from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle/types';
8+
import { NodeTitleProps } from '~/src/components/Workflows/CustomNode/NodeTitle/types';
99
import { useToggle } from '~/src/hooks/useToggle';
1010

1111
const NodeTitle: FunctionComponent<NodeTitleProps> = ({

app/src/components/Wrappers/Workflows/CustomNode/SourceDestinationBox/SourceDestinationBox.tsx app/src/components/Workflows/CustomNode/SourceDestinationBox/SourceDestinationBox.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import {
1515
PAYMENT_ROUTE,
1616
WALLET_ROUTE,
1717
} from '~/src/components/Layout/routes';
18-
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
1918
import {
2019
chipContainer,
2120
containerSx,
2221
getPlaceholder,
2322
typoSx,
24-
} from '~/src/components/Wrappers/Workflows/stages/utils';
23+
} from '~/src/components/Workflows/stages/utils';
24+
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
2525
import {
2626
OrchestrationStageInput,
2727
OrchestrationStageInputAccount,

app/src/components/Wrappers/Workflows/histories/RunSend/RunSend.tsx app/src/components/Workflows/histories/RunSend/RunSend.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import { RunSendProps } from './types';
88

99
import { Date } from '@numaryhq/storybook';
1010

11-
import ErrorBox from '~/src/components/Wrappers/Workflows/CustomNode/ErrorBox';
12-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
13-
import SourceDestinationBox from '~/src/components/Wrappers/Workflows/CustomNode/SourceDestinationBox';
11+
import ErrorBox from '~/src/components/Workflows/CustomNode/ErrorBox';
12+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
13+
import SourceDestinationBox from '~/src/components/Workflows/CustomNode/SourceDestinationBox';
1414
import {
1515
chipContainer,
1616
containerSx,
1717
getPlaceholder,
1818
placeholderSx,
19-
} from '~/src/components/Wrappers/Workflows/stages/utils';
19+
} from '~/src/components/Workflows/stages/utils';
2020

2121
const RunSend: FunctionComponent<RunSendProps> = ({
2222
startedAt,

app/src/components/Wrappers/Workflows/histories/activities/ActivitiesWrapper/ActivitiesWrapper.tsx app/src/components/Workflows/histories/activities/ActivitiesWrapper/ActivitiesWrapper.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { Handle, Position } from 'reactflow';
66

77
import { ActivitiesWrapperProps } from './types';
88

9-
import CustomNode from '~/src/components/Wrappers/Workflows/CustomNode/CustomNode';
10-
import SequentialNode from '~/src/components/Wrappers/Workflows/CustomNode/SequentialNode/SequentialNode';
9+
import CustomNode from '~/src/components/Workflows/CustomNode/CustomNode';
10+
import SequentialNode from '~/src/components/Workflows/CustomNode/SequentialNode/SequentialNode';
1111

1212
const ActivitiesWrapper: FunctionComponent<ActivitiesWrapperProps> = ({
1313
data: { details },

app/src/components/Wrappers/Workflows/histories/activities/CreateTransaction/CreateTransaction.tsx app/src/components/Workflows/histories/activities/CreateTransaction/CreateTransaction.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import { useTranslation } from 'react-i18next';
88
import { Chip, CopyPasteTooltip, Date, JsonViewer } from '@numaryhq/storybook';
99

1010
import { getLedgerTransactionDetailsRoute } from '~/src/components/Layout/routes';
11-
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
12-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
13-
import { CreateTransactionProps } from '~/src/components/Wrappers/Workflows/histories/activities/CreateTransaction/types';
11+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
12+
import { CreateTransactionProps } from '~/src/components/Workflows/histories/activities/CreateTransaction/types';
1413
import {
1514
chipContainer,
1615
containerSx,
1716
getPlaceholder,
1817
jsonContainer,
1918
placeholderSx,
2019
typoSx,
21-
} from '~/src/components/Wrappers/Workflows/stages/utils';
20+
} from '~/src/components/Workflows/stages/utils';
21+
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
2222
import { useToggle } from '~/src/hooks/useToggle';
2323

2424
const CreateTransaction: FunctionComponent<CreateTransactionProps> = ({

app/src/components/Wrappers/Workflows/histories/activities/CreditWallet/CreditWallet.tsx app/src/components/Workflows/histories/activities/CreditWallet/CreditWallet.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import { useTranslation } from 'react-i18next';
77

88
import { Chip, JsonViewer } from '@numaryhq/storybook';
99

10-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
11-
import { CreditWalletProps } from '~/src/components/Wrappers/Workflows/histories/activities/CreditWallet/types';
10+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
11+
import { CreditWalletProps } from '~/src/components/Workflows/histories/activities/CreditWallet/types';
1212
import {
1313
chipContainer,
1414
containerSx,
1515
getPlaceholder,
1616
jsonContainer,
1717
typoSx,
18-
} from '~/src/components/Wrappers/Workflows/stages/utils';
18+
} from '~/src/components/Workflows/stages/utils';
1919
import { useToggle } from '~/src/hooks/useToggle';
2020

2121
const CreditWallet: FunctionComponent<CreditWalletProps> = ({

app/src/components/Wrappers/Workflows/histories/activities/DebitWallet/DebitWallet.tsx app/src/components/Workflows/histories/activities/DebitWallet/DebitWallet.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { useTranslation } from 'react-i18next';
66

77
import { Chip } from '@numaryhq/storybook';
88

9-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
10-
import { DebitWalletProps } from '~/src/components/Wrappers/Workflows/histories/activities/DebitWallet/types';
9+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
10+
import { DebitWalletProps } from '~/src/components/Workflows/histories/activities/DebitWallet/types';
1111
import {
1212
chipContainer,
1313
containerSx,
1414
getPlaceholder,
1515
typoSx,
16-
} from '~/src/components/Wrappers/Workflows/stages/utils';
16+
} from '~/src/components/Workflows/stages/utils';
1717
import { useToggle } from '~/src/hooks/useToggle';
1818

1919
const DebitWallet: FunctionComponent<DebitWalletProps> = ({ amount }) => {

app/src/components/Wrappers/Workflows/histories/activities/GetAccount/GetAccount.tsx app/src/components/Workflows/histories/activities/GetAccount/GetAccount.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import { useTranslation } from 'react-i18next';
88
import { JsonViewer } from '@numaryhq/storybook';
99

1010
import { getLedgerAccountDetailsRoute } from '~/src/components/Layout/routes';
11-
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
12-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
13-
import { GetAccountProps } from '~/src/components/Wrappers/Workflows/histories/activities/GetAccount/types';
11+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
12+
import { GetAccountProps } from '~/src/components/Workflows/histories/activities/GetAccount/types';
1413
import {
1514
chipContainer,
1615
containerSx,
1716
getPlaceholder,
1817
jsonContainer,
1918
typoSx,
20-
} from '~/src/components/Wrappers/Workflows/stages/utils';
19+
} from '~/src/components/Workflows/stages/utils';
20+
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
2121
import { useToggle } from '~/src/hooks/useToggle';
2222

2323
const GetAccount: FunctionComponent<GetAccountProps> = ({

app/src/components/Wrappers/Workflows/histories/activities/GetPayment/GetPayment.tsx app/src/components/Workflows/histories/activities/GetPayment/GetPayment.tsx

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ import { useTranslation } from 'react-i18next';
77
import { Chip, Date, JsonViewer } from '@numaryhq/storybook';
88

99
import { getRoute, PAYMENT_ROUTE } from '~/src/components/Layout/routes';
10+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
11+
import { GetPaymentProps } from '~/src/components/Workflows/histories/activities/GetPayment/types';
12+
import {
13+
chipContainer,
14+
containerSx,
15+
getPlaceholder,
16+
jsonContainer,
17+
placeholderSx,
18+
typoSx,
19+
} from '~/src/components/Workflows/stages/utils';
1020
import { PaymentSchemeChip } from '~/src/components/Wrappers/PaymentSchemeChip/PaymentSchemeChip';
1121
import ProviderPicture from '~/src/components/Wrappers/ProviderPicture';
1222
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
@@ -17,16 +27,6 @@ import {
1727
paymentTypeColorMap,
1828
paymentTypeIconMap,
1929
} from '~/src/components/Wrappers/StatusChip/maps';
20-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
21-
import { GetPaymentProps } from '~/src/components/Wrappers/Workflows/histories/activities/GetPayment/types';
22-
import {
23-
chipContainer,
24-
containerSx,
25-
getPlaceholder,
26-
jsonContainer,
27-
placeholderSx,
28-
typoSx,
29-
} from '~/src/components/Wrappers/Workflows/stages/utils';
3030
import { useToggle } from '~/src/hooks/useToggle';
3131

3232
const GetPayment: FunctionComponent<GetPaymentProps> = ({

app/src/components/Wrappers/Workflows/histories/activities/GetWallet/GetWallet.tsx app/src/components/Workflows/histories/activities/GetWallet/GetWallet.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ import {
1212
LEDGER_ROUTE,
1313
WALLET_ROUTE,
1414
} from '~/src/components/Layout/routes';
15-
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
16-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
17-
import { GetWalletProps } from '~/src/components/Wrappers/Workflows/histories/activities/GetWallet/types';
15+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
16+
import { GetWalletProps } from '~/src/components/Workflows/histories/activities/GetWallet/types';
1817
import {
1918
chipContainer,
2019
containerSx,
2120
getPlaceholder,
2221
jsonContainer,
2322
placeholderSx,
2423
typoSx,
25-
} from '~/src/components/Wrappers/Workflows/stages/utils';
24+
} from '~/src/components/Workflows/stages/utils';
25+
import RoutingChip from '~/src/components/Wrappers/RoutingChip/RoutingChip';
2626
import { useToggle } from '~/src/hooks/useToggle';
2727

2828
const GetWallet: FunctionComponent<GetWalletProps> = ({

app/src/components/Wrappers/Workflows/histories/activities/RevertTransaction/RevertTransaction.tsx app/src/components/Workflows/histories/activities/RevertTransaction/RevertTransaction.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SwapHoriz } from '@mui/icons-material';
44
import { Box, useTheme } from '@mui/material';
55
import { useTranslation } from 'react-i18next';
66

7-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
7+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
88

99
const RevertTransaction: FunctionComponent = () => {
1010
const { t } = useTranslation();

app/src/components/Wrappers/Workflows/histories/activities/StripeTransfer/StripeTransfer.tsx app/src/components/Workflows/histories/activities/StripeTransfer/StripeTransfer.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { useTranslation } from 'react-i18next';
66

77
import { Chip } from '@numaryhq/storybook';
88

9-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
10-
import { StripeTransferProps } from '~/src/components/Wrappers/Workflows/histories/activities/StripeTransfer/types';
9+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
10+
import { StripeTransferProps } from '~/src/components/Workflows/histories/activities/StripeTransfer/types';
1111
import {
1212
chipContainer,
1313
containerSx,
1414
getPlaceholder,
1515
typoSx,
16-
} from '~/src/components/Wrappers/Workflows/stages/utils';
16+
} from '~/src/components/Workflows/stages/utils';
1717
import { useToggle } from '~/src/hooks/useToggle';
1818

1919
const StripeTransfer: FunctionComponent<StripeTransferProps> = ({

app/src/components/Wrappers/Workflows/histories/activities/VoidHold/VoidHold.tsx app/src/components/Workflows/histories/activities/VoidHold/VoidHold.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { SwapHoriz } from '@mui/icons-material';
44
import { Box, useTheme } from '@mui/material';
55
import { useTranslation } from 'react-i18next';
66

7-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
7+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
88

99
const VoidHold: FunctionComponent = () => {
1010
const { t } = useTranslation();

app/src/components/Wrappers/Workflows/stages/DelayStage/DelayStage.tsx app/src/components/Workflows/stages/DelayStage/DelayStage.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { DelayStageProps } from './types';
77

88
import { Chip } from '@numaryhq/storybook';
99

10-
import { orchestrationStagesIconMap } from '~/src/components/Wrappers/StatusChip/maps';
11-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
10+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
1211
import {
1312
chipContainer,
1413
containerSx,
1514
getPlaceholder,
16-
} from '~/src/components/Wrappers/Workflows/stages/utils';
15+
} from '~/src/components/Workflows/stages/utils';
16+
import { orchestrationStagesIconMap } from '~/src/components/Wrappers/StatusChip/maps';
1717
import { OrchestrationStages } from '~/src/types/orchestration';
1818

1919
const DelayStage: FunctionComponent<DelayStageProps> = ({ delay }) => {

app/src/components/Wrappers/Workflows/stages/SendStage/SendStage.tsx app/src/components/Workflows/stages/SendStage/SendStage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { useTranslation } from 'react-i18next';
55

66
import { SendStageProps } from './types';
77

8+
import NodeTitle from '~/src/components/Workflows/CustomNode/NodeTitle';
9+
import SourceDestinationBox from '~/src/components/Workflows/CustomNode/SourceDestinationBox';
810
import { orchestrationStagesIconMap } from '~/src/components/Wrappers/StatusChip/maps';
9-
import NodeTitle from '~/src/components/Wrappers/Workflows/CustomNode/NodeTitle';
10-
import SourceDestinationBox from '~/src/components/Wrappers/Workflows/CustomNode/SourceDestinationBox';
1111
import { OrchestrationStages } from '~/src/types/orchestration';
1212

1313
const SendStage: FunctionComponent<SendStageProps> = ({ send }) => {

0 commit comments

Comments
 (0)