Makefile, linting, and formatting
This commit is contained in:
@@ -526,7 +526,6 @@ struct AddAttemptView: View {
|
||||
|
||||
dismiss()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct ProblemSelectionRow: View {
|
||||
@@ -1302,7 +1301,6 @@ struct EditAttemptView: View {
|
||||
|
||||
dismiss()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#Preview {
|
||||
|
||||
@@ -168,7 +168,6 @@ struct AddEditProblemView: View {
|
||||
await loadSelectedPhotos()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
@@ -224,7 +223,6 @@ struct AddEditProblemView: View {
|
||||
.fill(.quaternary)
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -366,7 +366,7 @@ struct BarChartView: View {
|
||||
)
|
||||
} else {
|
||||
VStack(alignment: .leading) {
|
||||
// Chart area
|
||||
// Chart area
|
||||
HStack(alignment: .bottom, spacing: spacing / CGFloat(sortedData.count)) {
|
||||
ForEach(Array(sortedData.enumerated()), id: \.offset) { index, gradeCount in
|
||||
VStack(spacing: 4) {
|
||||
|
||||
@@ -231,7 +231,6 @@ struct SessionDetailView: View {
|
||||
uniqueProblemsCompleted: completedProblems.count
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct SessionHeaderCard: View {
|
||||
@@ -305,7 +304,6 @@ struct SessionHeaderCard: View {
|
||||
formatter.dateStyle = .full
|
||||
return formatter.string(from: date)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct SessionStatsCard: View {
|
||||
|
||||
@@ -182,7 +182,8 @@ struct ProblemsView: View {
|
||||
Button(action: {
|
||||
showingFilters = true
|
||||
}) {
|
||||
Image(systemName: (selectedClimbType != nil || selectedGym != nil) ? "line.3.horizontal.decrease.circle.fill" : "line.3.horizontal.decrease.circle")
|
||||
let hasFilters = selectedClimbType != nil || selectedGym != nil
|
||||
Image(systemName: hasFilters ? "line.3.horizontal.decrease.circle.fill" : "line.3.horizontal.decrease.circle")
|
||||
.font(.system(size: 16, weight: .medium))
|
||||
.foregroundColor(themeManager.accentColor)
|
||||
}
|
||||
@@ -365,7 +366,6 @@ struct FilterSection: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct FilterChip: View {
|
||||
@@ -392,8 +392,6 @@ struct FilterChip: View {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct ProblemRow: View {
|
||||
let problem: Problem
|
||||
@EnvironmentObject var dataManager: ClimbingDataManager
|
||||
|
||||
@@ -256,7 +256,6 @@ struct ActiveSessionBanner: View {
|
||||
SessionDetailView(sessionId: session.id)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
struct SessionRow: View {
|
||||
|
||||
@@ -251,9 +251,16 @@ struct DataManagementSection: View {
|
||||
dataManager.resetAllData()
|
||||
}
|
||||
} message: {
|
||||
Text(
|
||||
"Are you sure you want to reset all data? This will permanently delete:\n\n• All gyms and their information\n• All problems and their images\n• All climbing sessions\n• All attempts and progress data\n\nThis action cannot be undone. Consider exporting your data first."
|
||||
)
|
||||
Text("""
|
||||
Are you sure you want to reset all data? This will permanently delete:
|
||||
|
||||
• All gyms and their information
|
||||
• All problems and their images
|
||||
• All climbing sessions
|
||||
• All attempts and progress data
|
||||
|
||||
This action cannot be undone. Consider exporting your data first.
|
||||
""")
|
||||
}
|
||||
|
||||
.alert("Delete All Images", isPresented: $showingDeleteImagesAlert) {
|
||||
@@ -262,9 +269,14 @@ struct DataManagementSection: View {
|
||||
deleteAllImages()
|
||||
}
|
||||
} message: {
|
||||
Text(
|
||||
"This will permanently delete ALL image files from your device.\n\nProblems will keep their references but the actual image files will be removed. This cannot be undone.\n\nConsider exporting your data first if you want to keep your images."
|
||||
)
|
||||
Text("""
|
||||
This will permanently delete ALL image files from your device.
|
||||
|
||||
Problems will keep their references but the actual image files will be removed. \
|
||||
This cannot be undone.
|
||||
|
||||
Consider exporting your data first if you want to keep your images.
|
||||
""")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -651,7 +663,6 @@ struct SyncSection: View {
|
||||
.foregroundColor(.red)
|
||||
.padding(.leading, 24)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $showingSyncSettings) {
|
||||
|
||||
Reference in New Issue
Block a user