@@ -23,7 +23,7 @@ import {
2323 usePageSwitcherPagination ,
2424 type PaginationKeys ,
2525} from '../components/FilteredConnection/hooks/usePageSwitcherPagination'
26- import { ConnectionContainer , ConnectionForm } from '../components/FilteredConnection/ui'
26+ import { ConnectionForm } from '../components/FilteredConnection/ui'
2727import { PromptsOrderBy , type PromptFields , type PromptsResult , type PromptsVariables } from '../graphql-operations'
2828import { LibraryItemStatusBadge , LibraryItemVisibilityBadge } from '../library/itemBadges'
2929import { useAffiliatedNamespaces } from '../namespaces/useAffiliatedNamespaces'
@@ -167,40 +167,36 @@ export const ListPage: FunctionComponent<TelemetryV2Props> = ({ telemetryRecorde
167167 return (
168168 < >
169169 < Container data-testid = "prompts-list-page" >
170- < ConnectionContainer >
171- < ConnectionForm
172- hideSearch = { false }
173- showSearchFirst = { true }
174- inputClassName = "mw-30"
175- inputPlaceholder = "Find a prompt..."
176- inputAriaLabel = ""
177- inputValue = { connectionState . query }
178- onInputChange = { event => {
179- setConnectionState ( prev => ( { ...prev , query : event . target . value } ) )
180- } }
181- autoFocus = { false }
182- filters = { filters }
183- onFilterSelect = { ( filter , value ) =>
184- setConnectionState ( prev => ( { ...prev , [ filter . id ] : value } ) )
185- }
186- filterValues = { connectionState }
187- compact = { false }
188- formClassName = "flex-gap-4 mb-4"
189- />
190- { loading ? (
191- < LoadingSpinner />
192- ) : error ? (
193- < ErrorAlert error = { error } className = "mb-3" />
194- ) : ! connection ?. nodes || connection . nodes . length === 0 ? (
195- < Text className = "text-center text-muted mb-0" > No prompts found.</ Text >
196- ) : (
197- < div className = "list-group list-group-flush" >
198- { connection . nodes . map ( prompt => (
199- < PromptNode key = { prompt . id } prompt = { prompt } telemetryRecorder = { telemetryRecorder } />
200- ) ) }
201- </ div >
202- ) }
203- </ ConnectionContainer >
170+ < ConnectionForm
171+ hideSearch = { false }
172+ showSearchFirst = { true }
173+ inputClassName = "mw-30"
174+ inputPlaceholder = "Find a prompt..."
175+ inputAriaLabel = ""
176+ inputValue = { connectionState . query }
177+ onInputChange = { event => {
178+ setConnectionState ( prev => ( { ...prev , query : event . target . value } ) )
179+ } }
180+ autoFocus = { false }
181+ filters = { filters }
182+ onFilterSelect = { ( filter , value ) => setConnectionState ( prev => ( { ...prev , [ filter . id ] : value } ) ) }
183+ filterValues = { connectionState }
184+ compact = { false }
185+ formClassName = "flex-gap-4 mb-4"
186+ />
187+ { loading ? (
188+ < LoadingSpinner />
189+ ) : error ? (
190+ < ErrorAlert error = { error } className = "mb-3" />
191+ ) : ! connection ?. nodes || connection . nodes . length === 0 ? (
192+ < Text className = "text-center text-muted mb-0" > No prompts found.</ Text >
193+ ) : (
194+ < div className = "list-group list-group-flush" >
195+ { connection . nodes . map ( prompt => (
196+ < PromptNode key = { prompt . id } prompt = { prompt } telemetryRecorder = { telemetryRecorder } />
197+ ) ) }
198+ </ div >
199+ ) }
204200 </ Container >
205201 < PageSwitcher { ...paginationProps } className = "mt-4" totalCount = { connection ?. totalCount ?? null } />
206202 </ >
0 commit comments