From 259d23f9718c9c642d5a40055ec4216628d47d18 Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 2 Dec 2026 23:05:12 +0100 Subject: [PATCH] fix(ci): repair strict types and empty dashboard card Keep the dashboard card class when it spans all columns. Match the place form payload to the service-stop placement type and make dialog card hints optional. Document the independent receipt copy and format the files flagged by CI. --- client/scripts/strict-baseline.json | 1 - .../Assistant/AssistantPlaceProposal.tsx | 2 +- .../src/components/Planner/PlaceFormModal.tsx | 8 ++------ .../components/Planner/usePlaceFormModal.ts | 18 +++++++++--------- client/src/components/shared/dialogParts.tsx | 4 ++-- client/src/hooks/useIsPhone.ts | 2 +- client/src/mobile/useIsPhone.ts | 2 +- client/src/pages/DashboardPage.tsx | 2 +- .../assistant-booking-import.service.ts | 4 ++++ 9 files changed, 21 insertions(+), 22 deletions(-) diff --git a/client/scripts/strict-baseline.json b/client/scripts/strict-baseline.json index 4e985d1dd..640af04d8 100644 --- a/client/scripts/strict-baseline.json +++ b/client/scripts/strict-baseline.json @@ -48,7 +48,6 @@ "src/components/Planner/DayPlanSidebar.tsx": 52, "src/components/Planner/DayPlanSidebarNoteModal.test.tsx": 1, "src/components/Planner/PlaceFormModal.test.tsx": 3, - "src/components/Planner/PlaceFormModal.tsx": 1, "src/components/Planner/PlaceInspector.tsx": 16, "src/components/Planner/PlacesBulkCategoryModal.test.tsx": 1, "src/components/Planner/PlacesSidebar.tsx": 1, diff --git a/client/src/components/Assistant/AssistantPlaceProposal.tsx b/client/src/components/Assistant/AssistantPlaceProposal.tsx index 1d4ccc1bb..9a4cdb2db 100644 --- a/client/src/components/Assistant/AssistantPlaceProposal.tsx +++ b/client/src/components/Assistant/AssistantPlaceProposal.tsx @@ -2,8 +2,8 @@ import type { AssistantChangePreview, AssistantPlanEdits } from '@trek/shared'; import { assistantPlanEditsSchema, parsePlaceHours, placeOpeningHoursSchema } from '@trek/shared'; import { useCallback, useEffect, useState } from 'react'; -import { useTranslation } from '../../i18n'; import { useIsPhone } from '../../hooks/useIsPhone'; +import { useTranslation } from '../../i18n'; import { useAssistantStore } from '../../store/assistantStore'; import { useTripStore } from '../../store/tripStore'; import PlaceFormModal from '../Planner/PlaceFormModal'; diff --git a/client/src/components/Planner/PlaceFormModal.tsx b/client/src/components/Planner/PlaceFormModal.tsx index 21c0b0cdb..13ba02dc7 100644 --- a/client/src/components/Planner/PlaceFormModal.tsx +++ b/client/src/components/Planner/PlaceFormModal.tsx @@ -544,9 +544,7 @@ function PlaceSearchFields({ state: S, fieldId }: { state: PlaceFormState; field onClick={() => { if (!form.name.trim()) handleChange('name', S.emptySearch!); S.setEmptySearch(null); - document - .getElementById(`${fieldId}-contact`) - ?.scrollIntoView?.({ behavior: 'smooth', block: 'center' }); + document.getElementById(`${fieldId}-contact`)?.scrollIntoView?.({ behavior: 'smooth', block: 'center' }); }} className="flex-none rounded-full bg-accent px-3 py-1.5 font-semibold text-accent-text hover:opacity-90" style={fs(12, 'body')} @@ -563,9 +561,7 @@ function PlaceSearchFields({ state: S, fieldId }: { state: PlaceFormState; field