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

Styled landing page and implemented full stack for dashboard stats #43

Merged
merged 7 commits into from
Dec 4, 2023

Conversation

mohammad0612
Copy link
Contributor

Overview

Styled the dashboard in landing page to look like the Hi-Fis. Connected backend endpoints to frontend dashboard to display statistics of coordinates in map.

Changes Made

  • Styled the navbar and page color to match the Hi-Fi designs.
  • Created two functions to get clusterIds and another to fetch fognets statistics from each cluster in clusterIds
  • Made number of cluster statistics just the length of clusterIds retrieved from the backend function getClustersByLocation. Updated community statistics using the response json and counting distinct number of communities from each cluster.
  • Used second function to fetch fognet data, counting number of unique fognets and totaling water collected data.
  • Updated all state variables to contain these numbers fetched from backend and display in dashboard
  • Have hardcoded values for the location range for now just for testing and functionality purposes

Test Coverage

  • Used postman to test backend routes to make sure frontend is fetching the correct data
  • Tried frontend on different browsers to make sure it is rendering properly
  • Checked console for any logged errors (don't have any)

Screenshots

New Landing Page

Screenshot 2023-12-02 at 3 06 46 PM

@jfeuerstein jfeuerstein merged commit fd7fd0c into main Dec 4, 2023
0 of 3 checks passed
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.

3 participants