diff --git a/apps/web/src/components/time/TimelineSection.tsx b/apps/web/src/components/time/TimelineSection.tsx index e2ff109..ce937f5 100644 --- a/apps/web/src/components/time/TimelineSection.tsx +++ b/apps/web/src/components/time/TimelineSection.tsx @@ -80,10 +80,7 @@ export function TimelineSection() { )} {manualOpen && ( - setManualOpen(false)} - todos={todayQuery.data?.todos ?? []} - /> + setManualOpen(false)} todos={todayQuery.data?.todos ?? []} /> )} ); @@ -258,7 +255,10 @@ function TimelineRow({

{label}

{CATEGORY_LABEL[entry.category]} - {entry.description && !todoTitle && entry.description !== label && ` · ${entry.description}`} + {entry.description && + !todoTitle && + entry.description !== label && + ` · ${entry.description}`}

-

- {p.name} - {p.modus !== 'standard' && ( - - {MODUS_META[p.modus].label} - - )} -

-

- {p.deadline ? `bis ${p.deadline}` : 'kein Deadline'} -

+

+ {p.name} + {p.modus !== 'standard' && ( + + {MODUS_META[p.modus].label} + + )} +

+

+ {p.deadline ? `bis ${p.deadline}` : 'kein Deadline'} +

@@ -373,14 +373,15 @@ function LeadsTeaser() { const q = trpc.lead.list.useQuery(); const leads = q.data ?? []; const offen = leads.filter((l) => l.status !== 'won' && l.status !== 'lost'); - const top = [...offen] - .sort((a, b) => b.score - a.score) - .slice(0, 3); + const top = [...offen].sort((a, b) => b.score - a.score).slice(0, 3); return (

Leads

- + Alle Leads ({leads.length}) →
@@ -409,7 +410,9 @@ function LeadsTeaser() { {l.firma} {l.subSegment && ( - {l.subSegment} + + {l.subSegment} + )} @@ -456,4 +459,3 @@ function ProjektListeFuerBereich({ slug }: { slug: 'vertrieb' | 'marketing' }) { ); } - diff --git a/apps/web/src/routes/lead.tsx b/apps/web/src/routes/lead.tsx index 5884075..ba7d3d2 100644 --- a/apps/web/src/routes/lead.tsx +++ b/apps/web/src/routes/lead.tsx @@ -75,10 +75,7 @@ export function LeadRoute() { if (q.isPending) return ; if (q.isError || !q.data) return ( - void q.refetch()} - /> + void q.refetch()} /> ); const { lead, contacts, touchpoints } = q.data; diff --git a/apps/web/src/routes/leads.tsx b/apps/web/src/routes/leads.tsx index 48291f4..cfba120 100644 --- a/apps/web/src/routes/leads.tsx +++ b/apps/web/src/routes/leads.tsx @@ -7,11 +7,7 @@ import { voice } from '../lib/voice'; import { Card } from '../components/ui/Card'; import { Button } from '../components/ui/Button'; import { SkeletonCard } from '../components/ui/SkeletonCard'; -import { - LEAD_STATUS_META, - LEAD_STATUS_ORDER, - type LeadStatus, -} from '../lib/lead-meta'; +import { LEAD_STATUS_META, LEAD_STATUS_ORDER, type LeadStatus } from '../lib/lead-meta'; export function LeadsRoute() { const q = trpc.lead.list.useQuery(); @@ -47,9 +43,7 @@ export function LeadsRoute() { {leads.length === 0 ? ( -

- Noch keine Leads. Leg einen an. -

+

Noch keine Leads. Leg einen an.

) : ( @@ -113,7 +107,10 @@ function LeadImportDialog({ onClose }: { onClose: () => void }) { } return ( -
+
e.stopPropagation()} @@ -167,8 +164,12 @@ function LeadImportDialog({ onClose }: { onClose: () => void }) {
  • {result.contacts} Kontakte angelegt
  • {result.touchpoints} Notizen als Log-Eintrag
  • - {result.skippedDuplicate > 0 &&
  • {result.skippedDuplicate} Duplikate übersprungen
  • } - {result.skippedEmpty > 0 &&
  • {result.skippedEmpty} leere Zeilen übersprungen
  • } + {result.skippedDuplicate > 0 && ( +
  • {result.skippedDuplicate} Duplikate übersprungen
  • + )} + {result.skippedEmpty > 0 && ( +
  • {result.skippedEmpty} leere Zeilen übersprungen
  • + )}
)} @@ -281,7 +282,10 @@ function LeadCreateDialog({ onClose }: { onClose: () => void }) { } return ( -
+
e.stopPropagation()} @@ -301,7 +305,11 @@ function LeadCreateDialog({ onClose }: { onClose: () => void }) {
- setBranche(e.target.value)} className={inputCls} /> + setBranche(e.target.value)} + className={inputCls} + /> void }) {
- setWebsite(e.target.value)} className={inputCls} /> + setWebsite(e.target.value)} + className={inputCls} + /> - setQuelle(e.target.value)} className={inputCls} /> + setQuelle(e.target.value)} + className={inputCls} + /> - setProjectId(e.target.value)} + className={inputCls} + > {projects.map((p) => (