Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CollapsibleContent,
CollapsibleTrigger,
} from '@openops/components/ui';
import { ChevronRight } from 'lucide-react';
import { ChevronRight, SquareX } from 'lucide-react';
import React, { useCallback, useMemo } from 'react';

import { blocksHooks } from '@/app/features/blocks/lib/blocks-hook';
Expand All @@ -18,6 +18,7 @@
import { flagsHooks } from '@/app/common/hooks/flags-hooks';
import { useCenterWorkflowViewOntoStep } from '@/app/features/builder/hooks/center-workflow-view-onto-step';
import { StepStatusIcon } from '@/app/features/flow-runs/components/step-status-icon';
import { t } from 'i18next';
import { RUN_DETAILS_STEP_CARD_ID_PREFIX } from './constants';
import { LoopIterationInput } from './loop-iteration-input';

Expand Down Expand Up @@ -145,10 +146,24 @@
/>
</Button>
)}
<img className="w-6 h-6" alt={'logo'} src={stepMetadata?.logoUrl} />
<div className="break-all truncate">{`${stepIndex + 1}. ${
step?.displayName
}`}</div>
{stepMetadata?.logoUrl ? (
<img
className="w-6 h-6"
alt={'logo'}
src={stepMetadata?.logoUrl}
/>
) : (
<SquareX className="w-6 h-6 text-muted-foreground" />
)}

<div
className={cn('break-all truncate', {
'text-muted-foreground italic': !step?.displayName,
})}
>
{(stepIndex !== -1 ? `${stepIndex + 1}. ` : '') +

Check warning on line 164 in packages/react-ui/src/app/features/builder/run-details/flow-step-details-card-item.tsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=openops-cloud_openops&issues=AZziJLm-mSSzhfdqslGA&open=AZziJLm-mSSzhfdqslGA&pullRequest=2117
(step?.displayName ?? t('Deleted Step'))}
</div>
<div className="w-2"></div>
<div className="flex gap-1 justify-end items-center flex-grow">
{isLoopStep && (
Expand Down
Loading