Skip to content
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

Merged
merged 15 commits into from Jul 6, 2022

Conversation

chinmaykunkikar
Copy link
Contributor

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 -

  1. Suggest user to import their listening history and connect to music services.
  2. Replace "No listens yet" with a simple Vinyl illustration for empty state.

ListenCountCard changes -

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.


UserSocialNetwork changes -

  1. Move UserSocialNetwork modals to individual cards.
  2. Conditionally show helpful messages on all modals if their state is empty.
  3. Adjust and add appropriate styles.

 - 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.
@MonkeyDo MonkeyDo self-requested a review June 23, 2022 11:04
Copy link
Contributor

@MonkeyDo MonkeyDo left a 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!

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.
@chinmaykunkikar
Copy link
Contributor Author

After updates -

Screenshot_20220629_220638

Copy link
Contributor

@MonkeyDo MonkeyDo left a 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 !

@chinmaykunkikar
Copy link
Contributor Author

I'll re run tests, update snapshots and resolve the merge conflict in some time.

@MonkeyDo
Copy link
Contributor

MonkeyDo commented Jul 5, 2022

Just a heads up that with the last commit there is duplicated code:
The section that starts with return ( <div className="similar-users-list">… is there twice, once inside the renderSimilarUsersList callback and once after it (which is probably left over from before)

Copy link
Contributor

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you !

@MonkeyDo MonkeyDo merged commit de6f3d4 into metabrainz:master Jul 6, 2022
@chinmaykunkikar chinmaykunkikar deleted the listens-page-updates branch July 6, 2022 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants