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

#165412889 & #165412878 Add article rating and article read time #23

Merged
merged 1 commit into from
Jul 19, 2019

Conversation

kagaramag
Copy link
Collaborator

What does this PR do?

  • Article rating
  • Article read time

Description of Task to be completed?

  • Create an article rating
  • Retrieve article rating average
  • Display article read time

How should this be manually tested?

After cloning the repo, run the command npm run dev, and navigate to an article of your choice from the home page

Any background context you want to provide?

N/A

What are the relevant pivotal tracker stories?

#165412889
#165412878

Screenshots (if appropriate)

image

Questions:

@@ -80,12 +87,13 @@ export class PreviewArticle extends Component {
};

render() {
const { message } = this.props;
const { message, loading } = this.props;
Copy link

Choose a reason for hiding this comment

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

'loading' is missing in props validation react/prop-types

import configureMockStore from 'redux-mock-store';
import thunk from 'react-thunk';
import { Provider } from 'react-redux';
// import article from '../../../__mocks__/article';
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

const result = createRate(rating)(dispatch);
expect(result).toHaveProperty('type');
expect(result).toHaveProperty('payload');
// expect(result.payload).toEqual(rating);
Copy link
Contributor

Choose a reason for hiding this comment

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

the same here

// import article from '../../__mocks__/article';
// import message from '../../__mocks__/articleMessage';
// import errors from '../../__mocks__/errors';

Copy link
Contributor

Choose a reason for hiding this comment

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

Please make sure that all comments are removed

Copy link
Contributor

Choose a reason for hiding this comment

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

remove comments

@kagaramag kagaramag force-pushed the ft-rating-readtime-165412878 branch from 03870b9 to b837925 Compare July 18, 2019 15:06
faTrash,
faPen,
faTimesCircle,
faCircle,
Copy link

Choose a reason for hiding this comment

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

'faCircle' is defined but never used no-unused-vars

import {
faTrash,
faPen,
faTimesCircle,
Copy link

Choose a reason for hiding this comment

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

'faTimesCircle' is defined but never used no-unused-vars

import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faTrash,
Copy link

Choose a reason for hiding this comment

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

'faTrash' is defined but never used no-unused-vars

@kagaramag kagaramag force-pushed the ft-rating-readtime-165412878 branch 4 times, most recently from 9a9a18b to 4148a9e Compare July 19, 2019 03:32
@sengayire sengayire self-requested a review July 19, 2019 08:28
@kagaramag kagaramag force-pushed the ft-rating-readtime-165412878 branch from 4148a9e to b7a3540 Compare July 19, 2019 08:45
@kagaramag kagaramag force-pushed the ft-rating-readtime-165412878 branch from b7a3540 to 8eddf16 Compare July 19, 2019 08:48
@denislohan denislohan merged commit 72155c8 into develop Jul 19, 2019
sengayire pushed a commit that referenced this pull request Jul 19, 2019
#165412889 & #165412878 Add article rating and article read time
sengayire pushed a commit that referenced this pull request Jul 19, 2019
#165412889 & #165412878 Add article rating and article read time
sengayire pushed a commit that referenced this pull request Jul 19, 2019
#165412889 & #165412878 Add article rating and article read time
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.

None yet

4 participants