Skip to content

Commit

Permalink
[RHOAIENG-4385] DSPA - Add back the Folder Info
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuzz0 committed May 23, 2024
1 parent cd34c2c commit 788d1e0
Showing 1 changed file with 67 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ import {
InputGroup,
Tooltip,
InputGroupItem,
Alert,
Popover,
List,
ListItem,
Stack,
StackItem,
} from '@patternfly/react-core';
import React from 'react';
import { DataConnection } from '~/pages/projects/types';
import { PIPELINE_AWS_FIELDS } from '~/pages/projects/dataConnections/const';
import { AwsKeys, PIPELINE_AWS_FIELDS } from '~/pages/projects/dataConnections/const';
import { FieldListField } from '~/components/FieldList';
import { PipelineServerConfigType } from './types';
import './ConfigurePipelinesServerModal.scss';
Expand Down Expand Up @@ -85,14 +91,66 @@ export const ObjectStorageSection = ({
</InputGroup>
</FormGroup>
) : (
<FieldListField
key={field.key}
value={
config.objectStorage.newValue.find((data) => data.key === field.key)?.value || ''
}
options={field}
onChange={onChange}
/>
<>
<FieldListField
key={field.key}
value={
config.objectStorage.newValue.find((data) => data.key === field.key)?.value || ''
}
options={field}
onChange={onChange}
/>

{field.key === AwsKeys.AWS_S3_BUCKET && (
<Popover
aria-label="bucket tooltip"
headerContent="Where is my data stored within the bucket?"
position="right"
hasAutoWidth
bodyContent={
<Stack hasGutter className="pf-v5-u-mt-md">
<StackItem>
<div className="pf-v5-u-mb-sm">
<b>If the pipeline is uploaded in the UI:</b>
</div>
<List>
<ListItem>
Pipeline metadata will be created in a <b>/pipelines/bucket</b> directory.
</ListItem>
<ListItem>
Pipeline artifacts will be created in a{' '}
<b>&#91;pipeline name&#93;/bucket</b> directory.
</ListItem>
<ListItem>
Pipeline uploaded file will be created in a <b>/bucket</b> directory.
</ListItem>
</List>
</StackItem>

<StackItem>
<div className="pf-v5-u-mb-sm">
<b>If the pipeline is created in Elyra:</b>
</div>
<List>
<ListItem>
Pipeline and artifacts will be stored in a{' '}
<b>&#91;pipeline name&#93;/bucket</b> directory.
</ListItem>
</List>
</StackItem>
</Stack>
}
>
<Alert
variant="info"
isInline
isPlain
title="Where is my data stored within the bucket?"
style={{ width: 'fit-content' }}
/>
</Popover>
)}
</>
),
)}
</FormSection>
Expand Down

0 comments on commit 788d1e0

Please sign in to comment.