feat: enforce custom Theme colors app-wide, add debug sample trips and poll

Replace all system colors (.secondary, Color(.secondarySystemBackground),
etc.) with Theme.textPrimary/textSecondary/textMuted/cardBackground/
surfaceGlow across 13 views. Remove PostHog debug logging. Add debug
settings for sample trips and hardcoded group poll preview.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-13 08:54:19 -06:00
parent ff6f4b6c2c
commit 1c97f35754
16 changed files with 580 additions and 73 deletions

View File

@@ -381,6 +381,53 @@ final class DebugShareExporter {
isExporting = false
}
// MARK: - Save Sample Trips
func saveSampleTrips(modelContext: ModelContext) {
let trips = Self.buildDummyTrips()
var savedCount = 0
for trip in trips {
if let savedTrip = SavedTrip.from(trip, status: .planned) {
modelContext.insert(savedTrip)
savedCount += 1
}
}
do {
try modelContext.save()
print("DEBUG: Saved \(savedCount) sample trips")
} catch {
print("DEBUG: Failed to save sample trips: \(error)")
}
}
// MARK: - Build Sample Poll
static func buildSamplePoll() -> TripPoll {
let trips = buildDummyTrips()
let sampleVotes = [
PollVote(pollId: UUID(), odg: "voter1", rankings: [0, 2, 1, 3]),
PollVote(pollId: UUID(), odg: "voter2", rankings: [2, 0, 3, 1]),
PollVote(pollId: UUID(), odg: "voter3", rankings: [0, 1, 2, 3]),
]
_ = sampleVotes // votes are shown via PollResults, we pass them separately
return TripPoll(
title: "Summer 2026 Road Trip",
ownerId: "debug-user",
tripSnapshots: trips
)
}
static func buildSampleVotes(for poll: TripPoll) -> [PollVote] {
[
PollVote(pollId: poll.id, odg: "voter-alex", rankings: [0, 2, 1, 3]),
PollVote(pollId: poll.id, odg: "voter-sam", rankings: [2, 0, 3, 1]),
PollVote(pollId: poll.id, odg: "voter-jordan", rankings: [0, 1, 2, 3]),
]
}
// MARK: - Add All Stadium Visits
func addAllStadiumVisits(modelContext: ModelContext) async {