Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -0,0 +1,21 @@
import type { LoaderFunctionArgs } from "react-router";
import { runGlobalSearch, type GlobalSearchEntityType } from "~/services/search/globalSearch.server";
const entityTypes = new Set<GlobalSearchEntityType>(["contact", "company", "lead", "project", "file", "task", "user"]);
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
const url = new URL(request.url);
const requestedTypes = url.searchParams
.getAll("type")
.filter((value): value is GlobalSearchEntityType => entityTypes.has(value as GlobalSearchEntityType));
return Response.json(
await runGlobalSearch({
request,
params,
query: url.searchParams.get("q") ?? "",
limit: Number(url.searchParams.get("limit") ?? 8),
entityTypes: requestedTypes,
recordRecent: false,
})
);
};