feat(forms): adds ability to export forms #5739
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new features that allow users to export incident forms and bulk delete forms within the Forms tab.
Key Changes:
Backend Enhancements:
get_project_forms_export_template
insrc/dispatch/document/service.py
to fetch the project forms export template.create
function to handle the special case of only allowing one forms export document per project.src/dispatch/forms/service.py
to handle the export logic, including grouping forms by project ID and ensuring necessary plugins are active./export
insrc/dispatch/forms/views.py
to trigger the export process.Frontend Enhancements:
BulkEditSheet
,DeleteBulkDialog
, andExportFormsDialog
to handle bulk actions, including export and delete dialogs.TemplateTable.vue
andstore.js
to include the new forms export template type.api.js
to include new methodsexportForms
andbulkDelete
for API interaction.Table.vue
to integrate the bulk edit sheet and export dialog functionalities.UI/UX Improvements:
Screen.Recording.2025-01-28.at.12.04.12.PM.mov