-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Merged
cmonfortep
merged 93 commits into
feature/cristian/fireproof_websites
from
feature/cristian/ui_improvements_feature_pixels
May 13, 2020
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
a6a45f3
(wip) removing cookies manually based on bookmarks
cmonfortep bdfbdd3
(wip) tidy up and fallback to previous logic when manual process fails
cmonfortep 4a4ed29
(wip) prototype - send pixels for errors and remove cookie duration
cmonfortep 28530da
Merge branch 'develop' into feature/cristian/webview_database_datasource
cmonfortep 4719e7f
prototype version
cmonfortep fb18f01
Create new database table to persist sites where cookies should be pr…
cmonfortep 2110a51
* Removed divider from bookmarks list
cmonfortep 2ee0153
bookmarks title show in single line
cmonfortep 0111b3d
background favicon compatible with dark theme
cmonfortep f4825a3
Include fireproof websites entry cell in settings
cmonfortep 3b463a3
introduce methods to insert or remove preserver cookies entities
cmonfortep e5cb752
inject dao into viewmodel
cmonfortep 61e15b1
add untranslated strings
cmonfortep 11f27d6
introduce fireproof site option menu and logic for actions
cmonfortep 2cabcd4
Fireproof option menu reacts to database state.
cmonfortep 018dedc
persist original url in order to show favicon in fireproof websites s…
cmonfortep 9e2fbfb
extract original url when fireproof website clicked
cmonfortep 829f112
Fireproof website screen created + logic
cmonfortep d0a0863
observe fireproof websites dao
cmonfortep 1bd99ee
Big naming refactor. Keeping consistent the domain language to firepr…
cmonfortep d92fc84
Revert non related work committed
cmonfortep 9db51ef
Merge branch 'develop' into feature/cristian/preserve_sites_ui
cmonfortep 2a09e31
adding more copies to untranslated strings
cmonfortep 7a508d2
Showing single action on Fireproof websites screen item overflow menu
cmonfortep 7b15941
showing snackbar with fireproof website in bold
cmonfortep 1eff472
delete confirmation dialog when removing fireproof website shows webs…
cmonfortep b6dac2d
clean up
cmonfortep c628796
renaming on activity layout for fireproof website screen
cmonfortep 25e7d2e
apply code style
cmonfortep 5e81a05
change from coroutine to sync code using local list
cmonfortep 984d825
Fireproof websites adapter shows description
cmonfortep df650aa
apply ui fixes to bookmarks
cmonfortep 82a3e29
apply ui fixes to fireproof websites
cmonfortep c0382e7
Merge branch 'develop' into feature/cristian/preserve_sites_ui
cmonfortep 4c19500
removing unused view
cmonfortep 37ed7f9
moving to data package database and adapter to ui
cmonfortep bd66a9c
removing title and original url from database
cmonfortep 37836ec
command renaming
cmonfortep baa1786
remove bookmark strings usage from fireproof websites
cmonfortep 79ddd5b
renaming drawable resource bookmark reference
cmonfortep 6632c39
fireproofwebsite title light/dark colors
cmonfortep 249abc6
changed test text neutral
cmonfortep 2edec3d
Merge branch 'develop' into feature/cristian/preserve_sites_ui
cmonfortep 8178ca5
tidy up browsertTabViewModel
cmonfortep 7d51f31
unused method remove
cmonfortep 027aba9
rename favicon background color as it's used in multiple lists
cmonfortep ace4dd6
Introduced changes on BrowserTabViewModel covered
cmonfortep b00dda5
fireproofWebsitesViewModel unit tests
cmonfortep bddca3d
import clean up
cmonfortep 065f011
drop www. prefix when displaying fireproof websites
cmonfortep acec70e
Merge branch 'feature/cristian/preserve_sites_ui' into feature/cristi…
cmonfortep 1502dfa
Split into different strategies cookie removal and start using firepr…
cmonfortep b48b272
Inject collaborators into WebViewCookieManager
cmonfortep d2c75a5
Update WebViewCookieManagerTest
cmonfortep aaf7a03
Ensure interaction follow concrete order and only DDG are reinjected
cmonfortep e3d388e
format file
cmonfortep b09ff60
move logic to remove cookies into an strategy
cmonfortep 0b9baff
Unit testing Remove cookies concrete strategy
cmonfortep 367f72f
extract collaborators from SQLCookieRemover into concrete classes
cmonfortep 4a18299
Testing sqlCookieRemover
cmonfortep 3577871
move class to concrete file
cmonfortep b325306
WebViewDatabaseLocator tested
cmonfortep a9c1403
Test GetHostToPreserve
cmonfortep 5d93af4
Merge branch 'feature/cristian/fireproof_websites' into feature/crist…
cmonfortep e7fe76d
remove cookies version name from build.gradle
cmonfortep 092b0c9
fix test case naming
cmonfortep 716c21e
fix compile error due to not menu item found
cmonfortep 00316ca
tidy up unused method in bookmarks dao
cmonfortep faa35d5
inject dispatcher into WebViewCookieManager
cmonfortep 96367e2
unused param remove
cmonfortep e324d6d
Class renamed to make explicit reference to cookies
cmonfortep dbf42f8
tidiy up imports
cmonfortep 54f75c8
Use timber.e
cmonfortep 8e11b8b
Introduce empty state for fireproof websites screen
cmonfortep a3204bd
Forget all pressed pixel includes fireproof websites flag for tab swi…
cmonfortep 7ac2de7
pixels related to fireproof websites inside browser screen.
cmonfortep 4aa361c
pixel when user removes fireproof website item from list
cmonfortep bc7bed2
refactor to avoid repeating the same code in different viewmodels. Mo…
cmonfortep 50d2f20
inject pixel sender on viewmodels
cmonfortep 6859710
Test Launch fire logic inside BrowserViewModel
cmonfortep f293567
Test Launch fire logic inside TabSwitcherViewModel
cmonfortep b0df76c
test fire pixel when user deletes fireproof website
cmonfortep f2bb5d4
Test sending forgetAll action pixels contains fireproof website data
cmonfortep e90a5d1
discard sending param pixel when user clears data
cmonfortep 44e7978
send pixel only when website added + test
cmonfortep 2dd91e1
add test case for sending pixel snackbar undo action
cmonfortep fac4041
user attr related with this feature instead of bookmark reference
cmonfortep b7630f0
moving pixel execution inside coroutine block
cmonfortep 6cc9144
moving stringRes into xml item layout and remove bind logic from adapter
cmonfortep 08bdca2
ui tweak to make text spread inside the textview.
cmonfortep 6a8df2e
move description text to the top of the list
cmonfortep e564cc2
fix: multiple descriptions being shown
cmonfortep 3d25f58
Merge branch 'feature/cristian/fireproof_websites' into feature/crist…
cmonfortep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/src/main/res/layout/view_fireproof_website_empty_hint.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <?xml version="1.0" encoding="utf-8"?><!-- | ||
| ~ Copyright (c) 2020 DuckDuckGo | ||
| ~ | ||
| ~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
| ~ you may not use this file except in compliance with the License. | ||
| ~ You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, software | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| --> | ||
|
|
||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:paddingTop="24dp" | ||
| android:paddingStart="16dp" | ||
| android:paddingEnd="16dp" | ||
| android:paddingBottom="24dp"> | ||
|
|
||
| <com.google.android.material.textview.MaterialTextView | ||
| android:id="@+id/fireproofWebsiteEmptyHint" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" | ||
| android:fontFamily="sans-serif" | ||
| android:lineSpacingExtra="4sp" | ||
| android:gravity="center" | ||
| android:textColor="?attr/fireproofWebsiteTitleTextColor" | ||
| android:textSize="16sp" | ||
| android:textStyle="normal" | ||
| android:text="@string/fireproofWebsiteEmptyListHint" | ||
| tools:text="Lorem ipsum dolor sit amet" /> | ||
| </LinearLayout> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.