e-picsa / picsa-apps

Monorepo for building tools to support E-PICSA Apps
https://picsa.app
GNU General Public License v3.0
5 stars 1 forks source link

feat(dashboard-monitoring) add form interface #256

Closed chrismclarke closed 1 month ago

chrismclarke commented 3 months ago

Is your feature request related to a problem? Please describe. Following work in #252, it would be good to create a button and screen where admins can add new monitoring forms.

Describe the solution you'd like Ideally the create and edit screens can be the same, populating existing data if it exists or empty data to fill. Minimally the process should include a few steps:

  1. Upload xls file. This will trigger conversion, user can only continue to next step if conversion successful
  2. Title and description input. It might be possible to read from the converted form data and just allow users to edit as required.
  3. Input cover image. This should take a file input and be optional.
  4. Save. This will upsert the db entry.

Additional context There might be some other fields required for the db, should check against current schema and add inputs as required. Hopefully fields like id and timestamps should automatically be populated, if not may be possible to add db migration to assign default values

chrismclarke commented 1 month ago

Closed by https://github.com/e-picsa/picsa-apps/issues/256