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

Fixed Show more of table #3866

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

shubhscoder
Copy link
Contributor

@shubhscoder shubhscoder commented Oct 31, 2018

Fixes #3654

Problem:
There were some problems in the show more button on the learn more page of infragram.

  1. Let's say that there were 10 more items to be viewed in the table, the show more button said "Show 10 more items". Now,even after the user has clicked that once, it said the same text "Show 10 more items", which may confuse the user.

2.If there were exact 10 items in the table then the show more button said "Show 0 more items" which doesn't make much sense.

Changes Proposed:

  1. Once the user clicks the button the text vanishes.
  2. Also the button is displayed only in case there are strictly more than 10 items in the table. This fixes the second problem.

Since views were changed, the relevant screen shots are attached.

before_clicking
after_clicking

@plotsbot
Copy link
Collaborator

1 Message
📖 @shubhscoder Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.

Generated by 🚫 Danger

@jywarren
Copy link
Member

jywarren commented Oct 31, 2018 via email

@shubhscoder
Copy link
Contributor Author

@jywarren ,I have already shared the screenshots . Am I missing out on something, because I am able to see the screenshots 😅

@jywarren
Copy link
Member

jywarren commented Nov 1, 2018

Ah my apologies, i had responded by email and didn't see them! 😄

This is great careful work! Does this work if you click it again? See how .toggle() affects turning this on and off, by toggling the hide class? Just want to be sure your change works with repeated interactions. If you can post a gif (#3513) that can help clarify!

Great work, thank you!!

@shubhscoder
Copy link
Contributor Author

shubhscoder commented Nov 2, 2018 via email

@shubhscoder
Copy link
Contributor Author

shubhscoder commented Nov 2, 2018 via email

@shubhscoder
Copy link
Contributor Author

demo
So Sorry @jywarren for the delay. I had actually forgot about this. But now I have uploaded the gif

@jywarren
Copy link
Member

jywarren commented Nov 14, 2018 via email

@shubhscoder
Copy link
Contributor Author

If the gif seems fine to you then this can be reviewed. Thank you!

@jywarren
Copy link
Member

Looks super. Thanks a lot and great work!

@jywarren jywarren merged commit b42f1d0 into publiclab:master Nov 14, 2018
SrinandanPai pushed a commit to SrinandanPai/plots2 that referenced this pull request May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The show more button on learn more page of infragram needs some fixes
3 participants