Move Animation Lab to release settings, Add Test Data to debug, fix localization to 100%

- Animation Lab moved out of #if DEBUG so it's available in release builds
- Add Test Data moved into #if DEBUG debug section
- Removed #if DEBUG wrapper from DebugAnimationSettingsView.swift
- Added 58 missing translations across all 6 languages (de, es, fr, ja, ko, pt-BR)
- Localization coverage restored from 87% to 100% (473/473 keys)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-23 19:12:52 -06:00
parent 5b8a98f763
commit 7660521540
3 changed files with 14485 additions and 12252 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,6 @@
// Debug-only view for experimenting with vote celebration animations.
//
#if DEBUG
import SwiftUI
// MARK: - Main Debug View
@@ -355,5 +354,3 @@ struct DebugVotingContentView: View {
DebugAnimationSettingsView()
}
}
#endif

View File

@@ -62,14 +62,14 @@ struct SettingsContentView: View {
privacyButton
analyticsToggle
addTestDataButton
animationLabButton
#if DEBUG
// Debug section
debugSectionHeader
addTestDataButton
bypassSubscriptionToggle
trialDateButton
animationLabButton
paywallPreviewButton
tipsPreviewButton
testNotificationsButton
@@ -200,6 +200,47 @@ struct SettingsContentView: View {
.padding(.horizontal, 4)
}
// MARK: - Animation Lab
@State private var showAnimationLab = false
private var animationLabButton: some View {
Button {
showAnimationLab = true
} label: {
HStack(spacing: 12) {
Image(systemName: "sparkles")
.font(.title2)
.foregroundColor(.purple)
.frame(width: 32)
VStack(alignment: .leading, spacing: 2) {
Text("Animation Lab")
.foregroundColor(textColor)
Text("Experiment with vote celebrations")
.font(.caption)
.foregroundStyle(.secondary)
}
Spacer()
Image(systemName: "chevron.right")
.font(.caption)
.foregroundStyle(.tertiary)
}
.padding()
}
.background(theme.currentTheme.secondaryBGColor)
.fixedSize(horizontal: false, vertical: true)
.cornerRadius(Constants.viewsCornerRaidus, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight])
.sheet(isPresented: $showAnimationLab) {
NavigationStack {
DebugAnimationSettingsView()
}
}
}
// MARK: - Debug Section
#if DEBUG
@@ -298,47 +339,9 @@ struct SettingsContentView: View {
}
}
@State private var showAnimationLab = false
@State private var showPaywallPreview = false
@State private var showTipsPreview = false
private var animationLabButton: some View {
Button {
showAnimationLab = true
} label: {
HStack(spacing: 12) {
Image(systemName: "sparkles")
.font(.title2)
.foregroundColor(.purple)
.frame(width: 32)
VStack(alignment: .leading, spacing: 2) {
Text("Animation Lab")
.foregroundColor(textColor)
Text("Experiment with vote celebrations")
.font(.caption)
.foregroundStyle(.secondary)
}
Spacer()
Image(systemName: "chevron.right")
.font(.caption)
.foregroundStyle(.tertiary)
}
.padding()
}
.background(theme.currentTheme.secondaryBGColor)
.fixedSize(horizontal: false, vertical: true)
.cornerRadius(Constants.viewsCornerRaidus, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight])
.sheet(isPresented: $showAnimationLab) {
NavigationStack {
DebugAnimationSettingsView()
}
}
}
private var paywallPreviewButton: some View {
Button {
showPaywallPreview = true