feat(search): index yachts and companies alongside clients

Extend the global search service to include yacht and company results
using ILIKE matching on name, hull number, registration, legal name,
and tax ID. Results are tenant-scoped and exclude archived rows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Ciaccio
2026-04-24 15:47:54 +02:00
parent 1fd05a886d
commit 71d7daf1ae
5 changed files with 384 additions and 7 deletions

View File

@@ -16,6 +16,18 @@ interface SearchResults {
pipelineStage: string;
}>;
berths: Array<{ id: string; mooringNumber: string; area: string | null; status: string }>;
yachts: Array<{
id: string;
name: string;
hullNumber: string | null;
registration: string | null;
}>;
companies: Array<{
id: string;
name: string;
legalName: string | null;
taxId: string | null;
}>;
}
// ─── Hook ─────────────────────────────────────────────────────────────────────