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) - Monitoring summary #218

Closed
7 tasks done
chrismclarke opened this issue Jan 18, 2024 · 0 comments
Closed
7 tasks done

feat(dashboard) - Monitoring summary #218

chrismclarke opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
App: Dashboard Updates related to Dashboard app

Comments

@chrismclarke
Copy link
Collaborator

chrismclarke commented Jan 18, 2024

Is your feature request related to a problem? Please describe.
We want to make it easier for administrators to manage monitoring forms. In the short term this will just be read-only access to lists of forms and submissions (will later look at ways to add new forms)

Describe the solution you'd like

Form summary

  • Create dashboard pages for /monitoring
  • Create db endpoint for monitoring_forms with schema matching hardcoded data found in apps\picsa-tools\monitoring-tool\data\forms
  • Manually populate seed data for the 3 hardcoded forms. Once populated export as csv and place in the apps\picsa-server\supabase\data folder to make it easier for others to import
  • Create db bindings and UI to list forms and display in a table

Form submissions

  • Create page for /monitoring/{formId} (using route param for form id)
  • There is already a db schema for monitoring_tool_submissions so I think fine to leave as-is for now
  • Create db bindings to get all submissions by a form id and display in a table

Additional context

  1. A new picsa-data-table component has been added to make it easier to generate simple data tables (uses mat-table but less boilerplate code required). This can be imported into any page, and should be used to create the UI tables instead of manually creating new mat-tables.

  2. The easiest way to generate seed data for monitoring_tool_submissions is to run the app locally, fill in a form and submit. It should automatically sync to the local supabase db.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: Dashboard Updates related to Dashboard app
Projects
Archived in project
Development

No branches or pull requests

2 participants