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

#167164944 View an Edit Author Profile #30

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

Conversation

OvieMudi
Copy link
Contributor

What does this PR do?

  • Adds a page for viewing author's profile

Description of Task to be completed?

How should this be manually tested?

To test manually on your local computer with localhost

# Clone this repository
$ git clone https://github.com/andela/dahlia-ah-frontend.git

# Navigate to the application folder
$ cd dahlia-ah-frontend

# Checkout the branch
$ git checkout feature/167164944/user-can-view-profile
# Install dependencies
$ npm install

# Start the app in development mode
$ npm run dev
  • provide the URL of the backend API server as an environment variable
  • check the .env.example file on the environmental variables to provide

Note: Kindly checkouts the screenshots section the layout to expect

Any background context you want to provide?

N/A

What are the relevant pivotal tracker stories?

#167164944

Screenshots

Screenshot 2019-09-12 at 4 55 35 AM

Screenshot 2019-09-12 at 4 56 11 AM

Screenshot 2019-09-12 at 4 57 48 AM

Screenshot 2019-09-12 at 4 58 14 AM

@OvieMudi OvieMudi marked this pull request as ready for review September 12, 2019 10:14
- design and create components for viewing profile
- add unit testing

[Starts #167164944]
@OvieMudi OvieMudi force-pushed the feature/167164944/user-can-view-profile branch from 7bfe4dc to 89bb5a7 Compare September 13, 2019 09:53
@OvieMudi OvieMudi force-pushed the feature/167164944/user-can-view-profile branch from 89bb5a7 to 64220bb Compare September 13, 2019 09:59
@OvieMudi OvieMudi force-pushed the feature/167164944/user-can-view-profile branch from 2fe1c99 to 4f421e2 Compare September 13, 2019 11:26
@Rythae Rythae requested a deployment to dahlia-ah-frontend-stagi-pr-30 September 13, 2019 12:22 Abandoned
@Rythae Rythae temporarily deployed to dahlia-ah-frontend-stagi-pr-30 September 13, 2019 12:22 Inactive
const { token } = JSON.parse(window.localStorage.getItem('AuthorsHavenUser')) || { token: null };
if (token) {

const user = JSON.parse(window.localStorage.getItem('AuthorsHavenUser'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to handle a case where the AuthorsHavenUser is deleted from the local storage when still logged in (i.e not redirected to the landing page). I faced error when that happened.

src/api/userProfile.js Outdated Show resolved Hide resolved
@OvieMudi OvieMudi added the Work In Progress Still working on feature label Sep 14, 2019
@Rythae Rythae temporarily deployed to dahlia-ah-frontend-stagi-pr-30 September 16, 2019 10:02 Inactive
@OvieMudi OvieMudi changed the title #167164944 View Author Profile #167164944 View an Edit Author Profile Sep 16, 2019
@Rythae Rythae temporarily deployed to dahlia-ah-frontend-stagi-pr-30 September 16, 2019 11:35 Inactive
@Rythae Rythae temporarily deployed to dahlia-ah-frontend-stagi-pr-30 September 16, 2019 11:39 Inactive
- handle state updates properly to avoid window reload
- add and link "START WRITING"
@OvieMudi OvieMudi added Needs review when your pr needs review and removed Work In Progress Still working on feature labels Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs review when your pr needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants