feat(case): add functionality to close cases from the list#265
Open
ucabrera wants to merge 2 commits into
Open
feat(case): add functionality to close cases from the list#265ucabrera wants to merge 2 commits into
ucabrera wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds UI + API support to close a case directly from the case list by transitioning the case to a “solved” child state, with confirmation messaging.
Changes:
- Added a “Close case” action button in the case table with a confirmation modal and prechecks (already closed / no valid transition).
- Introduced a new
patchCaseStateservice to PATCH a case’sstate. - Added EN/ES i18n strings for the close-case UX and API success/error alerts.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| frontend/src/views/case/components/TableCase.jsx | Adds close-case button, modal, state lookup logic, and disables closing for already-solved cases. |
| frontend/src/api/services/cases.jsx | Adds patchCaseState API helper to update a case’s state and emit alerts. |
| frontend/public/locales/es/translation.json | Adds Spanish strings for close-case UI and alerts. |
| frontend/public/locales/en/translation.json | Adds English strings for close-case UI and alerts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7062062 to
b16b3e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.