feat: Show recent searches (#2868)
* stash * root hookup * recent searches UI * feat: Add search query deletion * simplify no results state * lint
This commit is contained in:
@@ -12,6 +12,7 @@ import presentMembership from "./membership";
|
||||
import presentNotificationSetting from "./notificationSetting";
|
||||
import presentPolicies from "./policy";
|
||||
import presentRevision from "./revision";
|
||||
import presentSearchQuery from "./searchQuery";
|
||||
import presentShare from "./share";
|
||||
import presentSlackAttachment from "./slackAttachment";
|
||||
import presentTeam from "./team";
|
||||
@@ -29,6 +30,7 @@ export {
|
||||
presentRevision,
|
||||
presentCollection,
|
||||
presentShare,
|
||||
presentSearchQuery,
|
||||
presentTeam,
|
||||
presentGroup,
|
||||
presentIntegration,
|
||||
|
||||
7
server/presenters/searchQuery.ts
Normal file
7
server/presenters/searchQuery.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function present(searchQuery: any) {
|
||||
return {
|
||||
id: searchQuery.id,
|
||||
query: searchQuery.query,
|
||||
createdAt: searchQuery.createdAt,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user