Show month name instead of "Monthly Check-in" as card title

Fixes #16

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
alexandrev-tibco
2026-02-11 23:43:23 +01:00
parent 5ceeb93d91
commit 14af7deeda
@@ -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 { var body: some View {
VStack(alignment: .leading, spacing: 12) { VStack(alignment: .leading, spacing: 12) {
Text("Monthly Check-in") Text(currentMonthLabel)
.font(.headline) .font(.headline)
Text("Keep a calm, deliberate rhythm. Update your sources and add a short note.") Text("Keep a calm, deliberate rhythm. Update your sources and add a short note.")