Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(case type): adds support for auto closing cases #5409

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

mvilanova
Copy link
Contributor

@mvilanova mvilanova commented Oct 29, 2024

These changes introduce the ability to automatically close cases based on case type configuration, enhancing the flexibility of the case management system.

New Feature: Auto-Close for Cases

  • Added auto_close boolean field to CaseType model
  • Implemented case_auto_close_flow function to handle automatic case closure
  • Updated case_new_create_flow to check for auto-close condition

Database Changes

  • Added auto_close column to case_type table (Alembic migration)

UI Updates

Case Type Management

  • Added "Auto Close" checkbox in the NewEditSheet component
  • Updated Table component to display "Auto Close" status
  • Modified store.js to include auto_close in the default selected state

Minor UI Adjustments

  • Reordered checkboxes in NewEditSheet component
  • Updated column order in Case Type Table

Code Refactoring

  • Moved CaseStatus import from models to enums
  • Added import for CaseResolutionReason

Other Changes

  • Updated imports and formatting in various files
  • Minor code style improvements
Screenshot 2024-10-29 at 3 08 05 PM Screenshot 2024-10-29 at 3 05 04 PM Screenshot 2024-10-29 at 3 19 06 PM

@mvilanova mvilanova added the enhancement New feature or request label Oct 29, 2024
Copy link
Contributor

@snkilmartin snkilmartin left a comment

Choose a reason for hiding this comment

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

🎉

@mvilanova mvilanova merged commit bdb63ab into master Oct 29, 2024
8 checks passed
@mvilanova mvilanova deleted the enhancement/case-auto-close branch October 29, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants