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 placeholders #337

Closed
wants to merge 25 commits into from
Closed

add placeholders #337

wants to merge 25 commits into from

Conversation

aquibyatoo
Copy link

Status :

In Development

Description :

Add placeholders for loading state for app. There are Box, Line, Image Card, Card and Paragraph placeholders.

Related Issues :

#169

Todos

  • Tests
  • Documentation

Copy link
Contributor

@rishichawda rishichawda left a comment

Choose a reason for hiding this comment

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

@aquibyatoo Can you add documentation so that it is possible for me to test it out quickly? You can refer other component directories to get an idea on how to document it.

.gitignore Outdated Show resolved Hide resolved
@aquibyatoo
Copy link
Author

aquibyatoo commented Jul 25, 2019 via email

@aquibyatoo
Copy link
Author

aquibyatoo commented Jul 25, 2019 via email

100% {
width: 100%;
}
-o-animation-name: animateFocus;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this was due to prettier. Can you try removing prettier and lint files with eslint and see if it reverts these changes?

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@KRRISH96 KRRISH96 left a comment

Choose a reason for hiding this comment

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

Please make changes as mentioned in Comments. Thanks.

Copy link
Contributor

@rishichawda rishichawda left a comment

Choose a reason for hiding this comment

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

Regarding the functionalities and current configuration of the components :

  1. I can see there are two components with nearly same function : ImageCard and CardPlaceholder. I couldn't spot any functional difference between them and they look almost identical to each other too.

  2. Why do we have two exports : ParagraphPlaceHolder and LinePlaceholder - can it be done in a single component?

  3. ParagraphPlaceHolder seems to have box shadow. User might not want it in most of cases probably?

  4. The "shimmer" effect looks like it is not completely carried out till the other end of the placeholders.

  5. In CardPlaceholder the image looks like it has shimmer faster than the lines ( probably because lines are longer than the width of the card ). Can this be tweaked so it looks balanced?

  6. The line widths in ParagraphPlaceHolder have a fixed value which increments as the lines proceed. Can this be randomised so that it looks more natural?

  7. In CardPlaceholder component, the line widths are hard-coded. Can this be changed too? Can we also use the existing Card component instead of having a separate wrapper again? Since it has other options too like changing shadows, etc. Moreover, it would be then an easier content management from user perspective. Also, we won't have to ship a component like this altogether ( Can be put as a demo using Card and LinePlaceholder component.

Copy link
Contributor

@rishichawda rishichawda left a comment

Choose a reason for hiding this comment

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

Regarding the functionalities and current configuration of the components :

I can see there are two components with nearly same function : ImageCard and CardPlaceholder. I couldn't spot any functional difference between them and they look almost identical to each other too.

Why do we have two exports : ParagraphPlaceHolder and LinePlaceholder - can it be done in a single component?

ParagraphPlaceHolder seems to have box shadow. User might not want it in most of cases probably?

The "shimmer" effect looks like it is not completely carried out till the other end of the placeholders.

In CardPlaceholder the image looks like it has shimmer faster than the lines ( probably because lines are longer than the width of the card ). Can this be tweaked so it looks balanced?

The line widths in ParagraphPlaceHolder have a fixed value which increments as the lines proceed. Can this be randomised so that it looks more natural?

In CardPlaceholder component, the line widths are hard-coded. Can this be changed too? Can we also use the existing Card component instead of having a separate wrapper again? Since it has other options too like changing shadows, etc. Moreover, it would be then an easier content management from user perspective. Also, we won't have to ship a component like this altogether ( Can be put as a demo using Card and LinePlaceholder component.

@aquibyatoo Are all the changes present in this branch?

@aquibyatoo
Copy link
Author

Closing this PR.

@aquibyatoo aquibyatoo closed this Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants