mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(frontend): align sort placeholder and default label with actual default (updatedAt)
The contributor reverted the default sort to updatedAt to fix E2E tests, but the placeholder and default label still said 'Last Executed'. This caused a UI mismatch where users saw 'Last Executed' but got 'Last Modified' sorting.
This commit is contained in:
@@ -23,7 +23,7 @@ export function LibrarySortMenu({ setLibrarySort }: Props) {
|
||||
<Select onValueChange={handleSortChange}>
|
||||
<SelectTrigger className="ml-1 w-fit space-x-1 border-none px-0 text-base underline underline-offset-4 shadow-none">
|
||||
<ArrowDownNarrowWideIcon className="h-4 w-4 sm:hidden" />
|
||||
<SelectValue placeholder="Last Executed" />
|
||||
<SelectValue placeholder="Last Modified" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectGroup>
|
||||
|
||||
@@ -18,7 +18,7 @@ export function useLibrarySortMenu({ setLibrarySort }: Props) {
|
||||
case LibraryAgentSort.updatedAt:
|
||||
return "Last Modified";
|
||||
default:
|
||||
return "Last Executed";
|
||||
return "Last Modified";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user