From 2f3473b73ff6cb72380394b4e532a3797914ccbc Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Wed, 28 Jan 2026 13:10:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(calendar):=20remove=20s?= =?UTF-8?q?tatistics=20and=20heatmap=20feature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unused statistics/heatmap functionality to reduce complexity: - Delete statistics.svelte.ts and heatmap.svelte.ts stores - Delete StatsSidebarSection.svelte and StatsOverlay.svelte components - Remove heatmap toggle button from toolbar - Remove "Statistiken" nav item and Cmd+3 shortcut - Clean up heatmap CSS from all calendar views --- .../calendar/CalendarToolbarContent.svelte | 11 - .../lib/components/calendar/DayView.svelte | 50 -- .../lib/components/calendar/MonthView.svelte | 52 --- .../components/calendar/MultiDayView.svelte | 49 +- .../components/calendar/StatsOverlay.svelte | 257 ----------- .../calendar/StatsSidebarSection.svelte | 434 ------------------ .../lib/components/calendar/WeekView.svelte | 49 +- .../lib/components/calendar/YearView.svelte | 72 +-- .../apps/web/src/lib/config/helpConfig.ts | 6 - .../apps/web/src/lib/stores/heatmap.svelte.ts | 190 -------- .../web/src/lib/stores/statistics.svelte.ts | 270 ----------- .../apps/web/src/routes/(app)/+layout.svelte | 13 - .../apps/web/src/routes/(app)/+page.svelte | 14 +- 13 files changed, 6 insertions(+), 1461 deletions(-) delete mode 100644 apps/calendar/apps/web/src/lib/components/calendar/StatsOverlay.svelte delete mode 100644 apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte delete mode 100644 apps/calendar/apps/web/src/lib/stores/heatmap.svelte.ts delete mode 100644 apps/calendar/apps/web/src/lib/stores/statistics.svelte.ts diff --git a/apps/calendar/apps/web/src/lib/components/calendar/CalendarToolbarContent.svelte b/apps/calendar/apps/web/src/lib/components/calendar/CalendarToolbarContent.svelte index 2d8a0eb65..7e786232d 100644 --- a/apps/calendar/apps/web/src/lib/components/calendar/CalendarToolbarContent.svelte +++ b/apps/calendar/apps/web/src/lib/components/calendar/CalendarToolbarContent.svelte @@ -1,7 +1,6 @@ - - -{#if heatmapStore.enabled && settingsStore.sidebarCollapsed} -
-{/if} - - diff --git a/apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte b/apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte deleted file mode 100644 index 86edc1838..000000000 --- a/apps/calendar/apps/web/src/lib/components/calendar/StatsSidebarSection.svelte +++ /dev/null @@ -1,434 +0,0 @@ - - - - - diff --git a/apps/calendar/apps/web/src/lib/components/calendar/WeekView.svelte b/apps/calendar/apps/web/src/lib/components/calendar/WeekView.svelte index 6dbb7078d..b5df3cd64 100644 --- a/apps/calendar/apps/web/src/lib/components/calendar/WeekView.svelte +++ b/apps/calendar/apps/web/src/lib/components/calendar/WeekView.svelte @@ -7,7 +7,6 @@ import { todosStore, type Task } from '$lib/stores/todos.svelte'; import { birthdaysStore, type BirthdayEvent } from '$lib/stores/birthdays.svelte'; import { eventContextMenuStore } from '$lib/stores/eventContextMenu.svelte'; - import { heatmapStore } from '$lib/stores/heatmap.svelte'; import BirthdayPopover from '$lib/components/birthday/BirthdayPopover.svelte'; import { useVisibleHours, useCurrentTimeIndicator, useBirthdayPopover } from '$lib/composables'; import { toDate } from '$lib/utils/eventDateHelpers'; @@ -887,21 +886,9 @@