diff --git a/frontend/src/views/MonthlyClosePage.tsx b/frontend/src/views/MonthlyClosePage.tsx index 54b792f..5af2b80 100644 --- a/frontend/src/views/MonthlyClosePage.tsx +++ b/frontend/src/views/MonthlyClosePage.tsx @@ -12,6 +12,7 @@ import { import { useEffect, useMemo, useRef, useState } from "react"; import { toast } from "sonner"; +import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"; import { Alert } from "@/components/ui/alert"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; @@ -156,14 +157,11 @@ function CrmDayItem({ ); } -function TeamspaceDayItem({ item, onNavigate }: { item: StatisticsTeamspaceDay; onNavigate: (to: string) => void }) { - const deltaVariant = item.delta_minutes === 0 ? "outline" : item.delta_minutes > 0 ? "success" : "destructive"; - +function TeamspaceDayItem({ item }: { item: StatisticsTeamspaceDay }) { return ( -
+
{formatDate(`${item.day}T00:00:00`)} - {item.session_count} Session(s)
@@ -173,15 +171,9 @@ function TeamspaceDayItem({ item, onNavigate }: { item: StatisticsTeamspaceDay;

{item.organization_name}

-
- Abgerechnet {formatMinutes(item.tracked_minutes)} - Teamspace {formatMinutes(item.crm_billed_minutes)} - Diff. {formatTeamspaceDelta(item.delta_minutes)} +
+ Teamspace {formatMinutes(item.crm_billed_minutes)}
-
); } @@ -410,29 +402,6 @@ export function MonthlyClosePage({ onNavigate }: MonthlyClosePageProps) { - - -
-
- Vergleich abgerechnete Zeiten Teamspace - Teamspace-Tageswerte je Ticket mit Datum der abgerechneten Session(s) und Projekt, sofern verfügbar. -
- {teamspaceDays.length} Eintrag(e) -
-
- - {teamspaceDays.length > 0 ? ( -
- {teamspaceDays.map((item) => ( - - ))} -
- ) : ( -

Für diesen Monat sind noch keine Teamspace-Werte zu abgerechneten Ticket-Tagen vorhanden.

- )} -
-
-
@@ -488,6 +457,28 @@ export function MonthlyClosePage({ onNavigate }: MonthlyClosePageProps) { + + + + + Teamspace-Einträge + {teamspaceDays.length} Eintrag(e) + + + + {teamspaceDays.length > 0 ? ( +
+ {teamspaceDays.map((item) => ( + + ))} +
+ ) : ( +

Für diesen Monat sind noch keine Teamspace-Werte zu abgerechneten Ticket-Tagen vorhanden.

+ )} +
+
+
+ {stats && stats.totals.sessions === 0 ? (