+ No entries yet. Fill in some months to see your letters here. +
+${inner}
`; + }) + .join(""); +} diff --git a/src/components/Home.tsx b/src/components/Home.tsx index e2096a6..1021813 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -14,7 +14,6 @@ export function Home({ data, currentYear, currentMonth, onNavigate }: HomeProps) const yearEnd = data.yearEndEntries.find((e) => e.year === currentYear); const podcast = data.podcastEntries?.find((e) => e.year === currentYear); - const accessibleMonths = currentMonth + 1; // 0-indexed, months up to today const completedMonths = monthEntries.length; const pct = Math.round((completedMonths / 12) * 100); diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 073e95b..3bec862 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -6,7 +6,8 @@ export type View = | { kind: "month"; year: number; month: number } | { kind: "yearEnd"; year: number } | { kind: "letter"; year: number } - | { kind: "podcast"; year: number }; + | { kind: "podcast"; year: number } + | { kind: "allYears" }; interface SidebarProps { data: AppData; @@ -36,6 +37,17 @@ export function Sidebar({ Annual Letter +