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

Permissions: Site Permissions screen #5238

Conversation

malmstein
Copy link
Contributor

@malmstein malmstein commented Nov 5, 2024

Task/Issue URL: https://app.asana.com/0/1174433894299346/1208578724221048

Description

This PR updates the Site Permissions screens to match the Figma designs

Steps to test this PR

Site Permissions

  • Add permissions to a site (permissions.site)
  • Open Settings -> Permissions -> Site Permissions
  • Verify site and favicon are visible

Site Permissions Removed on Fire Button (Fireproof)

  • Add location permissions to a site (permissions.site)
  • Fireproof the site
  • Ensure Fire Button will clear data on app restart
  • Open Settings -> Permissions -> Site Permissions
  • Verify site and favicon are visible
  • Go back to the Browser and use the Fire Button
  • Open Settings -> Permissions -> Site Permissions
  • Verify site and favicon are visible

Site Permissions Removed on Fire Button

  • Add location permissions to a site (permissions.site)
  • Ensure Fire Button will clear data on app restart
  • Open Settings -> Permissions -> Site Permissions
  • Verify site and favicon are visible
  • Go back to the Browser and use the Fire Button
  • Open Settings -> Permissions -> Site Permissions
  • Verify site is no longer visible

Individual Site Permissions

  • Add location permissions to a site (permissions.site)
  • Open Settings -> Permissions -> Site Permissions
  • Verify site and favicon are visible
  • Tap on the site to see the details page
  • Verify location permission is allowed for the site

Disable overall location permission

  • Add location permissions to a site (permissions.site)
  • Open Settings -> Permissions -> Site Permissions
  • Verify site and favicon are visible
  • Toggle overall location permission off
  • Verify site and favicon are visible
  • Tap on the site to see the details page
  • Verify “Disabled for all sites” visible next to Location
  • Open a new tab and open permissions.site
  • Tap on location, verify it’s red permission not given)

Copy link
Contributor Author

malmstein commented Nov 5, 2024

@malmstein malmstein marked this pull request as ready for review November 5, 2024 20:31
@malmstein malmstein force-pushed the feature/david/11-04-permissions_update_drm_dialogs branch from d0e96bd to 8b35e56 Compare November 6, 2024 12:17
@malmstein malmstein force-pushed the feature/david/11-04-permissions_site_permissions_screen branch from bdee2ec to 3e52441 Compare November 6, 2024 12:17
@malmstein malmstein force-pushed the feature/david/11-04-permissions_update_drm_dialogs branch from 8b35e56 to 2c9b9b1 Compare November 6, 2024 17:30
@malmstein malmstein force-pushed the feature/david/11-04-permissions_site_permissions_screen branch from 3e52441 to 5684420 Compare November 6, 2024 17:30
class LaunchWebsiteAllowed(val domain: String) : Command()
}

init {
_viewState.value = ViewState(
askLocationEnabled = settingsDataStore.appLocationPermission,
// askLocationEnabled = settingsDataStore.appLocationPermission,
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to remove commented out line.

Copy link
Contributor

@anikiki anikiki left a comment

Choose a reason for hiding this comment

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

Looks good and works as expected! 🎉

@malmstein malmstein merged commit 0110820 into feature/david/11-04-permissions_update_drm_dialogs Nov 6, 2024
6 of 7 checks passed
@malmstein malmstein deleted the feature/david/11-04-permissions_site_permissions_screen branch November 6, 2024 19:10
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