-
Notifications
You must be signed in to change notification settings - Fork 136
Privacy screen redesign #8968
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
Privacy screen redesign #8968
Conversation
|
You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code: |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## feature/new_privacy_screen #8968 +/- ##
================================================================
- Coverage 43.12% 43.11% -0.01%
Complexity 3950 3950
================================================================
Files 823 823
Lines 43370 43380 +10
Branches 5662 5664 +2
================================================================
Hits 18704 18704
- Misses 23017 23027 +10
Partials 1649 1649
☔ View full report in Codecov by Sentry. |
| import com.woocommerce.android.ui.compose.theme.WooThemeWithBackground | ||
|
|
||
| @Composable | ||
| fun PrivacySettingsScreen( |
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.
Nice!
| state: PrivacySettingsViewModel.State, | ||
| onAnalyticsSettingChanged: (Boolean) -> Unit, | ||
| onReportCrashesChanged: (Boolean) -> Unit, | ||
| ) { |
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.
np: WDYT if we pass a modifier parameter to all our composables[PrivacySettingsScreen, OptionRow] (as stated in the best practices)
Nice! I loved the result 👏 |
|
The code looks great, @wzieba, and is working as expected. Kudos for refactoring this screen and using Jetpack Compose. The first review is done, I've left some suggestions, let me know WDYT 😄 |
Generated by 🚫 dangerJS |
|
Thanks, @atorresveiga for the review! I agree with your comments. I've tried to iterate over the design to address them and make it similar to the rest of the privacy settings. It's not ideal and requires some debatable ideas like Because there are a few PRs in the pipeline, I'll go and merge this PR. But this targets the feature branch, so please feel free to comment here, and I'll address your comments in another PR. Thanks again!
|








Closes: #8936
Description
This PR targets the feature branch.
It introduces a redesign of the Privacy Screen.
Testing instructions
Smoke test if switches work and save state after closing the screen/app.
Images/gif
I had to translate iOS design to Material Design. I was inspired by this widget in Material 3 specification:

I believe it works well in our context 👍
RELEASE-NOTES.txtif necessary.