-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fireproof websites empty state and Feature pixels #810
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
Fireproof websites empty state and Feature pixels #810
Conversation
* Introduced subtle background for favicon * changes to align with current design
disabled if home screen or domain exists in database enabled if doesn't exist in database
malmstein
left a comment
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.
app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/ui/FireproofWebsiteAdapter.kt
Outdated
Show resolved
Hide resolved
| adapter = FireproofWebsiteAdapter(viewModel, R.string.fireproofWebsiteFeatureDescription) | ||
| adapter = FireproofWebsiteAdapter( | ||
| viewModel = viewModel, | ||
| emptyListHintStringRes = R.string.fireproofWebsiteEmptyListHint, |
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.
see comment about fireproofWebsiteEmptyHint.setText(text)
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.
ditto
app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/ui/FireproofWebsitesViewModel.kt
Outdated
Show resolved
Hide resolved
|
@malmstein both hints (I didn't change the one from bookmarks) have 16sp, and they share the same style. I understand the difference is just a matter of using different screen size/density.
|
|
@cmonfortep I understand what you mean about using the dimensions from Figma. This has been a problem before but we don't need to fix this at this stage. I'd recommend you do a Design Review before moving to Product Review. You can take https://app.asana.com/0/1157893581871903/1170225026602691 as an example, it really helped ironing out the final details and ensure everyone was happy with the end result |
|
@malmstein maybe we can talk offline about problems with dimensions from Figma, I'm not aware of any problem and I would like to know more. About design review: I already went through it -> https://app.asana.com/0/1129367408583813/1172778240040897/f |
|
@cmonfortep I meant a review after you've implemented the changes and built a version that the designer can play with. This avoids comments like "I might be put off a little bit by the resolution from your phone." and reduces the friction that will come out of Product Review when other stakeholders actually install the app. |
malmstein
left a comment
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.
We walked through the changes and we are both happy with the result. Good job @cmonfortep!
|
@malmstein during product review we decided to change the description to the top of the screen. Can you review the last commit? |
|
@cmonfortep after the last update the fireproof list no longer displays properly. Adding multiple sites will show multiple headers instead of the actual site |
|
Thanks @malmstein! I will check that ASAP 😵 |
|
@malmstein fixed. I've just tested it with empty/single/multiple sites, can you review it again? |
malmstein
left a comment
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.
…ian/ui_improvements_feature_pixels # Conflicts: # app/src/androidTest/java/com/duckduckgo/app/fire/SQLCookieRemoverTest.kt # app/src/androidTest/java/com/duckduckgo/app/fire/WebViewCookieManagerTest.kt # app/src/androidTest/java/com/duckduckgo/app/fire/WebViewDatabaseLocatorTest.kt # app/src/main/java/com/duckduckgo/app/browser/di/BrowserModule.kt # app/src/main/java/com/duckduckgo/app/fire/CookieRemover.kt # app/src/main/java/com/duckduckgo/app/statistics/pixels/Pixel.kt
* Fireproof websites UI (#796) * Create new database table to persist sites where cookies should be preserved * Removed divider from bookmarks list * bookmarks title show in single line * background favicon compatible with dark theme * introduce fireproof site option menu * Fireproof option menu reacts to database state. * Fireproof website screen created * Remove cookies preserving fireproof websites (#808) * Implement logic to remove cookies preserving the ones related to fireproof website. - Try to directly remove cookies from WebView database, preserving the ones with hosts related to a fireproof website - If process fails, fallback to remove all the cookies to avoid any leak - Send pixels in the following scenarios: - database path not found - database can't be opened - delete query fails - database corruption * Fireproof websites empty state and Feature pixels (#810) * Empty state for fireproof websites screen * Feature pixels - User clicks on "fireproof a website" - User undo "fireproof website" action (confirmation snackbar after fireproffing a website) - User removed a website from "fireproof websites"






Task/Issue URL: https://app.asana.com/0/0/1170962402828809/f
Tech Design URL:
CC:
Description:
This PR includes two different things:
Implement empty state for fireproof websites screen
Implement feature pixels
Steps to test this PR:
Test 1: fireproof websites empty state
Test 2: fireproof website pixel
m_fw_aTest 3: Undo fireproof website pixel
m_fw_uTest 4: Remove fireproof website pixel
m_fw_dTest 5: Description on top
Internal references:
Software Engineering Expectations
Technical Design Template