-
Notifications
You must be signed in to change notification settings - Fork 921
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
Update Settings: Update PIR Settings Item #5397
Update Settings: Update PIR Settings Item #5397
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d306ac3
to
2dbfc5b
Compare
9b7fcfa
to
1cf3f4e
Compare
2dbfc5b
to
72f177a
Compare
1cf3f4e
to
ad94878
Compare
72f177a
to
76b9911
Compare
ad94878
to
955be80
Compare
76b9911
to
49dea28
Compare
955be80
to
b9ccd81
Compare
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.
Works as expected, nice work @mikescamell !
b9956a7
to
8bde9db
Compare
b9ccd81
to
2c2bed6
Compare
copy paste of legacy
We'll need more states to represent our new VPN statuses as we'll see in upcoming commits.
The VPN status states have changed for the new settings as we need to know more about the subscription status of the VPN to correctly render the new states, therefore we need to know if we're in a waiting state so we can in future render an "Activating" state We
Locked and Unlocked are no longer sufficient for us to render the correct states. We add a new NetPVisibilityState which tells us if we should show the VPN item to the user, and if we do, what it's subscription state is. I'm not entirely sure about nesting the subscription status, or having this as a property of Visible state, I'm open to suggestions
With all the new information and states we can now render the VPN item correctly and kill off some of the legacy code we copied over
Seeing as we will aim to get rid of the netpAccessState.getLegacyState() function we need to change to use the new netpAccessState.getState() in the RealVpnTileStateProvider Practically the same, just rejigged the order to make more sense
This is an internal only class used to determine the state for the settings item as we need to know more information about the user's subscription to determine how to show the new VPN item
After talking to Aitor about onboarding we decided even though no one could give me an answer yesterday RE if we still want onboarding checks we should probably add this back in so we're consistent with previous behaviour
8bde9db
to
81c774d
Compare
81c774d
to
da4e853
Compare
The PirSubscriptionManager mimics our Manager for the VPN, exposing the status of PIR so we can render the viewstates correctly
2c2bed6
to
28c7763
Compare
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.
Commenting just in case you missed it @mikescamell
Task/Issue URL: https://app.asana.com/0/1207908166761516/1208966262488272/f
Description
Adds support for different PIR (Private Information Removal) subscription states in the settings menu, including active, expired, activating, and hidden states. Introduces a new subscription manager to handle PIR status and updates the UI to reflect these states with appropriate icons and interactions.
Steps to test this PR
Prerequisite: Enable
newSettings
feature togglePrerequisite: Apply the patch in the Asana task
Note: Only the VPN item, PIR and possibly the Settings item will be seen, depending on the different states. ITR is not included as part of this PR and so is not visible.
PIR Subscribed
RealSubscriptions
change ln 77 toreturn flowOf(listOf(NetP, PIR))
Unsubscribed
SubscriptionManager
change ln 442 toreturn SubscriptionStatus.UNKNOWN
PIR Expired
SubscriptionManager
change ln 442 toreturn SubscriptionStatus.EXPIRED
PPro Activating
SubscriptionManager
change ln 442 toreturn SubscriptionStatus.WAITING
No Entitlement
SubscriptionManager
change ln 442 toreturn SubscriptionStatus.AUTO_RENEWABLE
RealSubscriptions
change ln 77 toreturn flowOf(listOf())
Legacy Support
newSettings
UI changes