Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
|
|
import { useEffect, useRef, useState, useCallback } from 'react';
|
|
|
|
|
|
import { useRouter } from 'next/navigation';
|
2026-04-24 15:47:54 +02:00
|
|
|
|
import { Search, Clock, User, TrendingUp, Anchor, Ship, Building2 } from 'lucide-react';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
|
|
import { useSearch } from '@/hooks/use-search';
|
|
|
|
|
|
import { useUIStore } from '@/stores/ui-store';
|
|
|
|
|
|
|
|
|
|
|
|
export function CommandSearch() {
|
|
|
|
|
|
const [focused, setFocused] = useState(false);
|
|
|
|
|
|
const [query, setQuery] = useState('');
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
const portSlug = useUIStore((s) => s.currentPortSlug);
|
|
|
|
|
|
const wrapperRef = useRef<HTMLDivElement>(null);
|
|
|
|
|
|
const inputRef = useRef<HTMLInputElement>(null);
|
|
|
|
|
|
|
|
|
|
|
|
const { results, isLoading, recentSearches } = useSearch(query);
|
|
|
|
|
|
|
|
|
|
|
|
const showDropdown = focused && (query.length > 0 || recentSearches.length > 0);
|
|
|
|
|
|
const hasQuery = query.length >= 2;
|
|
|
|
|
|
const hasResults =
|
|
|
|
|
|
results &&
|
2026-04-24 15:47:54 +02:00
|
|
|
|
(results.clients.length > 0 ||
|
|
|
|
|
|
results.interests.length > 0 ||
|
|
|
|
|
|
results.berths.length > 0 ||
|
|
|
|
|
|
results.yachts.length > 0 ||
|
|
|
|
|
|
results.companies.length > 0);
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
|
|
// Cmd/Ctrl+K focuses the input
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
function onKeyDown(e: KeyboardEvent) {
|
|
|
|
|
|
if ((e.metaKey || e.ctrlKey) && e.key === 'k') {
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
inputRef.current?.focus();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
document.addEventListener('keydown', onKeyDown);
|
|
|
|
|
|
return () => document.removeEventListener('keydown', onKeyDown);
|
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
|
|
// Click outside closes dropdown
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (!focused) return;
|
|
|
|
|
|
function onClick(e: MouseEvent) {
|
|
|
|
|
|
if (wrapperRef.current && !wrapperRef.current.contains(e.target as Node)) {
|
|
|
|
|
|
setFocused(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
document.addEventListener('mousedown', onClick);
|
|
|
|
|
|
return () => document.removeEventListener('mousedown', onClick);
|
|
|
|
|
|
}, [focused]);
|
|
|
|
|
|
|
|
|
|
|
|
const navigate = useCallback(
|
|
|
|
|
|
(path: string) => {
|
|
|
|
|
|
setFocused(false);
|
|
|
|
|
|
setQuery('');
|
|
|
|
|
|
inputRef.current?.blur();
|
2026-03-26 12:29:55 +01:00
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
|
|
router.push(path as any);
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
},
|
|
|
|
|
|
[router],
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// Keyboard nav inside dropdown
|
|
|
|
|
|
function onInputKeyDown(e: React.KeyboardEvent) {
|
|
|
|
|
|
if (e.key === 'Escape') {
|
|
|
|
|
|
setFocused(false);
|
|
|
|
|
|
inputRef.current?.blur();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-24 15:47:54 +02:00
|
|
|
|
const iconMap = {
|
|
|
|
|
|
client: User,
|
|
|
|
|
|
interest: TrendingUp,
|
|
|
|
|
|
berth: Anchor,
|
|
|
|
|
|
yacht: Ship,
|
|
|
|
|
|
company: Building2,
|
|
|
|
|
|
} as const;
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
|
|
|
|
|
|
return (
|
2026-05-04 22:57:01 +02:00
|
|
|
|
// Width is now driven by the parent slot (topbar centers a 360–640px
|
|
|
|
|
|
// column). Removed fixed widths so the bar fills its container instead
|
|
|
|
|
|
// of shrinking to the old fixed pixel sizes.
|
|
|
|
|
|
<div ref={wrapperRef} className="relative w-full">
|
|
|
|
|
|
{/* Single persistent search bar.
|
|
|
|
|
|
Focus state is intentionally subtle: a 1px brand-coloured border,
|
|
|
|
|
|
no fat outer glow. The earlier `ring-4 ring-brand/15` produced a
|
|
|
|
|
|
chunky pale-blue rectangle that read as a stray UI element rather
|
|
|
|
|
|
than a focus indicator. */}
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
<div
|
|
|
|
|
|
className={cn(
|
2026-05-04 22:57:01 +02:00
|
|
|
|
'flex items-center gap-2 rounded-lg border bg-background px-3 shadow-xs transition-colors w-full',
|
|
|
|
|
|
focused ? 'border-brand/70' : 'border-input',
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
)}
|
|
|
|
|
|
>
|
|
|
|
|
|
<Search className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
|
|
|
|
<input
|
|
|
|
|
|
ref={inputRef}
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
value={query}
|
|
|
|
|
|
onChange={(e) => setQuery(e.target.value)}
|
|
|
|
|
|
onFocus={() => setFocused(true)}
|
|
|
|
|
|
onKeyDown={onInputKeyDown}
|
2026-05-04 22:57:01 +02:00
|
|
|
|
placeholder="Search clients, yachts, berths... (⌘K)"
|
|
|
|
|
|
className="h-9 flex-1 min-w-0 bg-transparent text-sm outline-none ring-0 focus:outline-none focus:ring-0 placeholder:text-muted-foreground"
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{/* ── Results dropdown ── */}
|
|
|
|
|
|
{showDropdown && (
|
2026-05-04 22:57:01 +02:00
|
|
|
|
// Dropdown width matches the search input (full width of the slot),
|
|
|
|
|
|
// capped on viewport so it doesn't bleed past the screen edge.
|
|
|
|
|
|
<div className="absolute top-[calc(100%+4px)] left-0 w-full max-w-[min(640px,calc(100vw-2rem))] z-50 rounded-md border bg-popover shadow-lg overflow-hidden">
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
<div className="max-h-[340px] overflow-y-auto py-1">
|
2026-05-04 22:57:01 +02:00
|
|
|
|
{/* No query yet - show recent or hint */}
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
{!hasQuery && recentSearches.length > 0 && (
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div className="px-3 py-1.5 text-xs font-medium text-muted-foreground">Recent</div>
|
|
|
|
|
|
{recentSearches.map((term) => (
|
|
|
|
|
|
<button
|
|
|
|
|
|
key={term}
|
|
|
|
|
|
onClick={() => setQuery(term)}
|
|
|
|
|
|
className="flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent cursor-pointer"
|
|
|
|
|
|
>
|
|
|
|
|
|
<Clock className="h-3.5 w-3.5 text-muted-foreground" />
|
|
|
|
|
|
{term}
|
|
|
|
|
|
</button>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{!hasQuery && recentSearches.length === 0 && (
|
|
|
|
|
|
<div className="px-3 py-6 text-center text-sm text-muted-foreground">
|
|
|
|
|
|
Type at least 2 characters to search
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{/* Loading */}
|
|
|
|
|
|
{hasQuery && isLoading && (
|
|
|
|
|
|
<div className="px-3 py-6 text-center text-sm text-muted-foreground">
|
|
|
|
|
|
Searching...
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{/* No results */}
|
|
|
|
|
|
{hasQuery && !isLoading && !hasResults && (
|
|
|
|
|
|
<div className="px-3 py-6 text-center text-sm text-muted-foreground">
|
|
|
|
|
|
No results for “{query}”
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{/* Result groups */}
|
|
|
|
|
|
{hasQuery && !isLoading && results && (
|
|
|
|
|
|
<>
|
|
|
|
|
|
{results.clients.length > 0 && (
|
|
|
|
|
|
<ResultGroup
|
|
|
|
|
|
heading="Clients"
|
|
|
|
|
|
items={results.clients.map((c) => ({
|
|
|
|
|
|
id: c.id,
|
|
|
|
|
|
icon: 'client',
|
|
|
|
|
|
label: c.fullName,
|
refactor(clients): drop deprecated yacht/company/proxy columns
PR 13: now that all reads are migrated to the dedicated yacht / company
/ membership entities, drop the columns that mirrored them on `clients`:
companyName, isProxy, proxyType, actualOwnerName, relationshipNotes,
yachtName, yachtLength{Ft,M}, yachtWidth{Ft,M}, yachtDraft{Ft,M},
berthSizeDesired.
Migration `0008_loud_ikaris.sql` issues the destructive ALTER TABLE
DROP COLUMN statements. Run `pnpm db:push` (or the migration runner) to
apply.
Caller cleanup (zero behavioral change to remaining flows):
- Drops the legacy `generateEoi` flow entirely (route, service function,
pdfme template, validator schema). The dual-path generate-and-sign
service from PR 11 has fully replaced it; the route was no longer
wired to the UI.
- `clients.service`: company-name search column / WHERE / audit value
removed; search now ranks by full name only.
- `interests.service`: `resolveLeadCategory` reads dimensions from
`yachts` via `interest.yachtId` instead of the dropped
`client.yachtLength{Ft,M}`.
- `record-export`: client-summary now lists yachts via owner-side
lookup (direct + active company memberships); interest-summary fetches
yacht via `interest.yachtId`. Both PDF templates updated to read
yacht details from the new entity.
- `client-detail-header`, `client-picker`, `command-search`,
`search-result-item`, `use-search` hook, `types/domain.ts`,
`search.service` — drop the companyName badge / sub-label / typed
field everywhere it was rendered or fetched.
- `ai.ts` worker: drop the company / yacht context lines from the
prompt (will be re-added later sourced from the new entities).
- `validators/interests.ts`: remove the deprecated public-form flat
yacht/company fields. The route already ignores them.
- `factories.ts`: drop the `isProxy: false` default.
Tests: 652/652 green; type-check clean. The
`security-sensitive-data` tests use `companyName` / `isProxy` as
arbitrary record keys for a generic util — left unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 13:57:54 +02:00
|
|
|
|
sub: null,
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
}))}
|
|
|
|
|
|
iconMap={iconMap}
|
|
|
|
|
|
onSelect={(id) => navigate(`/${portSlug}/clients/${id}`)}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
2026-04-24 15:47:54 +02:00
|
|
|
|
{results.yachts.length > 0 && (
|
|
|
|
|
|
<ResultGroup
|
|
|
|
|
|
heading="Yachts"
|
|
|
|
|
|
items={results.yachts.map((y) => ({
|
|
|
|
|
|
id: y.id,
|
|
|
|
|
|
icon: 'yacht',
|
|
|
|
|
|
label: y.name,
|
|
|
|
|
|
sub: [y.hullNumber, y.registration].filter(Boolean).join(' · ') || null,
|
|
|
|
|
|
}))}
|
|
|
|
|
|
iconMap={iconMap}
|
|
|
|
|
|
onSelect={(id) => navigate(`/${portSlug}/yachts/${id}`)}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
|
|
|
|
|
{results.companies.length > 0 && (
|
|
|
|
|
|
<ResultGroup
|
|
|
|
|
|
heading="Companies"
|
|
|
|
|
|
items={results.companies.map((c) => ({
|
|
|
|
|
|
id: c.id,
|
|
|
|
|
|
icon: 'company',
|
|
|
|
|
|
label: c.name,
|
|
|
|
|
|
sub: [c.legalName, c.taxId].filter(Boolean).join(' · ') || null,
|
|
|
|
|
|
}))}
|
|
|
|
|
|
iconMap={iconMap}
|
|
|
|
|
|
onSelect={(id) => navigate(`/${portSlug}/companies/${id}`)}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
{results.interests.length > 0 && (
|
|
|
|
|
|
<ResultGroup
|
|
|
|
|
|
heading="Interests"
|
|
|
|
|
|
items={results.interests.map((i) => ({
|
|
|
|
|
|
id: i.id,
|
|
|
|
|
|
icon: 'interest',
|
|
|
|
|
|
label: i.clientName,
|
|
|
|
|
|
sub: i.berthMooringNumber ?? i.pipelineStage,
|
|
|
|
|
|
}))}
|
|
|
|
|
|
iconMap={iconMap}
|
|
|
|
|
|
onSelect={(id) => navigate(`/${portSlug}/interests/${id}`)}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
|
|
|
|
|
{results.berths.length > 0 && (
|
|
|
|
|
|
<ResultGroup
|
|
|
|
|
|
heading="Berths"
|
|
|
|
|
|
items={results.berths.map((b) => ({
|
|
|
|
|
|
id: b.id,
|
|
|
|
|
|
icon: 'berth',
|
|
|
|
|
|
label: b.mooringNumber,
|
|
|
|
|
|
sub: [b.area, b.status].filter(Boolean).join(' · '),
|
|
|
|
|
|
}))}
|
|
|
|
|
|
iconMap={iconMap}
|
|
|
|
|
|
onSelect={(id) => navigate(`/${portSlug}/berths/${id}`)}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function ResultGroup({
|
|
|
|
|
|
heading,
|
|
|
|
|
|
items,
|
|
|
|
|
|
iconMap,
|
|
|
|
|
|
onSelect,
|
|
|
|
|
|
}: {
|
|
|
|
|
|
heading: string;
|
2026-04-24 15:47:54 +02:00
|
|
|
|
items: Array<{
|
|
|
|
|
|
id: string;
|
|
|
|
|
|
icon: 'client' | 'interest' | 'berth' | 'yacht' | 'company';
|
|
|
|
|
|
label: string;
|
|
|
|
|
|
sub?: string | null;
|
|
|
|
|
|
}>;
|
2026-03-26 12:29:55 +01:00
|
|
|
|
iconMap: Record<string, React.ElementType | undefined>;
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
onSelect: (id: string) => void;
|
|
|
|
|
|
}) {
|
|
|
|
|
|
return (
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div className="px-3 py-1.5 text-xs font-medium text-muted-foreground">{heading}</div>
|
|
|
|
|
|
{items.map((item) => {
|
2026-03-26 12:29:55 +01:00
|
|
|
|
const Icon = iconMap[item.icon] ?? 'span';
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
return (
|
|
|
|
|
|
<button
|
|
|
|
|
|
key={item.id}
|
|
|
|
|
|
onClick={() => onSelect(item.id)}
|
|
|
|
|
|
className="flex w-full items-center gap-2.5 px-3 py-2 text-sm hover:bg-accent cursor-pointer text-left"
|
|
|
|
|
|
>
|
|
|
|
|
|
<Icon className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
|
|
|
|
<span className="truncate font-medium">{item.label}</span>
|
|
|
|
|
|
{item.sub && (
|
|
|
|
|
|
<span className="ml-auto truncate text-xs text-muted-foreground">{item.sub}</span>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</button>
|
|
|
|
|
|
);
|
|
|
|
|
|
})}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-04 22:57:01 +02:00
|
|
|
|
// Keep export for backwards compat - it's a no-op
|
Initial commit: Port Nimara CRM (Layers 0-4)
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 11:52:51 +01:00
|
|
|
|
export function SearchTrigger() {
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|