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:
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,6 @@
|
|||||||
// Debug-only view for experimenting with vote celebration animations.
|
// Debug-only view for experimenting with vote celebration animations.
|
||||||
//
|
//
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
// MARK: - Main Debug View
|
// MARK: - Main Debug View
|
||||||
@@ -355,5 +354,3 @@ struct DebugVotingContentView: View {
|
|||||||
DebugAnimationSettingsView()
|
DebugAnimationSettingsView()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -62,14 +62,14 @@ struct SettingsContentView: View {
|
|||||||
privacyButton
|
privacyButton
|
||||||
analyticsToggle
|
analyticsToggle
|
||||||
|
|
||||||
addTestDataButton
|
animationLabButton
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
// Debug section
|
// Debug section
|
||||||
debugSectionHeader
|
debugSectionHeader
|
||||||
|
addTestDataButton
|
||||||
bypassSubscriptionToggle
|
bypassSubscriptionToggle
|
||||||
trialDateButton
|
trialDateButton
|
||||||
animationLabButton
|
|
||||||
paywallPreviewButton
|
paywallPreviewButton
|
||||||
tipsPreviewButton
|
tipsPreviewButton
|
||||||
testNotificationsButton
|
testNotificationsButton
|
||||||
@@ -200,6 +200,47 @@ struct SettingsContentView: View {
|
|||||||
.padding(.horizontal, 4)
|
.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
|
// MARK: - Debug Section
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
@@ -298,47 +339,9 @@ struct SettingsContentView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@State private var showAnimationLab = false
|
|
||||||
@State private var showPaywallPreview = false
|
@State private var showPaywallPreview = false
|
||||||
@State private var showTipsPreview = 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 {
|
private var paywallPreviewButton: some View {
|
||||||
Button {
|
Button {
|
||||||
showPaywallPreview = true
|
showPaywallPreview = true
|
||||||
|
|||||||
Reference in New Issue
Block a user