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

Implement functionality for book loans with updated readme.md #29

Conversation

benfluleck
Copy link
Owner

This PR implements the feedback from my code review.
This PR implements the book loan functionality, upload images to cloudinary

Description

  • Implemented a book loan modal for Book loans
  • Implementing a message for the Users who have no Books
  • Implementing a modal for unAuthenticated users

Screenshots (if appropriate):

screen shot 2017-11-19 at 2 29 58 pm

screen shot 2017-11-19 at 2 30 28 pm

Any background context you want to provide?

What are the relevant pivotal tracker stories?

https://www.pivotaltracker.com/story/show/152838944

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • New chore (expected functionality to be implemented)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Benny Ogidan and others added 10 commits November 14, 2017 14:33
- Redirect to login page on successful signup
- Implemented Auth Failure to assign state
- Message display if no books exist
- Eslint plugin re-installed to fix hound issues
- Images uploaded to cloudinary on onChange Modal function
- Db retieved from cloudinary ready to be used in the onClick method
- ProgressBar changed to use props
- ImageReducer implemented and added to rootReducer
- Updated the Readme.md file
- Implemented a Display Modal for loaning a book
- Implemented a pure component for the progress bar
- Implemented an axios call for the loan book
- Implement an Upload Image functionality
- Added sass linting to the repository

chore (updates to read.md)
- New lint style for sass configured
category={book.category}
description={book.description}
quantity={book.quantity}
image={book.bookimage}

Choose a reason for hiding this comment

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

Trailing spaces not allowed no-trailing-spaces

description={book.description}
image={book.bookimage}/>);
});
.map(book => (<Book

Choose a reason for hiding this comment

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

'books.map' is missing in props validation react/prop-types

}

Choose a reason for hiding this comment

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

Trailing spaces not allowed no-trailing-spaces

@@ -30,49 +35,44 @@ class DisplayLandingBooks extends React.Component{
componentDidMount() {
this
.props
.fetchBooksforDashboard(this.state.offset, this.state.limit)
.fetchBooksforDashboard(this.state.offset, this.state.limit);

Choose a reason for hiding this comment

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

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

import { PropTypes } from 'prop-types';
import { Preloader } from 'react-materialize';
import Book from '../../presentation/common/book/DisplayBook.jsx';
import { fetchBooksforDashboard } from '../../../actions/fetchbooks';

Choose a reason for hiding this comment

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

Unable to resolve path to module '../../../actions/fetchbooks' import/no-unresolved
Missing file extension for "../../../actions/fetchbooks" import/extensions

{...rest}
render={props => (isAuthenticated && tokenExists
? <Component{...props}/>
: <Redirect to='/login'/>)}

Choose a reason for hiding this comment

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

Unexpected usage of singlequote jsx-quotes
A space is required before closing bracket react/jsx-tag-spacing
Trailing spaces not allowed no-trailing-spaces

<Route
{...rest}
render={props => (isAuthenticated && tokenExists
? <Component{...props}/>

Choose a reason for hiding this comment

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

A space is required before closing bracket react/jsx-tag-spacing

}) => (
<Route
{...rest}
render={props => (isAuthenticated && tokenExists

Choose a reason for hiding this comment

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

Expected indentation of 4 space characters but found 6 react/jsx-indent-props

...rest
}) => (
<Route
{...rest}

Choose a reason for hiding this comment

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

Expected indentation of 4 space characters but found 6 react/jsx-indent-props

const UserRoutes = ({
isAuthenticated,
tokenExists,
component: Component,

Choose a reason for hiding this comment

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

'Component' is already declared in the upper scope no-shadow

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.526% when pulling aec0784 on feature/152838221/implement-functionality-for-book-loans-with-updated-Readme.md into cfb88ad on development.

@benfluleck benfluleck merged commit 1c24ae7 into development Nov 19, 2017
@benfluleck benfluleck deleted the feature/152838221/implement-functionality-for-book-loans-with-updated-Readme.md branch December 13, 2017 12:37
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

3 participants