-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup process startup and Settings page continuation #131
base: main
Are you sure you want to change the base?
Setup process startup and Settings page continuation #131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think there's still some work to be done here; I've left a few comments.
private static let sectionDescriptions: [Section: String] = [ | ||
.general: "General settings for the app.", | ||
.audio: "Control how audio interacts with other media.", | ||
.beacon: "Settings for beacon management.", | ||
.callouts: "Manage the callouts that help navigate.", | ||
.streetPreview: "Settings for including unnamed roads.", | ||
.troubleshooting: "Options for troubleshooting the app.", | ||
.about: "Information about the app.", | ||
.telemetry: "Manage data collection and privacy." | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Mocked UserSettings for demonstration purposes | ||
struct UserSettings { | ||
static var alwaysShowLanguageSelection: Bool = false // User-configurable setting | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is meant to be a user-configurable setting, this would need to be propagated to a settings view. But per #112 I think we just wanted to change the heuristic for when the language choice should be shown, not add another setting.
private func checkAudioStatus() { | ||
// Here, implement the functionality to check audio status. | ||
// This could involve presenting an alert or a new screen with audio information. | ||
let alert = UIAlertController( | ||
title: GDLocalizedString("troubleshooting.check_audio"), | ||
message: GDLocalizedString("troubleshooting.check_audio.explanation"), | ||
preferredStyle: .alert | ||
) | ||
alert.addAction(UIAlertAction(title: GDLocalizedString("general.alert.ok"), style: .default)) | ||
present(alert, animated: true) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this presenting an alert, without actually doing the requested action?
private func clearMapData() { | ||
// Logic to clear stored map data goes here | ||
// For example, removing cached files or data from UserDefaults if relevant. | ||
// Notify the user after clearing data. | ||
let confirmationAlert = UIAlertController( | ||
title: GDLocalizedString("settings.clear_cache.alert_title"), | ||
message: GDLocalizedString("settings.clear_cache.no_service.message"), | ||
preferredStyle: .alert | ||
) | ||
confirmationAlert.addAction(UIAlertAction(title: GDLocalizedString("general.alert.ok"), style: .default)) | ||
present(confirmationAlert, animated: true) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as checkAudioStatus
, I'm not seeing the logic to actually perform the action here.
I accidentally carried over my work from the IOS settings page work into a new branch and thus into this pull request but there is also some work done for the setup process startup issue that can be looked at, not entirely sure if it works 100%. More changes may have to be made.