@@ -224,6 +224,13 @@ export default function NodesList() {
224224 return nodesResponse ?. nodes || [ ]
225225 } , [ shouldUseLocalSearch , localSearchTerm , allNodes , nodesResponse ?. nodes ] )
226226
227+ const hasActiveFilters = ! ! (
228+ filters . search ||
229+ localSearchTerm ||
230+ ( filters . status && filters . status . length > 0 ) ||
231+ filters . core_id
232+ )
233+
227234 const paginatedNodes = useMemo ( ( ) => {
228235 if ( shouldUseLocalSearch && localSearchTerm ) {
229236 const start = currentPage * NODES_PER_PAGE
@@ -357,7 +364,7 @@ export default function NodesList() {
357364 />
358365 ) }
359366
360- { ! showLoadingSpinner && ! showPageLoadingSkeletons && nodesData . length === 0 && ! filters . search && ! localSearchTerm && totalNodes === 0 && (
367+ { ! showLoadingSpinner && ! showPageLoadingSkeletons && nodesData . length === 0 && ! hasActiveFilters && totalNodes === 0 && (
361368 < Card className = "mb-12" >
362369 < CardContent className = "p-8 text-center" >
363370 < div className = "space-y-4" >
@@ -374,12 +381,14 @@ export default function NodesList() {
374381 </ Card >
375382 ) }
376383
377- { ! showLoadingSpinner && ! showPageLoadingSkeletons && nodesData . length === 0 && ( filters . search || localSearchTerm ) && (
384+ { ! showLoadingSpinner && ! showPageLoadingSkeletons && nodesData . length === 0 && hasActiveFilters && (
378385 < Card className = "mb-12" >
379386 < CardContent className = "p-8 text-center" >
380387 < div className = "space-y-4" >
381- < h3 className = "text-lg font-semibold" > { t ( 'noResults' ) } </ h3 >
382- < p className = "mx-auto max-w-2xl text-muted-foreground" > { t ( 'nodes.noSearchResults' , { defaultValue : 'No nodes match your search criteria. Try adjusting your search terms.' } ) } </ p >
388+ < h3 className = "text-lg font-semibold" > { t ( 'nodes.noFilteredResults' ) } </ h3 >
389+ < p className = "mx-auto max-w-2xl text-muted-foreground" >
390+ { t ( 'nodes.noSearchResults' ) }
391+ </ p >
383392 </ div >
384393 </ CardContent >
385394 </ Card >
0 commit comments