Skip to content

Commit 2518901

Browse files
Merge branch 'dev' into register-component-ui
2 parents 1c6e449 + c31ed4a commit 2518901

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

src/ui/components/Filters/index.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const getInitialFilterStateForRuns = () => {
293293
},
294294
{
295295
value: 'pipeline_id',
296-
label: 'Pipeline Name',
296+
label: 'Pipeline',
297297
type: 'string',
298298
},
299299
{
@@ -582,7 +582,7 @@ const FilterComponent = ({
582582

583583
return member[0].name;
584584
}
585-
if (typeName === 'Pipeline Name') {
585+
if (typeName === 'Pipeline') {
586586
const pipeline = pipelines.filter((item) => item.id === value);
587587
return `${pipeline[0].name} ( v${pipeline[0].version} )`;
588588
}
@@ -627,7 +627,7 @@ const FilterComponent = ({
627627
}) as any;
628628
const pipelinesOptions = pipelines.map((item: any) => {
629629
return {
630-
label: `${item.name} ( v${item.version} )` as string,
630+
label: `${item.name} ( v${item.version})` as string,
631631
value: item.id as string,
632632
};
633633
}) as any;
@@ -834,8 +834,7 @@ const FilterComponent = ({
834834
filter.column.selectedValue.label === 'Shared' ||
835835
filter.column.selectedValue.label === 'Status'
836836
? 'is'
837-
: filter.column.selectedValue.label ===
838-
'Pipeline Name' ||
837+
: filter.column.selectedValue.label === 'Pipeline' ||
839838
filter.column.selectedValue.label ===
840839
'Stack Name' ||
841840
filter.column.selectedValue.label === 'Author'

src/ui/layouts/stackComponents/Stacks/List/getHeaderCols.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ export const GetHeaderCols = ({
155155
width: '15%',
156156
renderRow: (stackComponent: TStack) => (
157157
<FlexBox alignItems="center" style={{ marginLeft: '-24px' }}>
158-
<div data-tip data-for={stackComponent.flavor.name} style={{ margin: ' 0 auto 0 auto' }}>
158+
<div
159+
data-tip
160+
data-for={stackComponent?.flavor?.name || stackComponent?.flavor}
161+
style={{ margin: ' 0 auto 0 auto' }}
162+
>
159163
<img
160164
alt={stackComponent.flavor.logoUrl}
161165
src={stackComponent.flavor.logoUrl}
@@ -167,7 +171,11 @@ export const GetHeaderCols = ({
167171
</div>
168172

169173
<ReactTooltip
170-
id={stackComponent.flavor.name}
174+
id={
175+
// stackComponent?.flavor
176+
// ? stackComponent?.flavor
177+
stackComponent?.flavor?.name || stackComponent?.flavor
178+
}
171179
place="top"
172180
effect="solid"
173181
>
@@ -199,8 +207,12 @@ export const GetHeaderCols = ({
199207
),
200208
width: '15%',
201209
renderRow: (stackComponent: TStack) => (
202-
<FlexBox alignItems="center" style={{ marginLeft: '-24px' }}>
203-
<div data-tip data-for={stackComponent.isShared} style={{ margin: '0 auto 0 auto' }}>
210+
<FlexBox alignItems="center" style={{ marginLeft: '-24px' }}>
211+
<div
212+
data-tip
213+
data-for={stackComponent.isShared}
214+
style={{ margin: '0 auto 0 auto' }}
215+
>
204216
<Box>
205217
<FlexBox
206218
justifyContent="center"

0 commit comments

Comments
 (0)