+
-
Active reservations
-
- Showing currently active reservations. History is coming soon.
-
+
+
Active reservations
+
+
+
+
+
+
+
History
+
+
+ {showHistory ? (
+ isHistoryLoading ? (
+
Loading…
+ ) : (
+
+ )
+ ) : (
+
+ Click “Show history” to load ended and cancelled reservations.
+
+ )}
-
);
}
diff --git a/src/components/clients/client-tabs.tsx b/src/components/clients/client-tabs.tsx
index 05b4243..719b6c2 100644
--- a/src/components/clients/client-tabs.tsx
+++ b/src/components/clients/client-tabs.tsx
@@ -14,6 +14,7 @@ import { ClientPipelineSummary } from '@/components/clients/client-pipeline-summ
import { ClientYachtsTab } from '@/components/clients/client-yachts-tab';
import { ClientCompaniesTab } from '@/components/clients/client-companies-tab';
import { ClientReservationsTab } from '@/components/clients/client-reservations-tab';
+import { ClientFilesTab } from '@/components/clients/client-files-tab';
import { ContactsEditor } from '@/components/clients/contacts-editor';
import { AddressesEditor, type Address } from '@/components/shared/addresses-editor';
import { EntityActivityFeed } from '@/components/shared/entity-activity-feed';
@@ -271,11 +272,7 @@ export function getClientTabs({ clientId, currentUserId, client }: ClientTabsOpt
{
id: 'files',
label: 'Files',
- content: (
-
-
File attachments coming soon.
-
- ),
+ content:
,
},
{
id: 'activity',
diff --git a/src/components/companies/company-tabs.tsx b/src/components/companies/company-tabs.tsx
index 59b147b..551820f 100644
--- a/src/components/companies/company-tabs.tsx
+++ b/src/components/companies/company-tabs.tsx
@@ -3,7 +3,6 @@
import { useMutation, useQueryClient } from '@tanstack/react-query';
import type { DetailTab } from '@/components/shared/detail-layout';
-import { EmptyState } from '@/components/shared/empty-state';
import { InlineEditableField } from '@/components/shared/inline-editable-field';
import { InlineCountryField } from '@/components/shared/inline-country-field';
import { SubdivisionCombobox } from '@/components/shared/subdivision-combobox';
@@ -227,11 +226,9 @@ export function getCompanyTabs({
/>
),
},
- {
- id: 'documents',
- label: 'Documents',
- content:
,
- },
+ // The Documents tab was a "Coming soon" stub. Hidden until the
+ // /api/v1/files endpoint accepts a companyId filter (the schema
+ // supports it; the validator doesn't).
{
id: 'notes',
label: 'Notes',