AutoGPT
AutoGPT copied to clipboard
feat(platform/library): Allow sorting Agents by Last Execution Time
Changes ποΈ
This PR implements a new sorting option in the Library view to order agents by their last execution time rather than last edit time. This addresses a common user need to quickly access recently run agents, regardless of how they were executed (via GUI or otherwise).
-->Added LAST_EXECUTION to LibraryAgentSortEnum in types.ts -->Updated the dropdown in library-sort-menu.tsx to include a "Last Run" option -->Modified the placeholder text based on the selected sort option -->Changed the default sort behavior in state-provider.tsx to LAST_EXECUTION -->Adjusted API request logic to pass lastExecution as the sort key, enabling backend-side sorting by run time -->Ensured sorting accounts for all executions (manual and automatic) #9860
PR Reviewer Guide π
Here are some key observations to aid the review process:
| β±οΈΒ Estimated effort to review: 2 π΅π΅βͺβͺβͺ |
| π§ͺΒ No relevant tests |
| πΒ No security concerns identified |
β‘Β Recommended focus areas for reviewDefault Value Inconsistency
|
This PR targets the master branch but does not come from dev or a hotfix/* branch.
Automatically setting the base branch to dev.
Here's the code health analysis summary for commits 1e3236a..9c19fe0. View details on DeepSourceΒ β.
Analysis Summary
| Analyzer | Status | Summary | Link |
|---|---|---|---|
| β Β Success | β 5 occurences introduced π― 6 occurences resolved | View CheckΒ β | |
| β Β Success | View CheckΒ β |
π‘ If youβre a repository administrator, you can configure the quality gates from the settings.
Deploy Preview for auto-gpt-docs ready!
| Name | Link |
|---|---|
| Latest commit | 9c19fe00e55b733ea0da5d3033a45ca7a2d2b0f1 |
| Latest deploy log | https://app.netlify.com/sites/auto-gpt-docs/deploys/6812f84124bc2a00086b5999 |
| Deploy Preview | https://deploy-preview-9871--auto-gpt-docs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Deploy Preview for auto-gpt-docs-dev ready!
| Name | Link |
|---|---|
| Latest commit | 9c19fe00e55b733ea0da5d3033a45ca7a2d2b0f1 |
| Latest deploy log | https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/6812f8416a4459000844acce |
| Deploy Preview | https://deploy-preview-9871--auto-gpt-docs-dev.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Hey @Keerthi421, welcome to the AutoGPT community! Thank you so much for picking this ticket up.
To help us get this merged, could you please run the formatter and sign the CLA?
@Pwuts Thankyou , I will work on it
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
Continuing this as #10353