Skip to content

feature/AB#32197 - Implement RedStop restriction for application actions#2179

Merged
JamesPasta merged 8 commits into
devfrom
feature/AB#32197-redstop-restriction
Mar 27, 2026
Merged

feature/AB#32197 - Implement RedStop restriction for application actions#2179
JamesPasta merged 8 commits into
devfrom
feature/AB#32197-redstop-restriction

Conversation

@plavoie-BC
Copy link
Copy Markdown
Contributor

@plavoie-BC plavoie-BC commented Mar 26, 2026

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 RedStop is 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.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

1 similar comment
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Copy Markdown
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

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 RedStop is 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.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Copy Markdown
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

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.

@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

Copy link
Copy Markdown
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

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.

@plavoie-BC plavoie-BC marked this pull request as ready for review March 27, 2026 01:18
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 565
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@JamesPasta JamesPasta merged commit ec60063 into dev Mar 27, 2026
22 checks passed
@JamesPasta JamesPasta deleted the feature/AB#32197-redstop-restriction branch March 27, 2026 16:14
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