-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
chore(toggle thumbnails): use localstorage for toggle #14013
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14013 +/- ##
==========================================
+ Coverage 79.28% 79.41% +0.12%
==========================================
Files 936 936
Lines 47408 47444 +36
Branches 5938 5954 +16
==========================================
+ Hits 37589 37677 +88
+ Misses 9693 9639 -54
- Partials 126 128 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Tested locally! LGTM when thumbnail is NOT enabled! Thanks for the fix 🙏
When thumbnail IS enabled, the default is still card view, can we make it consistent, default to list for all time? @pkdotson
please note: currently view is not sticky. after user switch from list to card view, and refresh, it lands on list view again. that should be the expected behavior as well.
Screen.Recording.2021-04-08.at.10.19.25.AM.mov
My understanding is that the selection of list/cards should be set via
As I understand from the title, the "stickiness" is the point of this PR... the description could probably be clearer on this the intent, and the testing steps). If the view setting is not being saved/retrieved here, then something may be wrong. From the video, it looks like thumbnail display IS sticking. I'll do a test as well. |
/testenv up FEATURE_THUMBNAILS=true |
@rusackas Ephemeral environment spinning up at http://52.12.121.187:8080. Credentials are |
/testenv down |
/testenv up FEATURE_THUMBNAILS=True |
@rusackas Ephemeral environment spinning up at http://34.215.48.184:8080. Credentials are |
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.
LGTM!
Ephemeral environment shutdown and build artifacts deleted. |
🏷️2021.13 |
1 similar comment
🏷️2021.13 |
* use localstorage for toggle * fix lint * add check (cherry picked from commit 38a1f65)
* use localstorage for toggle * fix lint * add check
SUMMARY
This is follow up for toggle thumbnails for homescreen to make the listviews show thumbnails based off homescreen toggle.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2021-04-07.at.10.38.28.PM.mov
TEST PLAN
enable feature flag THUMBNAILS = True
check each listview for toggle of thumbnails
ADDITIONAL INFORMATION