refactor: integrate REST search collection adapter

This commit is contained in:
jamesgeorge007
2024-02-22 22:55:17 +05:30
parent 46654853f0
commit 89f2479845
4 changed files with 146 additions and 7 deletions

View File

@@ -951,7 +951,7 @@ export class PersonalWorkspaceProviderService
public getRESTSearchResultsView(
workspaceHandle: HandleRef<Workspace>,
searchQuery: Ref<string>
searchQuery: string
): Promise<E.Either<never, HandleRef<RESTSearchResultsView>>> {
return Promise.resolve(
E.right(
@@ -967,7 +967,7 @@ export class PersonalWorkspaceProviderService
}
}
if (!searchQuery.value) {
if (!searchQuery) {
return {
type: "ok" as const,
data: {
@@ -990,7 +990,7 @@ export class PersonalWorkspaceProviderService
loading: ref(false),
results: computed(() => {
const filterText = searchQuery.value.toLowerCase()
const filterText = searchQuery.toLowerCase()
const filteredCollections = []
const isMatch = (text: string) =>