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
Add useful messages and call to actions for empty states on listens page #2039
Add useful messages and call to actions for empty states on listens page #2039
Conversation
- Move UserSocialNetwork modals to individual cards. - Conditionally show helpful messages on all modals if their state is empty. - Adjust and add appropriate styles.
Explicitly tell new users what the card shows instead of just showing them - "You have not listened to any songs so far" It didin't tell new users what'd they see had they listened to any song. The message - "Your listens count" followed by "You haven't listened to any songs." will subtly tell them what to expect in that place.
- Suggest user to import their listening history and connect to music services. - Replace "No listens yet" with a simple Vinyl illustration for empty state.
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.
Loving your work !
Thank you for this good improvement!
listenbrainz/webserver/static/js/src/follow/FollowerFollowingModal.tsx
Outdated
Show resolved
Hide resolved
listenbrainz/webserver/static/js/src/follow/FollowerFollowingModal.tsx
Outdated
Show resolved
Hide resolved
listenbrainz/webserver/static/js/src/follow/FollowerFollowingModal.tsx
Outdated
Show resolved
Hide resolved
listenbrainz/webserver/static/js/src/follow/SimilarUsersModal.tsx
Outdated
Show resolved
Hide resolved
listenbrainz/webserver/static/js/src/follow/SimilarUsersModal.tsx
Outdated
Show resolved
Hide resolved
listenbrainz/webserver/static/js/src/listens/ListenCountCard.tsx
Outdated
Show resolved
Hide resolved
Get rid of nested ternary operators.
- Replace hard-to-recognise Record Vinyl icon with a simple CD icon. - Remove "You haven't listened to any songs yet" subtitle because we have the exact same message in ListenCountCard component. - Remove unused css properties.
- This will unbreak the codebase.
listenbrainz/webserver/static/js/src/follow/SimilarUsersModal.tsx
Outdated
Show resolved
Hide resolved
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.
Last react shenanigans detail and this is good to deploy !
listenbrainz/webserver/static/js/src/follow/SimilarUsersModal.tsx
Outdated
Show resolved
Hide resolved
Based on this discussion: https://github.com/metabrainz/listenbrainz-server/pull/2039/files/1bdb39ed3fbbd6fd53302e2d5b047a046363ba8c#r913007576 Co-authored-by: Monkey Do <MonkeyDo@users.noreply.github.com>
I'll re run tests, update snapshots and resolve the merge conflict in some time. |
Just a heads up that with the last commit there is duplicated code: |
Leftovers from last commit
This causes test suite to fail
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.
Thank you !
A newly signed up user usually needs to connect to their Spotify to track their listens and import any existing listens from last.fm.
The user will also most probably navigate to "Home" after signing up. They may or may not have read or the "Get started..." paragraph on the main page of LB.
In such cases, have something for the user to do when they are on the Listens page and have no idea where to go from there.
The current listens page has no call to action links anywhere except in the profile button drop-down, which is hidden away from the interface.
Screenshots
Current Listens Page
Changes after this PR
Listens
section changes -ListenCountCard
changes -Explicitly tell new users what the card shows instead of just showing them -
It didin't tell new users what'd they see had they listened to any song.
The message -
...will subtly tell them what to expect in that place.
UserSocialNetwork
changes -