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

4 navbar #7

Merged
merged 10 commits into from
Oct 22, 2020
Merged

4 navbar #7

merged 10 commits into from
Oct 22, 2020

Conversation

skohlleffel
Copy link
Contributor

@skohlleffel skohlleffel commented Oct 21, 2020

This PR includes:

  • navbar
  • modal
  • generated graphs on user upload
  • default graphs

This resolves #5 #4 #6 #7 #8 #9 #10 #11.

@skohlleffel skohlleffel self-assigned this Oct 21, 2020
Copy link
Contributor

@randypitcherii randypitcherii left a comment

Choose a reason for hiding this comment

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

There are some issues, but overall great PR @skohlleffel

My biggest concern is that we should not have a static and uploaded version of each chart. Let's talk about how to pull the logic for initial data loading into the dashboard component then let a single version of each chart just handle the data it is given without needing to know where it came from.

src/App.js Outdated
const updated_data = data.slice(1);
const clean_data = updated_data.map(x => JSON.parse(x[0]));
// const warehouse_health_data = clean_data.filter(x => x.type==="warehouse_health");
// const warehouse_usage_data = clean_data.filter(x => x.type==="warehouse_usage");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please clean up zombie code rather than commenting it out.

if (this.props.healthcheck_data) {
return (
<div className="mx-auto">
<WarehouseHealthUploaded healthcheck_data={this.props.healthcheck_data}/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please filter the healthcheck data so it only passes down the data required for each chart

@@ -0,0 +1,28 @@
import React from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please give this component a better name.

@@ -0,0 +1,30 @@
import React from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please give this a better name. This modal does not by definition have anything to do with the nav. That's just the place we happen to trigger it from

@randypitcherii randypitcherii merged commit 572bb05 into master Oct 22, 2020
@randypitcherii randypitcherii deleted the 4-navbar branch October 22, 2020 15:13
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.

Create input modal that allows charting of a visitor's data
2 participants