Skip to content

Conversation

@SebZhuC
Copy link
Collaborator

@SebZhuC SebZhuC commented Nov 20, 2023

No description provided.

KarinaZhangC and others added 30 commits October 21, 2023 17:23
Implemented UI for 4 datapoints in homepage (Karina & Ivy)
Installed react-chart js library, implemented ROI line chart following the UI design (Karina & Ivy)
Implemented impact dashboard Hackathon section as two cards, updated some spacing set up and css styles
mplemented Impact Across Sectors, Volunteer Matching, and Volunteer Experience sections (Karina & Ivy)
Integrated 4 APIs to front end (ROI, estimated impact, number of active volunteer, number of active project) -- Karina & Ivy
Implemented responsive UI (mobile screens) for 4 cards - Karina & Ivy
Completed 3 APIs integrations: ROI, Volunteer Renewal, Volunteer Matching (Karina & Ivy)
Frontend: Implemented 3 sections (ROI, Volunteer Renewal, Volunteer Matching) for mobile views with the most recent API integrations (Karina & Ivy)
Frontend: Implemented mobile views for Volunteer Roles and Hackathons (Karina & Ivy)
…ackathon

Frontend: Integrated 3 APIs for Impact of Sectors, Volunteer Roles, Hackathon (Karina & Ivy)
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 28, 2023 00:33 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 28, 2023 22:27 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 28, 2023 23:18 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 29, 2023 22:25 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 29, 2023 22:37 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 29, 2023 23:06 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging November 29, 2023 23:18 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging December 1, 2023 19:32 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging December 5, 2023 09:49 Inactive
}


class DollarsSaved(models.Model):
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO: Refactor impact stats into a more modular key/value store.

),
"project_issue_area": Tag.hydrate_to_json(
self.id, list(self.project_issue_area.all().values())
), # use this for project Issue area API
Copy link
Contributor

Choose a reason for hiding this comment

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

Extraneous comment

Comment on lines +1761 to +1762
role = TaggableManager(blank=True, through=TaggedVolunteerRole) # volunteer role
role.remote_field.related_name = "+" # volunteer role
Copy link
Contributor

Choose a reason for hiding this comment

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

Extraneous comment

overflow: hidden;
align-self: start; // stops character descenders from getting clipped, weird but works
}
// .AggregatedDashboard-title {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove unused

display: flex;
flex-direction: column;
justify-content: space-around;
// justify-content: center;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove unused

import React from "react";
import { Doughnut } from 'react-chartjs-2'; // References: https://react-chartjs-2.js.org/

// 570 Business
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extraneous comment.

Comment on lines +129 to +130
legends[0].fillStyle = "#F79E02";
legends[1].fillStyle = "#FDE2B3";
Copy link
Contributor

Choose a reason for hiding this comment

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

These colors are defined above, use those instead or put in a central variable.

}

componentDidMount(): void {
document.getElementById('detailButton').style.display = 'none';
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO: Inline style instead

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this being deleted?

@@ -1,5 +1,4 @@
from django.apps import AppConfig


Copy link
Contributor

Choose a reason for hiding this comment

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

Extraneous space

@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging January 12, 2024 02:21 Inactive
@marlonkeating marlonkeating temporarily deployed to democracy-lab-staging January 12, 2024 02:21 Inactive
@typesend typesend self-assigned this Jan 28, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

There are serious performance issues with this page as it stands. Multiple components have their own separate API calls, which on aggregate result in a long, fragmented page load where individual charts load at different times. For the sake of performance, I recommend putting all the data behind a single API call (whose payload should be cached since the data does not change often).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Resolved in #1088

@typesend typesend mentioned this pull request Feb 2, 2024
@typesend
Copy link
Collaborator

typesend commented Feb 2, 2024

Closing this PR as it lives on as #1088

@typesend typesend closed this Feb 2, 2024
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.

7 participants