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) form preview #259

Open chrismclarke opened 3 months ago

chrismclarke commented 3 months ago

Is your feature request related to a problem? Please describe. As the number of forms uploaded increases it will become harder to keep track of what each form looks like in the app. It would be useful if the dashboard could also include a form preview page/tab so that admin users can preview how a form looks in the app

Describe the solution you'd like It should be a fairly simple process of re-using the existing enketo-webform component in the dashboard within the form view page. Full code for app implementation can be found at apps\picsa-tools\monitoring-tool\src\app\pages\form\form-view\form-view.component.html

Example of form preview can be found within the app by clicking to add a new entry to any form. Ideally the same display could be embedded into the dashboard form view

picsa app_monitoring_view_ew_monitoring_XY7xVInHE6nYtBTxgb1b(PICSA-Tablet)

Describe alternatives you've considered admin could use kobotoolbox in-built preview while developing forms, however keeping everything within a single dashboard has benefits such as not having to create accounts and allowing multiple users to preview the same forms.