diff --git a/client/src/components/Admin/addons/AiAdminConfig.tsx b/client/src/components/Admin/addons/AiAdminConfig.tsx index 62ce59202..ac8fb22f6 100644 --- a/client/src/components/Admin/addons/AiAdminConfig.tsx +++ b/client/src/components/Admin/addons/AiAdminConfig.tsx @@ -110,8 +110,11 @@ function InstanceConnection({ A }: { A: AiAdmin }) { const { t } = useTranslation(); const { live, connection, replacing, cancelReplace, onConnected } = A.instance; return ( - {t('assistant.admin.connectionNone')}}> + {t('assistant.admin.connectionNone')}} + >
{!replacing && } {A.showPanel && ( diff --git a/client/src/components/Admin/addons/ParsingSettings.tsx b/client/src/components/Admin/addons/ParsingSettings.tsx index 556fce98f..faa028575 100644 --- a/client/src/components/Admin/addons/ParsingSettings.tsx +++ b/client/src/components/Admin/addons/ParsingSettings.tsx @@ -1,5 +1,5 @@ import { asLlmVision, LLM_VISION_MODES, type LlmVision } from '@trek/shared'; -import { Bot, Image, Check, RefreshCw } from 'lucide-react'; +import { Bot, Check, Image, RefreshCw } from 'lucide-react'; import React, { useId } from 'react'; import { useTranslation } from '../../../i18n'; import { ProviderMark } from '../../Settings/ai/AiConnectPanel'; diff --git a/client/src/components/Admin/paddle/PaddleAutoLoadParts.tsx b/client/src/components/Admin/paddle/PaddleAutoLoadParts.tsx index ba9e1001f..0d04f2a54 100644 --- a/client/src/components/Admin/paddle/PaddleAutoLoadParts.tsx +++ b/client/src/components/Admin/paddle/PaddleAutoLoadParts.tsx @@ -37,7 +37,10 @@ export function AutoLoadSettings({ admin }: { admin: Admin }) {
-
+
value={settings.mode} onChange={(mode) => void save({ mode })} @@ -56,7 +59,10 @@ export function AutoLoadSettings({ admin }: { admin: Admin }) { {t(`admin.paddleRegions.auto.modeHint.${settings.mode}`)}
{settings.mode === 'auto' && ( -
+
{t('admin.paddleRegions.auto.maxSize')} value={String(settings.max_mb)} @@ -136,8 +142,11 @@ export function RequestList({ admin }: { admin: Admin }) { const open = admin.requests.filter((request) => !request.declined).length; return (
- 0 && {open}}> + 0 && {open}} + > {ordered.map((request) => ( diff --git a/client/src/components/Admin/paddle/PaddleRegionsPanel.tsx b/client/src/components/Admin/paddle/PaddleRegionsPanel.tsx index 661729b5a..95d4d67ab 100644 --- a/client/src/components/Admin/paddle/PaddleRegionsPanel.tsx +++ b/client/src/components/Admin/paddle/PaddleRegionsPanel.tsx @@ -1,5 +1,17 @@ import type { PaddleRegion, PaddleRegionCatalogEntry } from '@trek/shared'; -import { Check, ChevronRight, Info, Loader2, MapPin, Plus, RefreshCw, Search, Trash2, Waves, WifiOff } from 'lucide-react'; +import { + Check, + ChevronRight, + Info, + Loader2, + MapPin, + Plus, + RefreshCw, + Search, + Trash2, + Waves, + WifiOff, +} from 'lucide-react'; import { useState } from 'react'; import { useDateFormat } from '../../../hooks/useDateFormat'; import { useTranslation } from '../../../i18n'; diff --git a/client/src/components/Assistant/AssistantMemoryDialog.tsx b/client/src/components/Assistant/AssistantMemoryDialog.tsx index bf69e5ab6..2cebb0bcb 100644 --- a/client/src/components/Assistant/AssistantMemoryDialog.tsx +++ b/client/src/components/Assistant/AssistantMemoryDialog.tsx @@ -1,4 +1,4 @@ -import { Zap, NotebookPen, Plus } from 'lucide-react'; +import { NotebookPen, Plus, Zap } from 'lucide-react'; import { useId, useState } from 'react'; import { useTranslation } from '../../i18n'; diff --git a/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx b/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx index e539fb048..040cb1b94 100644 --- a/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx +++ b/client/src/components/Atlas/tourActivity/TourActivityStatsDialog.tsx @@ -1,5 +1,5 @@ import type { TourActivityTotals, TourTypeKey } from '@trek/shared'; -import { ChartBar, Route, Footprints } from 'lucide-react'; +import { ChartBar, Footprints, Route } from 'lucide-react'; import { createElement, useId } from 'react'; import { useTranslation } from '../../../i18n'; import type { DistanceUnit } from '../../../types'; @@ -99,7 +99,8 @@ function StatsBody({ stats }: { stats: TourActivityStats }) { )} - diff --git a/client/src/components/Budget/ExpenseReceiptsSection.tsx b/client/src/components/Budget/ExpenseReceiptsSection.tsx index 1e134b57a..5bea66bc6 100644 --- a/client/src/components/Budget/ExpenseReceiptsSection.tsx +++ b/client/src/components/Budget/ExpenseReceiptsSection.tsx @@ -45,7 +45,8 @@ export function ExpenseReceiptsSection({ const canLink = linkable.length > 0; return ( -
- 1 ? ( diff --git a/client/src/components/Journey/JourneyRecordingReview.tsx b/client/src/components/Journey/JourneyRecordingReview.tsx index d6e96b04d..34ce34a39 100644 --- a/client/src/components/Journey/JourneyRecordingReview.tsx +++ b/client/src/components/Journey/JourneyRecordingReview.tsx @@ -1,5 +1,5 @@ import type { JourneyRecordedDay, JourneyRecordingPreview } from '@trek/shared'; -import { Globe, ListFilter, AlertTriangle, Clock, Info, Loader2, RefreshCw, Route, Users } from 'lucide-react'; +import { AlertTriangle, Clock, Globe, Info, ListFilter, Loader2, RefreshCw, Route, Users } from 'lucide-react'; import { useState, type ReactNode } from 'react'; import { useTranslation } from '../../i18n'; import { useSettingsStore } from '../../store/settingsStore'; diff --git a/client/src/components/Planner/BookingNotesFilesCosts.tsx b/client/src/components/Planner/BookingNotesFilesCosts.tsx index 9a486d1d7..2c8d1fdd0 100644 --- a/client/src/components/Planner/BookingNotesFilesCosts.tsx +++ b/client/src/components/Planner/BookingNotesFilesCosts.tsx @@ -1,5 +1,5 @@ -import { useId, type RefObject } from 'react'; import { NotebookPen, Paperclip } from 'lucide-react'; +import { useId, type RefObject } from 'react'; import { useTranslation } from '../../i18n'; import type { TripFile } from '../../types'; diff --git a/client/src/components/Settings/ai/AiConnectPanel.tsx b/client/src/components/Settings/ai/AiConnectPanel.tsx index a3916edee..b5558726a 100644 --- a/client/src/components/Settings/ai/AiConnectPanel.tsx +++ b/client/src/components/Settings/ai/AiConnectPanel.tsx @@ -351,10 +351,7 @@ const SCOPE_MODES: Record = { instance: ['key', 'chatgpt', 'custom'], }; -const MODE_TILES: Record< - AiConnectMode, - { titleKey: string; subtitleKey: string; mark: React.ReactNode } -> = { +const MODE_TILES: Record = { chatgpt: { titleKey: 'assistant.connect.chatgpt', subtitleKey: 'assistant.connect.chatgptHint', @@ -406,9 +403,11 @@ export default function AiConnectPanel({ scope, onConnected, initialMode, prefil
button>span:first-child]:bg-surface-secondary' - : 'grid grid-cols-2 gap-2 max-sm:grid-cols-1'} + className={ + scope === 'instance' + ? 'grid gap-2 [&>button>span:first-child]:bg-surface-secondary' + : 'grid grid-cols-2 gap-2 max-sm:grid-cols-1' + } > {SCOPE_MODES[scope].map((m) => { const tile = MODE_TILES[m]; diff --git a/client/src/components/Tours/TourDetailDialog.tsx b/client/src/components/Tours/TourDetailDialog.tsx index e4a134b5f..2b88c984e 100644 --- a/client/src/components/Tours/TourDetailDialog.tsx +++ b/client/src/components/Tours/TourDetailDialog.tsx @@ -1,8 +1,9 @@ import type { TourListItem } from '@trek/shared'; -import { Palette, CalendarDays, Text, NotebookPen, Paperclip, +import { AlertTriangle, ArrowDown, ArrowUp, + CalendarDays, Check, CheckCheck, ChevronDown, @@ -17,9 +18,13 @@ import { Palette, CalendarDays, Text, NotebookPen, Paperclip, Loader2, Minus, Navigation, + NotebookPen, + Palette, + Paperclip, Pencil, Route, Ruler, + Text, Upload, } from 'lucide-react'; import { createElement, useEffect, useMemo, useRef, useState, type ComponentType } from 'react'; @@ -876,7 +881,8 @@ function TourFilesSection({ if (placeFiles.length === 0 && !onFileUpload) return null; return ( - -
); @@ -370,8 +370,11 @@ export function TourDetailsSection({ ); if (framed) { return ( - } title={title} - fold={{ expanded, onToggle: toggle, label: toggleLabel }}> + } + title={title} + fold={{ expanded, onToggle: toggle, label: toggleLabel }} + >
{fields}
); @@ -379,14 +382,7 @@ export function TourDetailsSection({ return ( {title}} - action={ - - } + action={} >