feat: add global search through cmd k (#560)

* feat: cmdk integration

* feat: create view, cycle, project, module and workspace from command k

* feat: user can logout directly from command menu

* feat: user can visit sub page like various settings

* feat: change state of issue from command menu

* chore: add current issue state and minor UX improvements

* refactor: moved change issue state to new file

* feat: change issue priority from command k

* feat: delete issue from command k

* feat: copy issue url to clipboard

* fix: change placeholder when settings page is selected

* chore: remove logout option from cmd k

* feat: add help options to cmd k

* feat: assign issue to member from cmd k

* feat: now assign issue to yourself from cmd k

* chore: implement new cmd k design with icons

* feat: implemented global search feature in the cmd k

* feat: add keyboard acessibility to cmd k list items

* chore: remove console logs

* fix: pages icon in cmd list

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Saheb Giri 2023-03-28 14:49:27 +05:30 committed by GitHub
parent fc4d06fe0c
commit afb92ea850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1256 additions and 209 deletions

View file

@ -11,6 +11,7 @@ import {
ILastActiveWorkspaceDetails,
IAppIntegrations,
IWorkspaceIntegrations,
IWorkspaceSearchResults,
} from "types";
class WorkspaceService extends APIService {
@ -197,6 +198,20 @@ class WorkspaceService extends APIService {
throw error?.response?.data;
});
}
async searchWorkspace(
workspaceSlug: string,
projectId: string,
query: string
): Promise<IWorkspaceSearchResults> {
return this.get(
`/api/workspaces/${workspaceSlug}/projects/${projectId}/search/?search=${query}`
)
.then((res) => res?.data)
.catch((error) => {
throw error?.response?.data;
});
}
}
export default new WorkspaceService();