fix: 10 audit fixes — memory safety, performance, accessibility, architecture
- Add a11y label to ProgressMapView reset button and progress bar values - Fix CADisplayLink retain cycle in ItineraryTableViewController via deinit - Add [weak self] to PhotoGalleryViewModel Task closure - Add @MainActor to TripWizardViewModel, remove manual MainActor.run hop - Fix O(n²) rank lookup in PollDetailView/DebugPollPreviewView with enumerated() - Cache itinerarySections via ItinerarySectionBuilder static extraction + @State - Convert CanonicalSyncService/BootstrapService from actor to @MainActor final class - Add .accessibilityHidden(true) to RegionMapSelector Map to prevent duplicate VoiceOver Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -189,9 +189,9 @@ struct DebugPollPreviewView: View {
|
||||
}
|
||||
|
||||
VStack(spacing: Theme.Spacing.sm) {
|
||||
ForEach(results.tripScores, id: \.tripIndex) { item in
|
||||
ForEach(Array(results.tripScores.enumerated()), id: \.element.tripIndex) { index, item in
|
||||
let trip = results.poll.tripSnapshots[item.tripIndex]
|
||||
let rank = results.tripScores.firstIndex { $0.tripIndex == item.tripIndex }! + 1
|
||||
let rank = index + 1
|
||||
DebugResultRow(
|
||||
rank: rank,
|
||||
tripName: trip.displayName,
|
||||
|
||||
Reference in New Issue
Block a user