-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(debug): add debug menu #716
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.
We probably don't need to add any localization here.
DebugMenuRow( | ||
title: featureFlag.rawValue, | ||
detail: featureFlag.description, | ||
value: Services.shared.featureFlagService.isAssigned(flag: featureFlag).description |
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.
I didn't create a view model to inject these as I felt it was overhead for a debug menu, but happy to refactor if needed
The only other real comment I have is that we're utilizing the |
PocketKit: Coverage: 76.8
Generated by 🚫 Danger Swift against a4847a2 |
Yup, I didn't add it due to it being the debug menu, thanks for considering this tho! |
good point! Thought it might add overhead so didn't add a view model or inject the dependencies. thanks! |
@dskuza imagine one of many possible futures when we get to SwiftUI we could set all the services as environment variables if we wanted and just yoink them out 😬 |
Summary
PR to add debug menu to iOS app
References
N / A
Implementation Details
Added basic debug menu to Settings that shows user identifier and sets up UI for snowplow configuration and feature flag values.
Test Steps
https://featureflags.readitlater.com/projects/default/features/perm.ios.debug.menu
if you would like the debug menu feature flag to be turned onPR Checklist:
Screenshots