From 20f1b3df5926bba79e23906cdf25f6253272fbf7 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Mon, 8 Dec 2025 12:31:29 -0500 Subject: [PATCH] Quck fixes - Maps button now works properly, I figured out the URL scheme needed to direct to a map location - Notifications will now be automatically rescheduled when changing the notification offset --- RIT Dining.xcodeproj/project.pbxproj | 4 ++-- RIT Dining/Components/TigerCenterParsers.swift | 2 +- RIT Dining/Views/Visiting Chefs/VisitingChefsPush.swift | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/RIT Dining.xcodeproj/project.pbxproj b/RIT Dining.xcodeproj/project.pbxproj index 55210a5..8b045b6 100644 --- a/RIT Dining.xcodeproj/project.pbxproj +++ b/RIT Dining.xcodeproj/project.pbxproj @@ -265,7 +265,7 @@ CODE_SIGN_ENTITLEMENTS = "RIT Dining/RIT Dining.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 22; + CURRENT_PROJECT_VERSION = 23; DEVELOPMENT_TEAM = 5GF7GKNTK4; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; @@ -300,7 +300,7 @@ CODE_SIGN_ENTITLEMENTS = "RIT Dining/RIT Dining.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 22; + CURRENT_PROJECT_VERSION = 23; DEVELOPMENT_TEAM = 5GF7GKNTK4; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; diff --git a/RIT Dining/Components/TigerCenterParsers.swift b/RIT Dining/Components/TigerCenterParsers.swift index 73ef77e..0e38714 100644 --- a/RIT Dining/Components/TigerCenterParsers.swift +++ b/RIT Dining/Components/TigerCenterParsers.swift @@ -49,7 +49,7 @@ func parseLocationInfo(location: DiningLocationParser, forDate: Date?) -> Dining // Generate a maps URL from the mdoId key. This is required because the mapsUrl served by TigerCenter is not compatible with // the new RIT map that was deployed in December 2025. - let mapsUrl = "https://maps.rit.edu/details/\(location.mdoId)" + let mapsUrl = "https://maps.rit.edu/?mdo_id=\(location.mdoId)" // Early return if there are no events, good for things like the food trucks which can very easily have no openings in a week. if location.events.isEmpty { diff --git a/RIT Dining/Views/Visiting Chefs/VisitingChefsPush.swift b/RIT Dining/Views/Visiting Chefs/VisitingChefsPush.swift index 9ad41a1..6be90bd 100644 --- a/RIT Dining/Views/Visiting Chefs/VisitingChefsPush.swift +++ b/RIT Dining/Views/Visiting Chefs/VisitingChefsPush.swift @@ -50,6 +50,13 @@ struct VisitingChefPush: View { Text("3 Hours Before").tag(3) } .disabled(!pushAllowed || !pushEnabled) + .onChange(of: notificationOffset) { + Task { + // If we changed the offset, we need to reschedule everything. + await model.cancelAllPushes() + await model.scheduleAllPushes() + } + } } Section(footer: Text("Get notified when and where a specific visiting chef will be on campus.")) { ForEach(visitingChefs, id: \.self) { chef in