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 @@
+
+
+
+
+
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}