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

#158457052 User should be able to upload profile picture on signup #22

Merged
merged 1 commit into from
Jul 19, 2018

Conversation

bekomay26
Copy link
Contributor

What does this PR do?

  • Redesign avatar modal
  • Upload image to cloudinary
  • wrote test for the upload function
  • edit build and compile gulp tasks

Description of Task to be completed?

As a new user, I should be able to upload my desired profile image on signup

How should this be manually tested?

Clone the repo. Run ’npm install’ and run ’npm start’. Visit ‘http://localhost:3000/#!/signup’ and click on ‘upload profile picture’

What are the relevant pivotal tracker stories?

#158457052

Any background context you want to add?

Screenshots

screen shot 2018-07-18 at 2 23 40 pm

screen shot 2018-07-18 at 2 26 16 pm

@adetola-ralph adetola-ralph temporarily deployed to et-cfh-staging-pr-22 July 18, 2018 13:57 Inactive
@coveralls
Copy link

coveralls commented Jul 18, 2018

Pull Request Test Coverage Report for Build 420

  • 24 of 29 (82.76%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 68.179%

Changes Missing Coverage Covered Lines Changed/Added Lines %
backend-test/integration/auth.test.js 22 24 91.67%
app/controllers/users.js 2 5 40.0%
Totals Coverage Status
Change from base Build 400: 0.2%
Covered Lines: 906
Relevant Lines: 1191

💛 - Coveralls

@bekomay26 bekomay26 force-pushed the ft-upload-image-signup-158457052 branch from b9d0074 to cd0a05e Compare July 19, 2018 07:03
@adetola-ralph adetola-ralph temporarily deployed to et-cfh-staging-pr-22 July 19, 2018 07:03 Inactive
@bekomay26 bekomay26 force-pushed the ft-upload-image-signup-158457052 branch from cd0a05e to 08d0f71 Compare July 19, 2018 10:05
@adetola-ralph adetola-ralph temporarily deployed to et-cfh-staging-pr-22 July 19, 2018 10:05 Inactive
@bekomay26 bekomay26 force-pushed the ft-upload-image-signup-158457052 branch from 08d0f71 to b30d35c Compare July 19, 2018 13:52
localStorage.setItem('username', response.name);
$location.path('/');
}, (error) => {
console.log(error);

Choose a reason for hiding this comment

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

Unexpected console statement no-console

localStorage.setItem('username', response.name);
$location.path('/');
}, (error) => {
console.log(error);

Choose a reason for hiding this comment

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

Unexpected console statement no-console

$scope.viewImage = function () {
const file = event.target.files[0];
if (file) {
const fileReader = new FileReader();

Choose a reason for hiding this comment

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

'FileReader' is not defined no-undef

};
$scope.imagePreview = '';
$scope.viewImage = function () {
const file = event.target.files[0];

Choose a reason for hiding this comment

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

Unexpected use of 'event' no-restricted-globals
'event' is not defined no-undef

@adetola-ralph adetola-ralph temporarily deployed to et-cfh-staging-pr-22 July 19, 2018 13:52 Inactive
@bekomay26 bekomay26 changed the title #158457052 User should be able to upload profile picture on signup [WIP] #158457052 User should be able to upload profile picture on signup Jul 19, 2018
- Redesign avatar modal
- Upload image to cloudinary
- Test the upload function
- edit build and compile gulp tasks

[Finishes #158457052]
};
$scope.imagePreview = '';
$scope.viewImage = function () {
const file = event.target.files[0];

Choose a reason for hiding this comment

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

Unexpected use of 'event' no-restricted-globals
'event' is not defined no-undef

@bekomay26 bekomay26 changed the title [WIP] #158457052 User should be able to upload profile picture on signup #158457052 User should be able to upload profile picture on signup Jul 19, 2018
@adetola-ralph adetola-ralph merged commit 3dd0ebb into develop Jul 19, 2018
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