@@ -15,7 +15,6 @@ import {
1515 Flex ,
1616 Grid ,
1717 GridItem ,
18- Label ,
1918 List ,
2019 ListItem ,
2120 Popover ,
@@ -31,6 +30,7 @@ import React, { useEffect, useRef, useState } from 'react';
3130import { Controller , useFormContext , useWatch , Watch } from 'react-hook-form' ;
3231import { Navigate , useParams } from 'react-router' ;
3332import AutoragConnectionModal from '~/app/components/common/AutoragConnectionModal' ;
33+ import ConfigureFormGroup from '~/app/components/common/ConfigureFormGroup' ;
3434import FileExplorer from '~/app/components/common/FileExplorer/FileExplorer.tsx' ;
3535import SecretSelector , { SecretSelection } from '~/app/components/common/SecretSelector' ;
3636import { useLlamaStackModelsQuery } from '~/app/hooks/queries' ;
@@ -40,7 +40,6 @@ import { autoragExperimentsPathname } from '~/app/utilities/routes';
4040import { getMissingRequiredKeys } from '~/app/utilities/secretValidation' ;
4141import AutoragExperimentSettings from './AutoragExperimentSettings' ;
4242import AutoragVectorStoreSelector from './AutoragVectorStoreSelector' ;
43- import ConfigureFormGroup from '../common/ConfigureFormGroup' ;
4443
4544const AUTORAG_REQUIRED_KEYS : { [ type : string ] : string [ ] } = { s3 : [ 'aws_s3_bucket' ] } ;
4645
@@ -173,13 +172,13 @@ function AutoragConfigure(): React.JSX.Element {
173172 </ Content >
174173 </ CardHeader >
175174 < CardBody >
176- < Stack >
175+ < Stack hasGutter >
177176 < StackItem >
178177 < ConfigureFormGroup
179178 label = "S3 connection"
180179 description = "Select the S3 connection that contains your desired documents, or add a new connection."
181180 >
182- < Split className = "pf-v6-u-align-items-flex-end" hasGutter isWrappable >
181+ < Split hasGutter isWrappable >
183182 < SplitItem style = { { width : '10rem' } } isFilled >
184183 { Boolean ( namespace ) && (
185184 < Controller
@@ -234,21 +233,6 @@ function AutoragConfigure(): React.JSX.Element {
234233 </ StackItem >
235234 { Boolean ( selectedSecret ?. uuid ) && (
236235 < >
237- < StackItem className = "pf-v6-u-font-size-md pf-v6-u-mb-sm pf-v6-u-mt-md" >
238- Selected connection
239- </ StackItem >
240- < StackItem >
241- < Label
242- onClose = { ( ) => {
243- setSelectedSecret ( undefined ) ;
244- setValue ( 'input_data_secret_name' , '' , { shouldValidate : true } ) ;
245- } }
246- closeBtnAriaLabel = "Clear selected connection"
247- >
248- { selectedSecret ?. displayName ?? selectedSecret ?. name }
249- </ Label >
250- </ StackItem >
251-
252236 < StackItem className = "pf-v6-u-font-size-md pf-v6-u-mb-sm pf-v6-u-mt-md" >
253237 Selected files
254238 </ StackItem >
0 commit comments