feature/AB#32197 - Implement RedStop restriction for application actions#2179
Conversation
1 similar comment
There was a problem hiding this comment.
Pull request overview
Adds “RedStop” enforcement to prevent status actions when an applicant is flagged high risk, applying the restriction consistently across the UI widget and the server-side application service.
Changes:
- Block all application status actions when applicant
RedStopis true (server-side enforcement + user-friendly error). - Update ApplicationActionWidget UI to reflect RedStop (danger styling, disable actions, and show a warning message).
- Add localized RedStop warning string.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/ApplicationActionWidget/Default.js | Adds RedStop client-side handling (popover warning + blocks confirmation flow). |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/ApplicationActionWidget/Default.cshtml | Renders RedStop state to the widget, changes dropdown styling, disables actions when RedStop. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/ApplicationActionWidget/ApplicationActionWidgetViewModel.cs | Adds IsRedStop property for UI rendering/behavior. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/ApplicationActionWidget/ApplicationActionWidget.cs | Populates IsRedStop by calling app service. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Domain.Shared/Localization/GrantManager/en.json | Adds localized RedStop warning string. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Application/GrantApplications/GrantApplicationAppService.cs | Implements IsApplicantRedStop, blocks permissions in GetActions, and blocks execution in TriggerAction. |
| applications/Unity.GrantManager/src/Unity.GrantManager.Application.Contracts/GrantApplications/IGrantApplicationAppService.cs | Exposes IsApplicantRedStop in the contract and modernizes interface formatting. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Pull request overview
Adds “RedStop” enforcement to prevent status actions when an applicant is flagged high risk, applying the restriction consistently across the UI widget and the server-side application service.
Changes:
RedStopis true (server-side enforcement + user-friendly error).