Skip to content

171648121 Update user profile #13

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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Irutingabo
Copy link
Collaborator

@Irutingabo Irutingabo commented Jun 12, 2020

Description

Users are able to amend/edit their profiles depending on change of preference to the full disclosure of the individual user

Type of change

Please select the relevant option

  • 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 not work as expected)
  • Others (cosmetics, styling, improvements)
  • This change requires a documentation update

How Has This Been Tested?

  • Unit
  • Integration
  • End-to-end
  • No testing required

How to Test

Setup:

  1. Clone this repo on your machine
  2. Run npm i to install dependencies
  3. Do npm run dev command

Test:

  1. Open your preferred browser, such google chrome browser
  2. Enter this link in the URL `localhost:8080/profile
  3. Then press enter button.

Screenshots or GIFs
Profile page
image

image

STORY ID

[Finishes #171648121]

@Irutingabo Irutingabo changed the title 171648121 user profile and support up… 171648121 Update user profile Jun 12, 2020
@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from 4b69dbf to 57ac509 Compare June 14, 2020 03:22
@Irutingabo Irutingabo added the WIP Work In Progress label Jun 14, 2020
@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch 4 times, most recently from 45c32c0 to 5c3acdd Compare June 14, 2020 13:18

&__menu-item-title,
.expanded-menu {
margin-left: 24px;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered color, font-size, font-style, font-weight, line-height, margin-left

height: 45px;
color: #fff;
margin-top: auto;
padding: 15px 0 0 22px;
Copy link

Choose a reason for hiding this comment

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

Shorthands of length 4 are not allowed. Value was 15px 0 0 22px

border-top: 1px solid #ffffff47;
font-size: 14px;
height: 45px;
color: #fff;
Copy link

Choose a reason for hiding this comment

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

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.


&__menu-setting {
border-top: 1px solid #ffffff47;
font-size: 14px;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered border-top, color, font-size, height, margin-top, padding

}

&__icon {
width: 22px;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered height, width

background: radial-gradient(
1355.92% 61.47% at 49.49% 50.08%,
#d17af0 0%,
#2a96cc 100%
Copy link

Choose a reason for hiding this comment

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

Color literals like #2a96cc should only be used in variable declarations; they should be referred to via variable everywhere else.

width: 170px;
background: radial-gradient(
1355.92% 61.47% at 49.49% 50.08%,
#d17af0 0%,
Copy link

Choose a reason for hiding this comment

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

Color literals like #d17af0 should only be used in variable declarations; they should be referred to via variable everywhere else.

}

&__menu {
display: flex;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered background, display, flex-direction, height, list-style, margin, padding-left, width

height: 100%;
color: #fff;
font-family: "Roboto", sans-serif;
@media (max-width: 480px) {
Copy link

Choose a reason for hiding this comment

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

@media declaration should be preceded by an empty line

.sidebar {
position: fixed;
height: 100%;
color: #fff;
Copy link

Choose a reason for hiding this comment

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

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.

@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from 5c3acdd to f180ebf Compare June 17, 2020 07:59
@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-13 June 17, 2020 07:59 Inactive
class Users extends Component {
state = { selectedItem: "Users" };

render() {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

import Header from "../Shared/Dashboard/Header/Header.jsx";
import "../Shared/Dashboard/Dashboard.scss";

class Users extends Component {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

import { string, bool } from "prop-types";
import "./Sidebar.scss";

function SidebarItem(props) {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

padding-left: 22px;
margin-top: 20px;
text-decoration: none;
&:hover, &__selected {
Copy link

Choose a reason for hiding this comment

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

Each selector in a comma sequence should be on its own single line
Rule declaration should be preceded by an empty line

@@ -0,0 +1,85 @@
.sidebar {
position: fixed;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered color, font-family, height, position

import "./Sidebar.scss";

const Sidebar = ({ onChange, selectedItem }) => {
const onItemClicked = item => {
Copy link

Choose a reason for hiding this comment

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

Unexpected block statement surrounding arrow body; move the returned value immediately after the => arrow-body-style

margin-right: 12px;
}
}
@media (max-width: 480px) {
Copy link

Choose a reason for hiding this comment

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

@media declaration should be preceded by an empty line

margin-left: 12px;
margin-right: 12px;
}
}
Copy link

Choose a reason for hiding this comment

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

@media declaration should be followed by an empty line

@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from f180ebf to f8293c7 Compare June 18, 2020 10:12
no-repeat #f7f7f7;
z-index: 1000;
border-radius: 50%;
box-shadow: 0 0 2px 1px #fff;
Copy link

Choose a reason for hiding this comment

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

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.

font-weight: 900;
font-size: 16px;
line-height: 19px;
color: #ffffff;
Copy link

Choose a reason for hiding this comment

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

Color literals like #ffffff should only be used in variable declarations; they should be referred to via variable everywhere else.

}
.icon-styles {
margin-left: 12px;
}
Copy link

Choose a reason for hiding this comment

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

Rule declaration should be followed by an empty line

}
.title {
margin-left: 36px;
}
Copy link

Choose a reason for hiding this comment

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

Rule declaration should be followed by an empty line

@media (max-width: 768px) {
.name {
display: "none";
}
Copy link

Choose a reason for hiding this comment

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

Rule declaration should be followed by an empty line

line-height: 35px;
color: rgba(0, 1, 0, 0.5);
margin: auto auto auto 14px;
}
Copy link

Choose a reason for hiding this comment

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

Rule declaration should be followed by an empty line

@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-13 June 18, 2020 10:12 Inactive
@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from f8293c7 to b2c795c Compare June 23, 2020 20:52
}

&:hover {
background-color: #687cd7;
Copy link

Choose a reason for hiding this comment

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

Color literals like #687cd7 should only be used in variable declarations; they should be referred to via variable everywhere else.

background-image: url(../../../../Assets/DashboardAssets/right.png);

&:hover {
background-color: #687cd7;
Copy link

Choose a reason for hiding this comment

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

Color literals like #687cd7 should only be used in variable declarations; they should be referred to via variable everywhere else.

box-shadow: 0 0 2px 1px #fff;

@media (max-width: 1024px) {
background-image: url(../../../../Assets/DashboardAssets/right.png);
Copy link

Choose a reason for hiding this comment

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

URLs should be enclosed in quotes

font-weight: 700;
font-size: 28px;
line-height: 35px;
color: rgba(0, 1, 0, 0.5);
Copy link

Choose a reason for hiding this comment

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

Color literals like rgba(0, 1, 0, 0.5) should only be used in variable declarations; they should be referred to via variable everywhere else.

width: 2px;
}
.title {
font-family: Roboto;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, margin

line-height: 21px;
text-align: right;

color: rgba(0, 0, 0, 0.5);
Copy link

Choose a reason for hiding this comment

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

Color literals like rgba(0, 0, 0, 0.5) should only be used in variable declarations; they should be referred to via variable everywhere else.

}

.name {
font-family: Roboto;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, text-align

border-radius: 50px;
margin-left: 14px;
margin-right: 14px;
border: "1px solid #DFE0EB";
Copy link

Choose a reason for hiding this comment

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

Color #DFE0EB should be written as #dfe0eb

}

.avatar {
height: 35px;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered border, border-radius, height, margin-left, margin-right, width

@@ -0,0 +1,71 @@
.logo {
color: #fff;
Copy link

Choose a reason for hiding this comment

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

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.

@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from b2c795c to ee61873 Compare June 23, 2020 20:59
.grid-container {
grid-template-columns: 1fr;
grid-template-rows: 72px 1fr;
grid-template-areas:
Copy link

Choose a reason for hiding this comment

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

Colon after property should be followed by one space

@media screen and (max-width: 480px) {
.grid-container {
grid-template-columns: 1fr;
grid-template-rows: 72px 1fr;
Copy link

Choose a reason for hiding this comment

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

Unknown property grid-template-rows
fr units not allowed on grid-template-rows; must be one of (%, Hz, ch, cm, deg, dpcm, dpi, dppx, em, ex, grad, in, kHz, mm, ms, pc, pt, px, q, rad, rem, s, turn, vh, vmax, vmin, vw)


@media screen and (max-width: 480px) {
.grid-container {
grid-template-columns: 1fr;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered grid-template-areas, grid-template-columns, grid-template-rows
Unknown property grid-template-columns
fr units not allowed on grid-template-columns; must be one of (%, Hz, ch, cm, deg, dpcm, dpi, dppx, em, ex, grad, in, kHz, mm, ms, pc, pt, px, q, rad, rem, s, turn, vh, vmax, vmin, vw)

height: 100vh;

@media (max-width: 1024px) {
grid-template-columns: 65px auto;
Copy link

Choose a reason for hiding this comment

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

Unknown property grid-template-columns

display: grid;
grid-template-columns: 170px auto;
grid-template-rows: 65px auto;
grid-template-areas:
Copy link

Choose a reason for hiding this comment

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

Colon after property should be followed by one space

import Content from "./Content/Content.jsx";
import "./Dashboard.scss";

const Dashboard = () => {
Copy link

Choose a reason for hiding this comment

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

Unexpected block statement surrounding arrow body; move the returned value immediately after the => arrow-body-style

import React from "react";
import "./Content.scss";

function ContentComponent() {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

font-weight: 900;
font-size: 18px;
line-height: 21px;
color: #000000;
Copy link

Choose a reason for hiding this comment

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

Color literals like #000000 should only be used in variable declarations; they should be referred to via variable everywhere else.

}

.label-field {
font-family: Roboto;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, width

.profile-details {
display: grid;
gap: 15px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
Copy link

Choose a reason for hiding this comment

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

Unknown property grid-template-columns

@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from ee61873 to 3eb5aa7 Compare June 23, 2020 21:32

.profile-details {
display: grid;
gap: 15px;
Copy link

Choose a reason for hiding this comment

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

Unknown property gap

font-weight: normal;
font-size: 18px;
line-height: 21px;
color: rgba(0, 0, 0, 0.6);
Copy link

Choose a reason for hiding this comment

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

Color literals like rgba(0, 0, 0, 0.6) should only be used in variable declarations; they should be referred to via variable everywhere else.


.content-container input[type="email"]::placeholder,
input[type="text"]::placeholder {
font-family: Roboto;
Copy link

Choose a reason for hiding this comment

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

Properties should be ordered color, font-family, font-size, font-style, font-weight, line-height, width

@Irutingabo Irutingabo force-pushed the ft-update-userProfile-171648121 branch from 3eb5aa7 to dc26de1 Compare July 1, 2020 12:48
changeValues: changeFieldValues,
fetchUserProfileDetail: fetchUserProfileDetails,
updateUserProfileData: updateUserProfileDetails
})(Profile);
Copy link

Choose a reason for hiding this comment

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

Replace } with ··}⏎ prettier/prettier

export default connect(mapStateToProps, {
changeValues: changeFieldValues,
fetchUserProfileDetail: fetchUserProfileDetails,
updateUserProfileData: updateUserProfileDetails
Copy link

Choose a reason for hiding this comment

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

Insert ·· prettier/prettier


export default connect(mapStateToProps, {
changeValues: changeFieldValues,
fetchUserProfileDetail: fetchUserProfileDetails,
Copy link

Choose a reason for hiding this comment

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

Insert ·· prettier/prettier

});

export default connect(mapStateToProps, {
changeValues: changeFieldValues,
Copy link

Choose a reason for hiding this comment

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

Insert ·· prettier/prettier

user: state.profile.user
});

export default connect(mapStateToProps, {
Copy link

Choose a reason for hiding this comment

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

Replace mapStateToProps, with ⏎··mapStateToProps,⏎· prettier/prettier

};
}

componentDidMount() {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

import "../Shared/Dashboard/Dashboard.scss";

class Profile extends Component {
constructor(props) {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

import "./Profile.scss";
import "../Shared/Dashboard/Dashboard.scss";

class Profile extends Component {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

import "../Shared/Dashboard/Dashboard.scss";

class Users extends Component {
constructor(props) {
Copy link

Choose a reason for hiding this comment

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

Missing JSDoc comment require-jsdoc

background-image: url(../../../../Assets/DashboardAssets/right.png);

&:hover {
background-color: #687cd7;
Copy link

Choose a reason for hiding this comment

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

Color literals like #687cd7 should only be used in variable declarations; they should be referred to via variable everywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants