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

Conversation

@whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented May 28, 2025

This PR separates case-specific welcome emails from incident ones by introducing a new case_welcome template type and updating all related code paths, UI, and tests.

  • Added a new case_welcome enum and renamed the old welcome to incident_welcome
  • Updated factories, messaging, and case flows to use the new template names
  • Extended the Vue form to let users choose between incident and case welcome emails
image

@whitdog47 whitdog47 requested a review from Copilot May 28, 2025 23:17
@whitdog47 whitdog47 self-assigned this May 28, 2025
@whitdog47 whitdog47 added the bug Something isn't working label May 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR separates case-specific welcome emails from incident ones by introducing a new case_welcome template type and updating all related code paths, UI, and tests.

  • Added a new case_welcome enum and renamed the old welcome to incident_welcome
  • Updated factories, messaging, and case flows to use the new caseWelcome template
  • Extended the Vue form to let users choose between incident and case welcome emails

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/factories.py Updated default factory type to incident_welcome
src/dispatch/email_templates/enums.py Added case_welcome and renamed welcome to incident_welcome
src/dispatch/static/dispatch/src/email_templates/NewEditSheet.vue Updated dropdown items and hint text for case/incident
src/dispatch/incident/messaging.py Changed lookup to use incident_welcome
src/dispatch/case/flows.py Changed lookups to use case_welcome and tweaked logging

@whitdog47 whitdog47 requested a review from wssheldon May 29, 2025 00:20
@whitdog47 whitdog47 merged commit f5028ef into main May 29, 2025
9 checks passed
@whitdog47 whitdog47 deleted the fix/separate-email-template-for-cases branch May 29, 2025 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants