Skip to content

Conversation

@Ecarrion
Copy link
Contributor

Closes: #9811

Why

This PR makes sure the privacy banner is not dismissable via a tap or a drag gesture.

The current bottom sheet implementation does not allow for that, This PR adds not ideal temporary solution while we update BottomSheetViewController to allow for this behavior natively.

Demo

Demo.mov

Testing Steps

  • Log out from the app (to clean the user defaults database)
  • Log in to a WPCom store in the EU region (Can use a VPN)
  • See the banner being presented
  • See that the banner can't be dismissed by tapping outside of it or by dragging it down.

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@Ecarrion Ecarrion added the feature: privacy Related to the privacy choices project label May 24, 2023
@Ecarrion Ecarrion added this to the 13.8 milestone May 24, 2023
@Ecarrion Ecarrion requested review from ThomazFB and rachelmcr May 24, 2023 22:05
@peril-woocommerce
Copy link

Warnings
⚠️ This PR is assigned to a milestone which is closing in less than 2 days Please, make sure to get it merged by then or assign it to a later expiring milestone

Generated by 🚫 dangerJS

@Ecarrion Ecarrion force-pushed the issue/9811-prevent-banner-from-dismiss branch from 5981b84 to 8e86c53 Compare May 24, 2023 22:05
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented May 24, 2023

You can test the changes from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr9815-1b5ea3d on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@rachelmcr rachelmcr self-assigned this May 25, 2023
Copy link
Contributor

@rachelmcr rachelmcr left a comment

Choose a reason for hiding this comment

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

👍 This works.

Just noting that using a bottom sheet without being able to dismiss it makes it a little awkward if you try to swipe it away, since it can be mostly hidden:

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-05-25.at.14.02.09.mp4

Merging now so we can proceed with testing (discussion: p1685017504654089/1684966811.885719-slack-C02KUCFCSFP).

@rachelmcr rachelmcr merged commit ecaf868 into trunk May 25, 2023
@rachelmcr rachelmcr deleted the issue/9811-prevent-banner-from-dismiss branch May 25, 2023 13:09
@Ecarrion
Copy link
Contributor Author

Just noting that using a bottom sheet without being able to dismiss it makes it a little awkward if you try to swipe it away, since it can be mostly hidden:

Yes, still it doesn't allow you to continue without selecting something but hopefully, this will be fixed once wordpress-mobile/WordPressUI-iOS#126 is merged and deployed 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: privacy Related to the privacy choices project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Privacy Choices] Make banner undismissable.

4 participants