Skip to content

Feedback Second Implementation - #43

Open
Charpell wants to merge 32 commits into
Chore/Feedback-Implementationfrom
Chore/second-feedback-implementation
Open

Charpell wants to merge 32 commits into
Chore/Feedback-Implementationfrom
Chore/second-feedback-implementation

Conversation

@Charpell

Copy link
Copy Markdown
Owner

What does this PR do?

This PR implements all feedback gotten from the last defense session.

Description of task completed?

  • The system functions works as expected. The system implements all endpoints and as well as front-end usage.
  • The "how to contribute section" of the readme file has been improved
  • The tests result has been improved and its description clearly states what the test is doing
  • File names have been renamed to match what is been exported. Variables and functions names have been renamed in camelCase.
  • The system now has an expiration time of 1 day, thus disallows a user to stay in for too long.

31884983-e82c5978-b7e6-11e7-816d-5ddb8fae400a

- installed express-validator to validate input field
- re-name files to follow airbnb standard
- refactored contribution write up in readme file

[Finished]
- fixed issues with axios errors on the frontend

- create helper function to handle unresolved promise from axios

[Finished]
- write jsdoc for actions and api
- write descriptive custom error message instead of a generic one
- logs the user out after 24 hours
- change variable names to a descriptive name

[Finished]
 - fixed timeout on how long a user should be logged in

[finished]
- abstract bulky code into resubale component

[finished]
 - refactored navigation component into reuseable code

 [finished]
- Use Functions for all stateless component

[finished]
- Create 2 folders in components file; container and presentation
- Arrange all components into either container or presentation

[finished]
- Write more component test
- Write elaborate jsDoc
- Use single responsibility principle in Message js

[finished]
 - Create middleware to validate users input and passed it to the route
- Create methods to handle email and sms notification

[finished]
- Write test for Store
- Configure Travis to run client test

 [finished]
- Write JSDoc for AppStore

[finished]
- make server side test more descriptive
- server side return content of object
- update jsdoc
- reconfigure eslint settings
- refactor client files

[Finished]
- Generate test coverage report on codecov

[finished]
- create middleware to check if a user is authenticated

- create helper function to save users who have read a message

- refactor server controller files to DRY codes

- create a function to catch client errors

[finished]
- update client side to and complete test
- install and configure jswebToken

[Finished ]
@Charpell Charpell changed the title Chore/second feedback implementation Feedback Second Implementation Nov 10, 2017
@Charpell
Charpell force-pushed the Chore/second-feedback-implementation branch from d2c0751 to f7d39f8 Compare November 10, 2017 23:02
- refactored every file for variable and function names

- write more concrete test for server side

[Finished ]
@Charpell
Charpell force-pushed the Chore/second-feedback-implementation branch from f7d39f8 to 038106c Compare November 10, 2017 23:09
Comment thread .eslintrc Outdated
"jsx-a11y",
"import"
]
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Kindly add a newline here and also do the same for most files here as they do not have a newline at end of file.

* @method onChange
*
* @description this method gets data from the store and sets to state
*

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The indentation for your comments looks off, kindly fix it and it occurs in several files too

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I have fixed this

const Navigation = () => (
<div>
<nav className="navbar navbar-inverse fixed-top"
style={{ borderRadius: '0px' }}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a reason for an inline styling here?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I have removed inline styling

"redirectEventId": null
},
"myToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkaXNwbGF5TmFtZSI6IkhoIiwiZW1haWwiOiJkZGRAZ3QubmpnIiwiaWF0IjoxNTA5NjMyNDkwLCJleHAiOjE1MDk2MzYwOTB9.2JpqQzrNOwzSAMKOgaAhUAXlUhUF7yQ8fkEXNFZ9CTg"
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No newline at end of file.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I have fixed this

@Charpell
Charpell force-pushed the Chore/second-feedback-implementation branch 5 times, most recently from d43476b to a7d7bd5 Compare November 12, 2017 09:06
@Charpell
Charpell force-pushed the Chore/second-feedback-implementation branch from a7d7bd5 to 953cd4d Compare November 12, 2017 09:11
- removed inline styling
- added newline to end of files

[finished ]
@Charpell
Charpell force-pushed the Chore/second-feedback-implementation branch from 953cd4d to 51d7f33 Compare November 12, 2017 09:27
- Modify JsDoc template and styles

[finished ]
chore(jsDoc): implement feedback
- changed error message for authentication from specific  to generic error messages

- refactor test to only check for the value of a property instead of checking if it exist.

[finished ]
- write tests for functions in the AppStore

- create seeders file to abstract mock data

- remove old test snapshot

[finished ]
- refactor Validate class

- ignore autogenerated files

- refactor Group Controller into Single responsibility principle

[finished ]
- use code climate enviroment variable in travis

[finished ]
- change filename in utils to AppAPI.js
- update the build status badge and coveralls badge to recent branch

[finished ]
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.

2 participants