forked from sourcegraph/cody
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix last used prompts ordering (sourcegraph#5848)
Fixes https://linear.app/sourcegraph/issue/SRCH-1131/make-prompts-dropdown-menu-a-recently-used-list This PR changes how smart recently used prompt ordering works. Previously, we counted the number of times a user clicked on prompts and used this aggregated count value to sort the list of prompts. Now we just set the timestamp to the used prompt and sort it by this, so it's truly the most recently used prompt (always will be on top of the list) ## Test plan - Check that in the prompt list you can see the right order of prompts
- Loading branch information
1 parent
1334cb7
commit d04e083
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters