Skip to content

171648125 Add approval table UI #15

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

Agnes-N
Copy link
Collaborator

@Agnes-N Agnes-N commented Jun 23, 2020

Description

This PR is for creating approval table UI.

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?

N/A

Screnshoot?

N/A

STORY ID

[Finishes #171648125]

@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-15 June 23, 2020 18:54 Inactive
@Agnes-N Agnes-N force-pushed the ft-approval-table-171648125 branch from 0fa254c to 7c4d791 Compare June 23, 2020 19:00
@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-15 June 23, 2020 19:00 Inactive
@Agnes-N Agnes-N force-pushed the ft-approval-table-171648125 branch from 7c4d791 to b29f360 Compare June 24, 2020 22:42
};
};

export const approvalFailed = payload => {
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; parenthesize the returned value and move it immediately after the => arrow-body-style

};
};

export const approvalSuccess = payload => {
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; parenthesize the returned value and move it immediately after the => arrow-body-style


const basePath = "https://champs-bn-api.herokuapp.com/api/v1";

export const approvalRequest = () => {
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; parenthesize the returned value and move it immediately after the => arrow-body-style

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

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

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.


@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.

Line contains trailing whitespace

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

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.

Line contains trailing whitespace

background-size: cover;
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.

@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-15 June 24, 2020 22:43 Inactive
@Agnes-N Agnes-N force-pushed the ft-approval-table-171648125 branch from b29f360 to 3826437 Compare June 24, 2020 22:45
width: 20px;
height: 20px;
background-image: url(../../../../Assets/DashboardAssets/left.png);
background-color: #f7f7f7;
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 #f7f7f7 should only be used in variable declarations; they should be referred to via variable everywhere else.

font-size: 20px;
width: 20px;
height: 20px;
background-image: url(../../../../Assets/DashboardAssets/left.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

}

.toggle-menu-button {
position: absolute;
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-color, background-image, background-position, background-repeat, background-size, border-radius, bottom, box-shadow, font-size, height, position, right, width, z-index

}
}

.toggle-menu-button {
Copy link

Choose a reason for hiding this comment

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

Line should be indented 0 spaces, but was indented 2 spaces
Rule set contains (14/10) properties

}
}
}

Copy link

Choose a reason for hiding this comment

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

Line contains trailing whitespace

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

height: 22px;
}

&__menu-setting {
Copy link

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

width: 22px;
height: 22px;
}

Copy link

Choose a reason for hiding this comment

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

Line contains trailing whitespace

}

&__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

@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-15 June 24, 2020 22:45 Inactive
@Agnes-N Agnes-N force-pushed the ft-approval-table-171648125 branch from 3826437 to 5582460 Compare June 25, 2020 09:39
@@ -0,0 +1,3 @@
.content {
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.

Line should be indented 2 spaces, but was indented 4 spaces

}
}

&__icon {
Copy link

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

cursor: pointer;
}
}

Copy link

Choose a reason for hiding this comment

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

Line contains trailing whitespace

&:hover,
&__selected {
background: rgba(255, 255, 255, 0.05);
box-shadow: inset -7px 0 0 0 #f5f5f5;
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 #f5f5f5 should only be used in variable declarations; they should be referred to via variable everywhere else.

text-decoration: none;
&:hover,
&__selected {
background: rgba(255, 255, 255, 0.05);
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(255, 255, 255, 0.05) should only be used in variable declarations; they should be referred to via variable everywhere else.

#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.

Line contains trailing whitespace

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

display: none;
}

&__menu {
Copy link

Choose a reason for hiding this comment

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

Line should be indented 2 spaces, but was indented 4 spaces

@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-15 June 25, 2020 09:40 Inactive
- add approval table UI.

[Finishes#171648125]
@Agnes-N Agnes-N force-pushed the ft-approval-table-171648125 branch from 5582460 to 10ec19d Compare June 29, 2020 23:45
@brianineza01 brianineza01 temporarily deployed to champs-frontend-pr-15 June 29, 2020 23:45 Inactive
import React from "react";
import LatestTripsContainer from "../LatestTrips/LatestTrips.jsx";

const ViewTrips = () => {
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

getAllTrips: () => dispatch(getTrips())
});

export default connect(mapStateToProps, mapDispatchToProps)(LatestTrips);
Copy link

Choose a reason for hiding this comment

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

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

.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)


.grid-container {
display: grid;
grid-template-columns: 170px auto;
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 display, grid-template-areas, grid-template-columns, grid-template-rows, height
Unknown property grid-template-columns

padding: 15px;
}

.grid-container {
Copy link

Choose a reason for hiding this comment

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

Line should be indented 0 spaces, but was indented 2 spaces

grid-area: main;
padding: 15px;
}

Copy link

Choose a reason for hiding this comment

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

Line contains trailing whitespace

height: 65px;
background: #f7f7f7;
}
.content {
Copy link

Choose a reason for hiding this comment

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

Line should be indented 0 spaces, but was indented 2 spaces

z-index: 1;
height: 65px;
background: #f7f7f7;
}
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

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