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

Feat/dashboard #86

Open
wants to merge 39 commits into
base: dev
Choose a base branch
from
Open

Feat/dashboard #86

wants to merge 39 commits into from

Conversation

f-allian
Copy link
Member

@f-allian f-allian commented Jan 29, 2025

  • Added a lot of code to dashboards.py
  • Polished up the SurveyView to render metrics for the dashboard
  • Added a filter functionality to allow users to filter by demographic.

Example Dashboard:

image

Example with Filter:

image

@f-allian f-allian self-assigned this Jan 29, 2025
f-allian and others added 16 commits January 30, 2025 18:36
# Conflicts:
#	SORT/settings.py
#	assets/sort-survey-configurator/README.md
#	assets/sort-survey-configurator/index.html
#	assets/sort-survey-configurator/package.json
#	assets/sort-survey-configurator/src/App.svelte
#	assets/sort-survey-configurator/src/main.ts
#	assets/sort-survey-configurator/vite.config.ts
#	data/questions/questions.json
#	home/templates/projects/project.html
#	requirements.txt
#	static/templates/base.html
#	survey/services/survey.py
#	survey/templates/survey/survey.html
#	survey/templates/survey/survey_configure.html
#	survey/templates/survey/survey_response.html
#	survey/urls.py
#	survey/views.py
@f-allian f-allian marked this pull request as ready for review February 12, 2025 16:38
@f-allian f-allian added the enhancement New feature or request label Feb 12, 2025
@f-allian f-allian requested review from rosannamilner and removed request for yld-weng February 12, 2025 16:39
@f-allian f-allian changed the title Draft: Feat/dashboard Feat/dashboard Feb 12, 2025
Copy link
Contributor

@twinkarma twinkarma left a comment

Choose a reason for hiding this comment

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

Review for tomorrow

The interface is looking good. I've made some suggestions in the code itself but since it doesn't affect what's being rendered, we can address it after the user review tomorrow.

As for what should be fixed for tomorrow:

  • Maturity score should be between 0-4

image

  • The "Early progress" bar is very faint, it's hard to see especially in the first section when it's all squashed together:

image

  • Ethnicity pie chart is cut off by the legend (this is when it's showing all the results without any filters selected)
    image

Not a priority for tomorrow

But I'm making a note here so we don't forget it:

  • We should add a spinner when filters change and we're waiting for the data to load.
  • For filtering/comparison it's probably going to be more useful if we can somehow show the table of the demograhic categories at the same time e.g.
    image

@twinkarma
Copy link
Contributor

What's dash's support like for generating a pdf. If there isn't do you want me to look at at this for tomorrow? I was going to do an excel export function as well.

@f-allian
Copy link
Member Author

What's dash's support like for generating a pdf. If there isn't do you want me to look at at this for tomorrow? I was going to do an excel export function as well.

@twinkarma These are some resources I've gathered so far:

If you could please look into this, that'd be helpful while I fix your comments above.

@twinkarma
Copy link
Contributor

@f-allian I've already done the csv export in #131

Will look into pdf generation now.

@f-allian
Copy link
Member Author

@twinkarma Thanks for your comments, I've fixed them above. Should we merge this into dev now?

@twinkarma
Copy link
Contributor

Yes let's go ahead and merge.

@f-allian f-allian requested a review from twinkarma February 25, 2025 19:03
@f-allian
Copy link
Member Author

@twinkarma I've addressed your comments above and have improved the overall structure of the dashboard functionality. Main changes are:

  • I've removed the massive dashboard.py script and changed it into an app
  • The dashboard now gets the data from the SurveyResponse model instead of the config files
  • There is now an "Age Group" filter option.
  • Added a loading spinner while the dashboard updates.

Read for another review, thanks 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants