diff --git a/apps/calendar/apps/web/src/lib/components/calendar/StatsOverlay.svelte b/apps/calendar/apps/web/src/lib/components/calendar/StatsOverlay.svelte index 201928b93..47d7c1e28 100644 --- a/apps/calendar/apps/web/src/lib/components/calendar/StatsOverlay.svelte +++ b/apps/calendar/apps/web/src/lib/components/calendar/StatsOverlay.svelte @@ -57,8 +57,8 @@ }); - -{#if heatmapStore.enabled} + +{#if heatmapStore.enabled && settingsStore.sidebarCollapsed}
{#if collapsed} diff --git a/apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte b/apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte new file mode 100644 index 000000000..a739ad0a4 --- /dev/null +++ b/apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte @@ -0,0 +1,434 @@ + + +
+ + + +
+
+
+ +
+
+ {stats.eventsToday} + Heute +
+
+ +
+
+ +
+
+ {stats.eventsThisWeek} + Diese Woche +
+
+ +
+
+ +
+
+ {stats.upcomingEvents} + Anstehend +
+
+ +
+
+ +
+
+ {stats.busyHours}h + Stunden/Woche +
+
+
+ + +
+

+ + Letzte 7 Tage +

+
+ {#each miniTrend as day} +
+
0} + >
+ {day.label.charAt(0)} +
+ {/each} +
+
+ + + {#if stats.calendarActivity.length > 0} +
+

+ + Kalender-Aktivität +

+
+ {#each stats.calendarActivity.slice(0, 5) as cal} +
+
+ {cal.name} + {cal.total} +
+ {/each} +
+
+ {/if} + + +
+
+ + Ø {stats.avgDuration} Min +
+
+ + {stats.recurringEvents} wiederkehrend +
+
+ + {stats.allDayRatio.allDay} ganztägig +
+
+ + +
+ {stats.totalEvents} Events geladen +
+
+ + diff --git a/apps/calendar/apps/web/src/lib/components/calendar/YearView.svelte b/apps/calendar/apps/web/src/lib/components/calendar/YearView.svelte index 265e7a172..ed6b2a6e2 100644 --- a/apps/calendar/apps/web/src/lib/components/calendar/YearView.svelte +++ b/apps/calendar/apps/web/src/lib/components/calendar/YearView.svelte @@ -183,12 +183,18 @@
{#each getMonthDays(month) as day} {@const eventCount = getEventCount(day)} + {@const heatmapLevel = getHeatmapLevel(day)} - + {#if heatmapStore.enabled} + + {:else} + + {/if} @@ -144,7 +150,11 @@ class="calendar-sidebar-mobile mobile-only" class:collapsed={settingsStore.sidebarCollapsed} > - + {#if heatmapStore.enabled} + + {:else} + + {/if}