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

Sanitize location selection against remote locations #2688

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

Conversation

graeme
Copy link
Contributor

@graeme graeme commented Apr 5, 2024

Task/Issue URL: https://app.asana.com/0/1203137811378537/1206773442486707/f
BSK: duckduckgo/BrowserServicesKit#764

Description:

The VPN geoswitching logic currently doesn’t handle the case that a location becomes unavailable. We should fall back to the country, if a city isn’t available, or nearest if the country isn’t available.

Steps to test this PR:

  1. Edit the NetworkProtectionVPNLocationViewModel to hardcode an extra a location that doesn’t exist and present it on the UI. Try with a country that doesn’t exist as well as a city that doesn’t exist being added to a country that does.
  2. Select the location and confirm
  3. Check that the fallback logic follow that mentioned in the description.

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@graeme graeme force-pushed the graeme/sanitize-location-selection branch from 9d68bc7 to 5816933 Compare May 22, 2024 15:12
@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label May 22, 2024
@graeme graeme force-pushed the graeme/sanitize-location-selection branch from 5816933 to e99fdb7 Compare May 23, 2024 13:24
@graeme graeme marked this pull request as ready for review May 24, 2024 12:55
@graeme graeme removed the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label May 24, 2024
@graeme graeme requested a review from samsymons May 24, 2024 12:57
@github-actions github-actions bot added the stale label Jun 1, 2024
# By bwaresiak (6) and others
# Via Bartek Waresiak (1) and others
* main: (30 commits)
  Update VPN support copy (#2894)
  Settings experiment disabled and new Settings rolled out to all users (#2904)
  Release 7.122.0-2 (#2909)
  PrivacyPro terms of service link (#2907)
  Release 7.122.0-1 (#2906)
  Fix release branch VPN auth issues (#2903)
  Disable the autofill survey (#2899)
  fire RMF message updated notification if we make any change to the store (#2891)
  Fix maestro config so it runs (#2896)
  Disable the autofill survey (#2899)
  Release 7.122.0-0 (#2898)
  Do not refresh collection view when we are changing the display mode (#2895)
  Add option to crash the app with exception from debug menu (#2897)
  Remove default.profraw (#2893)
  Guard swipe tabs scroll state (#2888)
  Add debug pixels for data cleanup (#2890)
  Bump rexml from 3.2.6 to 3.2.8 (#2866)
  Remove VPN waitlist code (#2795)
  Privacy Pro Follow ups (#2882)
  Clean up subscriptionFeature on init (#2880)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@duckduckgo duckduckgo deleted a comment from github-actions bot Jun 1, 2024
@github-actions github-actions bot removed the stale label Jun 2, 2024
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.

None yet

2 participants