Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

This pull request introduces new features that allow users to export incident forms and bulk delete forms within the Forms tab.

Key Changes:

  1. Backend Enhancements:

    • Added a new function get_project_forms_export_template in src/dispatch/document/service.py to fetch the project forms export template.
    • Updated the create function to handle the special case of only allowing one forms export document per project.
    • Introduced a new export function in src/dispatch/forms/service.py to handle the export logic, including grouping forms by project ID and ensuring necessary plugins are active.
    • Added a new endpoint /export in src/dispatch/forms/views.py to trigger the export process.
  2. Frontend Enhancements:

    • Added new components BulkEditSheet, DeleteBulkDialog, and ExportFormsDialog to handle bulk actions, including export and delete dialogs.
    • Updated TemplateTable.vue and store.js to include the new forms export template type.
    • Modified the forms api.js to include new methods exportForms and bulkDelete for API interaction.
    • Enhanced Table.vue to integrate the bulk edit sheet and export dialog functionalities.
  3. UI/UX Improvements:

    • Project managers and above can now select multiple forms and choose to export them via a new export dialog.
    • Project managers and above have the ability to bulk delete selected forms through a dedicated delete dialog.
    • Added visual feedback for export progress and success, including links to the exported folders.
Screen.Recording.2025-01-28.at.12.04.12.PM.mov
Screenshot 2025-01-28 at 12 16 24 PM

@whitdog47 whitdog47 added the enhancement New feature or request label Jan 28, 2025
@whitdog47 whitdog47 requested a review from aaronherman January 28, 2025 20:17
@whitdog47 whitdog47 self-assigned this Jan 28, 2025
@whitdog47 whitdog47 merged commit 2431406 into main Jan 29, 2025
9 checks passed
@whitdog47 whitdog47 deleted the enhancement/export-forms branch January 29, 2025 18:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants