Refactor ZStack layouts to .background(), add Year View accessibility IDs, triage QA test plan
Replace ZStack-with-gradient patterns with idiomatic .background() modifier across onboarding, customize, and settings views. Add accessibility identifiers to Year View charts for UI test automation. Mark 67 impossible-to-automate tests RED in QA plan and scaffold initial Year View and Settings onboarding tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -522,6 +522,7 @@ struct YearCard: View, Equatable {
|
||||
}
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityIdentifier(AccessibilityID.YearView.cardHeader(year: year))
|
||||
|
||||
Spacer()
|
||||
|
||||
@@ -533,6 +534,7 @@ struct YearCard: View, Equatable {
|
||||
.foregroundColor(textColor.opacity(0.6))
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityIdentifier(AccessibilityID.YearView.shareButton)
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 12)
|
||||
@@ -543,6 +545,7 @@ struct YearCard: View, Equatable {
|
||||
// Donut Chart
|
||||
MoodDonutChart(metrics: animatedMetrics, moodTint: moodTint)
|
||||
.frame(width: 100, height: 100)
|
||||
.accessibilityIdentifier(AccessibilityID.YearView.donutChart)
|
||||
|
||||
// Bar Chart
|
||||
VStack(spacing: 6) {
|
||||
@@ -574,10 +577,12 @@ struct YearCard: View, Equatable {
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
.accessibilityIdentifier(AccessibilityID.YearView.barChart)
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.bottom, 12)
|
||||
.transition(.opacity.combined(with: .move(edge: .top)))
|
||||
.accessibilityIdentifier(AccessibilityID.YearView.statsSection)
|
||||
}
|
||||
|
||||
Divider()
|
||||
|
||||
Reference in New Issue
Block a user