Skip to content

feat(case): add functionality to close cases from the list#265

Open
ucabrera wants to merge 2 commits into
developfrom
feature/closeCaseButton
Open

feat(case): add functionality to close cases from the list#265
ucabrera wants to merge 2 commits into
developfrom
feature/closeCaseButton

Conversation

@ucabrera

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 24, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 patchCaseState service to PATCH a case’s state.
  • 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.

Comment thread frontend/src/views/case/components/TableCase.jsx
Comment thread frontend/src/views/case/components/TableCase.jsx
Comment thread frontend/src/views/case/components/TableCase.jsx
Comment thread frontend/src/views/case/components/TableCase.jsx
Comment thread frontend/src/views/case/components/TableCase.jsx
Comment thread frontend/src/views/case/components/TableCase.jsx
Comment thread frontend/src/api/services/cases.jsx
@ucabrera ucabrera force-pushed the feature/closeCaseButton branch from 7062062 to b16b3e7 Compare June 24, 2026 19:05
@ucabrera ucabrera closed this Jun 24, 2026
@ucabrera ucabrera deleted the feature/closeCaseButton branch June 24, 2026 19:56
@ucabrera ucabrera restored the feature/closeCaseButton branch June 24, 2026 19:57
@ucabrera ucabrera reopened this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants