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

#165273545: Viewing read time for Articles or an Article #36

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

ZackAtama
Copy link
Contributor

@ZackAtama ZackAtama commented Jun 19, 2019

What does this PR do?

  • adds a feature for viewing read time for all articles

Description of Task to be completed?

  • users should be able to view the read time for all articles

How should this be manually tested?

  • clone the repository.
  • install dependencies: npm install
  • run tests: npx jest --coverage -u
  • run the application using: npm run dev

Any background context you want to provide?

  • Backend server must be running

What are the relevant pivotal tracker stories?

-165273545

Screenshots (if appropriate)

Read time display for all articles

Screenshot 2019-06-18 at 07 26 43

Read time display for an article

Screenshot 2019-06-18 at 07 27 21

this commit adds a feature for creating an article
files contained in this commit;
- Articles folder that contains the js and scss for articles pages

[Maintains #165273532]
this commit adds a feature for getting an article
included in this commit;
- UI design for an article page

[Maintains #165273532]
    this commit adds a feature for creating an article
    files contained in this commit;
    - Articles folder that contains the js and scss for articles pages

    [Maintains #165273532]
this commit adds a feature for viewing all articles

[Maintains #165273532]
this commit does the following;
- adds feature creating an article
- adds feature for getting all articles
this commit adds the following features to the application;
- a feature for creating an article
- a feature for getting all articles
- a feature for getting an article
- all features added have UI pages they are linked to

[Maintains #165273532]
this commit adds a feature for seeing the read time of an article

[Maintains #165273545]
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.

export const axiosConfig = {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${sessionStorage.getItem('ahToken')}`,

Choose a reason for hiding this comment

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

'sessionStorage' is not defined no-undef

export const baseURL = 'https://ah-backend-dojo-dev.herokuapp.com/api';

export const defaultImgURL = 'https://ah-frontend-dojo.herokuapp.com/src/asset';
export const author = sessionStorage.getItem('username');

Choose a reason for hiding this comment

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

'sessionStorage' is not defined no-undef

expect(newState.articles.length).toEqual(0);
});

it('Should return the passed state', () => {
const newState = articles(initialSate, generatePayload(GET_ARTICLES));
const newState = articlesReducer(initialSate, generatePayload(GET_ARTICLES));
expect(newState.articles.length).toEqual(0);

Choose a reason for hiding this comment

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

'expect' is not defined no-undef

});

it('should edit an article', () => {
expect(

Choose a reason for hiding this comment

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

'expect' is not defined no-undef

});

it('should edit an article', () => {
expect(

Choose a reason for hiding this comment

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

'expect' is not defined no-undef

import { getAllArticles } from 'store/actions/articleActions';
import { GET_ARTICLES, GET_ARTICLES_START } from '../articleTypes';
import { getAllArticles, newArticle } from 'store/actions/articleActions';
import data from 'store/actions/__mocks__';

Choose a reason for hiding this comment

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

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

import thunk from 'redux-thunk';
import { getAllArticles } from 'store/actions/articleActions';
import { GET_ARTICLES, GET_ARTICLES_START } from '../articleTypes';
import { getAllArticles, newArticle } from 'store/actions/articleActions';

Choose a reason for hiding this comment

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

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

getArticle(slug);
}

fetchArticle = (e) => {

Choose a reason for hiding this comment

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

Parsing error: Unexpected token =

export default class Search extends Component {
render() {
return (
<div className="searchPanel">

Choose a reason for hiding this comment

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

Parsing error: Unexpected token <

import React from 'react';
import './Loader.scss';

const ProgressLoader = () => <div className="progress__loader" />;

Choose a reason for hiding this comment

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

Parsing error: Unexpected token <

@ZackAtama ZackAtama changed the title Feat read time 165273545 #165273545: Viewing read time for Articles or an Article Jun 19, 2019
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.

2 participants