Skip to content

Commit

Permalink
Merge pull request #139 from amosproj/dev-#125
Browse files Browse the repository at this point in the history
Implementation of #125
  • Loading branch information
Waldleufer authored Jun 30, 2021
2 parents 172680f + 4411df7 commit e7ecd01
Show file tree
Hide file tree
Showing 12 changed files with 594 additions and 4 deletions.
123 changes: 123 additions & 0 deletions docs/drawing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
"jspdf-autotable": "^3.5.14",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-alice-carousel": "^2.5.1",
"react-apexcharts": "^1.3.9",
"react-burger-menu": "^2.6.13",
"react-collapsible": "^2.8.3",
"react-collapsible-content": "^1.0.0",
"react-dom": "^16.8.6",
"react-grid-system": "^7.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ function UnresolvedTicketsComponent({ containerStyles }) {
title='Unresolved tickets'
link='View details'
subtitle='Group:'

subtitleTwo='Support'
items={[
renderStat('Waiting on Feature Request', 4238),
renderStat('Awaiting Customer Response', 1005),
renderStat('Awaiting Developer Fix', 914),
renderStat('Pending', 281),
renderStat('Waiting on Feature Request', 4238),
renderStat('Awaiting Customer Response', 1005),
renderStat('Awaiting Developer Fix', 914),
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/details/ColumnChartComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ColumnChartComponent = () => {
},
responsive: [
{
breakpoint: 300,
breakpoint: 6400,
options: {
chart: {
width: 500
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/details/PieChartComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const PieChartComponent = () => {
],
responsive: [
{
breakpoint: 5600,
breakpoint: 6400,
options: {
chart: {
height: '300px'
Expand Down
59 changes: 59 additions & 0 deletions frontend/src/components/mydashboard/MydashboardComponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import React from 'react';
import { Column } from 'simple-flexbox';
import { createUseStyles } from 'react-jss';
import MydashboardItemComponent from './MydashboardItemComponent';
import { Container } from 'react-grid-system';

const useStyles = createUseStyles({
cardsContainer: {
marginRight: -30,
marginTop: -30
},
cardRow: {
marginTop: 30,
'@media (max-width: 768px)': {
marginTop: 0
}
},
miniCardContainer: {
flexGrow: 1,
marginRight: 30,
'@media (max-width: 768px)': {
marginTop: 30,
maxWidth: 'none'
}
},
todayTrends: {
marginTop: 30
},
lastRow: {
marginTop: 30
},
unresolvedTickets: {
marginRight: 30,
'@media (max-width: 1024px)': {
marginRight: 0
}
},
tasks: {
marginTop: 0,
'@media (max-width: 1024px)': {
marginTop: 30
}
}
});

function DashboardComponent() {
const classes = useStyles();
return (
<Container>
<Column>
<div className={classes.todayTrends}>
<MydashboardItemComponent />
</div>
</Column>
</Container>
);
}

export default DashboardComponent;
Loading

0 comments on commit e7ecd01

Please sign in to comment.