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
[x] Create dashboard pages for /monitoring
[x] Create db endpoint for monitoring_forms with schema matching hardcoded data found in apps\picsa-tools\monitoring-tool\data\forms
[x] 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
[x] Create db bindings and UI to list forms and display in a table
Form submissions
[x] Create page for /monitoring/{formId} (using route param for form id)
[x] There is already a db schema for monitoring_tool_submissions so I think fine to leave as-is for now
[x] 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.
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
/monitoring
monitoring_forms
with schema matching hardcoded data found inapps\picsa-tools\monitoring-tool\data\forms
apps\picsa-server\supabase\data
folder to make it easier for others to importForm submissions
/monitoring/{formId}
(using route param for form id)monitoring_tool_submissions
so I think fine to leave as-is for nowAdditional 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.