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

#165273536: Pagination support for articles #41

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kalsmic
Copy link
Contributor

@kalsmic kalsmic commented Jun 20, 2019

What does this PR do?

  • Adds pagination support for articles

Description of Task to be completed?

  • Test and Design the Article Pagination Component
  • Test and Modify the Articles reducer
  • Test and Modify the get all Articles action

How should this be manually tested?

  • For now, navigate to the Landing page and press the next or previous button to navigate through the articles pages.

Any background context you want to provide?

  • The next or previous buttons are disabled if there are no more results in the respective direction.
  • I also revised the article like count prop validation from array to object
    since it has been modified in the back end.

What are the relevant pivotal tracker stories?

Screenshots (if appropriate)

  • None at the moment

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

@@ -0,0 +1,65 @@
// react
import React from 'react';

Choose a reason for hiding this comment

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

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'

@@ -0,0 +1,49 @@
import React from 'react';

Choose a reason for hiding this comment

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

Parsing error: 'import' and 'export' may appear only with 'sourceType: module'

@kalsmic kalsmic force-pushed the feat-article-pagination-165273536 branch from 03d44f1 to 2063e73 Compare June 20, 2019 07:35
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

 - add article pagination
 - Revise article like count prop validation from array to object
   since it has been modified in the back end

[starts #165273536]
@kalsmic kalsmic force-pushed the feat-article-pagination-165273536 branch from 2063e73 to 3c51443 Compare June 20, 2019 14:24
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

The configured stylelint version is not supported.
The configured stylelint version is not supported. 
See a list of supported versions on our docs page.

@@ -115,15 +156,25 @@ LandingPage.defaultProps = {
* @return {articles} - An aray of articles
*
*/
const mapStateToProps = state => state.articles;
// const mapStateToProps = state => state.articles;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the comment line.

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