@@ -383,6 +383,36 @@ const AgentStorePage = () => {
383383 </ p >
384384 </ AnimatedElement >
385385
386+ { /* Search and Filters */ }
387+ < AnimatedElement type = "slide" delay = { 0.1 } className = "mb-8" >
388+ < div className = "flex flex-col md:flex-row gap-4 items-stretch md:items-center md:justify-end" >
389+ < div className = "relative w-full md:flex-1 md:max-w-[200px]" >
390+ < Search className = "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4" />
391+ < Input
392+ placeholder = "Search agents..."
393+ value = { searchQuery }
394+ onChange = { ( e ) => setSearchQuery ( e . target . value ) }
395+ className = "pl-10 w-full"
396+ />
397+ </ div >
398+ < div className = "flex gap-3 w-full md:w-auto" >
399+ < Select value = { sortBy } onValueChange = { setSortBy } >
400+ < SelectTrigger className = "w-full md:w-40" >
401+ < TrendingUp className = "h-4 w-4 mr-2" />
402+ < SelectValue placeholder = "Sort by" />
403+ </ SelectTrigger >
404+ < SelectContent >
405+ < SelectItem value = "cost" > Weekly Usage</ SelectItem >
406+ < SelectItem value = "usage" > Total Runs</ SelectItem >
407+ < SelectItem value = "unique_users" > Unique Users</ SelectItem >
408+ < SelectItem value = "newest" > Newest</ SelectItem >
409+ < SelectItem value = "name" > Name</ SelectItem >
410+ </ SelectContent >
411+ </ Select >
412+ </ div >
413+ </ div >
414+ </ AnimatedElement >
415+
386416 { /* Agent Grid */ }
387417 { isLoading ? (
388418 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" >
@@ -440,39 +470,9 @@ const AgentStorePage = () => {
440470 </ div >
441471 ) }
442472
443- { /* Search and Filters */ }
444- < AnimatedElement type = "slide" delay = { 0.1 } className = "mb-8" >
445- < div className = "flex flex-col md:flex-row gap-4 items-stretch md:items-center md:justify-end" >
446- < div className = "relative w-full md:flex-1 md:max-w-[200px]" >
447- < Search className = "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4" />
448- < Input
449- placeholder = "Search agents..."
450- value = { searchQuery }
451- onChange = { ( e ) => setSearchQuery ( e . target . value ) }
452- className = "pl-10 w-full"
453- />
454- </ div >
455- < div className = "flex gap-3 w-full md:w-auto" >
456- < Select value = { sortBy } onValueChange = { setSortBy } >
457- < SelectTrigger className = "w-full md:w-40" >
458- < TrendingUp className = "h-4 w-4 mr-2" />
459- < SelectValue placeholder = "Sort by" />
460- </ SelectTrigger >
461- < SelectContent >
462- < SelectItem value = "cost" > Weekly Usage</ SelectItem >
463- < SelectItem value = "usage" > Total Runs</ SelectItem >
464- < SelectItem value = "unique_users" > Unique Users</ SelectItem >
465- < SelectItem value = "newest" > Newest</ SelectItem >
466- < SelectItem value = "name" > Name</ SelectItem >
467- </ SelectContent >
468- </ Select >
469- </ div >
470- </ div >
471- </ AnimatedElement >
472-
473473 { /* All Agents Section */ }
474474 { filteredAndSortedAgents . length > 0 && (
475- < div >
475+ < div className = "mt-12" >
476476 < AnimatedElement type = "fade" className = "mb-6" >
477477 < h2 className = "text-2xl font-bold mb-2" > All Agents</ h2 >
478478 < p className = "text-muted-foreground" >
0 commit comments