diff --git a/Journal.App/src/lib/components/CalendarWidget.svelte b/Journal.App/src/lib/components/CalendarWidget.svelte index 84de1e8..ae436a9 100644 --- a/Journal.App/src/lib/components/CalendarWidget.svelte +++ b/Journal.App/src/lib/components/CalendarWidget.svelte @@ -3,7 +3,6 @@ export let onSelectedDateChange: (payload: { year: number; month: number; day: number; key: string }) => void = () => {}; export let onDateActivate: (payload: { year: number; month: number; day: number; key: string }) => void = () => {}; - export let signalsByDate: Record = {}; const today = new Date(); let currentYear = today.getFullYear(); @@ -33,11 +32,6 @@ currentMonth = next.getMonth(); } - function signalFor(cell: CalendarCell): { count: number; hasTrigger: boolean; hasMood: boolean; hasOpenTodos: boolean } | null { - const key = getDateKey(cell.year, cell.month, cell.day); - return signalsByDate[key] ?? null; - } - function changeMonth(offset: number) { setViewDate(currentYear, currentMonth + offset); } @@ -154,16 +148,6 @@ on:click={() => selectCell(cell)} > {cell.day} - {#if signalFor(cell)} - {#if signalFor(cell)!.count > 0} - {signalFor(cell)!.count} - {/if} - - {/if} {/each} @@ -253,49 +237,6 @@ line-height: 1; } - .entry-count { - position: absolute; - top: 3px; - right: 3px; - min-width: 12px; - height: 12px; - padding: 0 3px; - border-radius: 999px; - background: var(--surface-3); - color: var(--text-primary); - font-size: 0.58rem; - line-height: 12px; - border: 1px solid var(--border-soft); - } - - .signals { - position: absolute; - bottom: 3px; - left: 50%; - transform: translateX(-50%); - display: inline-flex; - gap: 2px; - } - - .signal { - width: 4px; - height: 4px; - border-radius: 999px; - display: inline-block; - } - - .signal.mood { - background: #6ba7ff; - } - - .signal.trigger { - background: #f08c6c; - } - - .signal.todo { - background: #f2c266; - } - .calendar-cell:hover { color: var(--text-primary); background: var(--bg-hover); diff --git a/Journal.App/src/lib/components/SidePanel.svelte b/Journal.App/src/lib/components/SidePanel.svelte index efa3747..8a82600 100644 --- a/Journal.App/src/lib/components/SidePanel.svelte +++ b/Journal.App/src/lib/components/SidePanel.svelte @@ -1,9 +1,12 @@