Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

MBtheOtaku
Copy link

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.

Copy link
Member

@steinbro steinbro left a 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.

Comment on lines +70 to +79
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."
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, looks like the localization you addressed in #122 somehow got reverted in commit d98946b.

Comment on lines +82 to +85
// Mocked UserSettings for demonstration purposes
struct UserSettings {
static var alwaysShowLanguageSelection: Bool = false // User-configurable setting
}
Copy link
Member

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.

Comment on lines +70 to +80
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)
}
Copy link
Member

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?

Comment on lines +96 to +107
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)
}
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants