diff --git a/apps/web/src/routes/heute.tsx b/apps/web/src/routes/heute.tsx index ce2c151..3e6295f 100644 --- a/apps/web/src/routes/heute.tsx +++ b/apps/web/src/routes/heute.tsx @@ -219,9 +219,7 @@ function TodoRow({ {todo.title} @@ -358,7 +356,10 @@ function CheckInOutBar({ const duration = checkedInAt && checkedOutAt ? formatDurationCompact( - Math.max(0, Math.round((new Date(checkedOutAt).getTime() - new Date(checkedInAt).getTime()) / 1000)), + Math.max( + 0, + Math.round((new Date(checkedOutAt).getTime() - new Date(checkedInAt).getTime()) / 1000), + ), ) : null; @@ -542,7 +543,12 @@ function EinstempeltView({ todos, entry, }: { - todos: Array<{ id: string; title: string; status: 'open' | 'done' | 'dropped'; unplanned?: boolean }>; + todos: Array<{ + id: string; + title: string; + status: 'open' | 'done' | 'dropped'; + unplanned?: boolean; + }>; entry: { status: 'begun' | 'full' | 'absent'; checkedInAt: string | Date | null; diff --git a/apps/web/src/routes/lead.tsx b/apps/web/src/routes/lead.tsx index 12e8ab2..0b60fea 100644 --- a/apps/web/src/routes/lead.tsx +++ b/apps/web/src/routes/lead.tsx @@ -297,9 +297,7 @@ function Header({ lead, onBack }: { lead: LeadDossier; onBack: () => void }) { Owner - update.mutate({ id: leadId, vertrauenslevel: e.target.value ? Number(e.target.value) : null }) + update.mutate({ + id: leadId, + vertrauenslevel: e.target.value ? Number(e.target.value) : null, + }) } className="rounded-[var(--radius-md)] border border-[var(--color-border)] bg-white px-2 py-1 text-sm" > @@ -687,8 +685,18 @@ function AddContactForm({ leadId, onDone }: { leadId: string; onDone: () => void }} >
- setName(e.target.value)} className={inputCls} /> - setRolle(e.target.value)} className={inputCls} /> + setName(e.target.value)} + className={inputCls} + /> + setRolle(e.target.value)} + className={inputCls} + /> - setEmail(e.target.value)} className={inputCls} /> - setTelefon(e.target.value)} className={inputCls} /> - setLinkedin(e.target.value)} className={inputCls} /> - setSprache(e.target.value)} className={inputCls} /> - setSeit(e.target.value)} className={inputCls} /> + setEmail(e.target.value)} + className={inputCls} + /> + setTelefon(e.target.value)} + className={inputCls} + /> + setLinkedin(e.target.value)} + className={inputCls} + /> + setSprache(e.target.value)} + className={inputCls} + /> + setSeit(e.target.value)} + className={inputCls} + />
@@ -832,7 +869,12 @@ function AddTouchpointForm({ leadId, onDone }: { leadId: string; onDone: () => v }} >
- setDatum(e.target.value)} className={inputCls} /> + setDatum(e.target.value)} + className={inputCls} + /> setOutcome(e.target.value)} className={inputCls} /> + setOutcome(e.target.value)} + className={inputCls} + />
@@ -904,7 +956,9 @@ function OffeneFragenSection({ persist(fragen.map((x, j) => (j === i ? { ...x, done: !x.done } : x))) } /> - + {f.text} @@ -1010,7 +1074,12 @@ function AnhaengeSection({ function ExternalLink({ url, label }: { url: string; label?: string }) { const href = url.startsWith('http') ? url : `https://${url}`; return ( - + {label ?? url} ); diff --git a/apps/web/src/routes/projekt.tsx b/apps/web/src/routes/projekt.tsx index 9a00458..f45097e 100644 --- a/apps/web/src/routes/projekt.tsx +++ b/apps/web/src/routes/projekt.tsx @@ -367,7 +367,9 @@ function ZielSection({ projectId, project: p }: { projectId: string; project: Pr const [desc, setDesc] = useState(p.description ?? ''); const [nichtZiele, setNichtZiele] = useState(p.nichtZiele ?? ''); const [liefer, setLiefer] = useState(p.liefergegenstaende ?? ''); - const [flex, setFlex] = useState((p.zieldreieckFlex as ZieldreieckFlex) ?? ''); + const [flex, setFlex] = useState( + (p.zieldreieckFlex as ZieldreieckFlex) ?? '', + ); const update = trpc.project.update.useMutation({ onSuccess: async () => { toast(voice.toast.saved); @@ -424,11 +426,24 @@ function ZielSection({ projectId, project: p }: { projectId: string; project: Pr