From 14af7deeda538afd6455462bd330a65e08b65d05 Mon Sep 17 00:00:00 2001 From: alexandrev-tibco Date: Wed, 11 Feb 2026 23:43:23 +0100 Subject: [PATCH] Show month name instead of "Monthly Check-in" as card title Fixes #16 Co-Authored-By: Claude Opus 4.6 --- PortfolioJournal/Views/Dashboard/DashboardView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PortfolioJournal/Views/Dashboard/DashboardView.swift b/PortfolioJournal/Views/Dashboard/DashboardView.swift index 8458253..e3ed19f 100644 --- a/PortfolioJournal/Views/Dashboard/DashboardView.swift +++ b/PortfolioJournal/Views/Dashboard/DashboardView.swift @@ -447,9 +447,16 @@ struct MonthlyCheckInCard: View { ) } + private var currentMonthLabel: String { + let formatter = DateFormatter() + formatter.dateFormat = "LLLL yyyy" + let effectiveMonth = MonthlyCheckInStore.effectiveMonth(for: Date(), relativeTo: Date()) + return formatter.string(from: effectiveMonth) + } + var body: some View { VStack(alignment: .leading, spacing: 12) { - Text("Monthly Check-in") + Text(currentMonthLabel) .font(.headline) Text("Keep a calm, deliberate rhythm. Update your sources and add a short note.")