Skip to content

bugfix/AB#29602-payment-threshold-format-allow-empty#2150

Merged
DavidBrightBcGov merged 4 commits into
devfrom
bugfix/AB#29602-payment-threshold-format-allow-empty
Mar 20, 2026
Merged

bugfix/AB#29602-payment-threshold-format-allow-empty#2150
DavidBrightBcGov merged 4 commits into
devfrom
bugfix/AB#29602-payment-threshold-format-allow-empty

Conversation

@DavidBrightBcGov
Copy link
Copy Markdown
Contributor

AB#29602

Had to rebuild the maskMoney logic to permit empty/null input as the field uses null functionality. maskMoney allowEmpty=true does not function

Had to rebuild the maskMoney logic to permit empty/null input as the field uses null functionality. maskMoney allowEmpty=true does not function
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

Updates the Payment Configuration widget’s currency masking to allow the payment threshold field to remain empty/null (instead of forcing a formatted value), aligning the UI behavior with the backend’s nullable threshold semantics.

Changes:

  • Moved initial currency masking logic out of the .cshtml and into the component’s Default.js.
  • Added focus/blur handlers to destroy/reinitialize maskMoney so empty values can be left blank.
  • Applied masking on load only when an input has a non-empty value.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/PaymentConfiguration/Default.js Reworked maskMoney initialization and added focus/blur logic to support empty/null currency input.
applications/Unity.GrantManager/src/Unity.GrantManager.Web/Views/Shared/Components/PaymentConfiguration/Default.cshtml Removed inline <script> masking initialization now handled by Default.js.

💡 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 561
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

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

Sonarqube fixes
@DavidBrightBcGov DavidBrightBcGov marked this pull request as draft March 19, 2026 22:06
@github-actions
Copy link
Copy Markdown

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 561
❌ 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 2 out of 2 changed files in this pull request and generated 1 comment.


💡 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 561
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

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

@DavidBrightBcGov DavidBrightBcGov marked this pull request as ready for review March 20, 2026 00:01
@DavidBrightBcGov DavidBrightBcGov merged commit d3e6972 into dev Mar 20, 2026
22 checks passed
@JamesPasta JamesPasta deleted the bugfix/AB#29602-payment-threshold-format-allow-empty branch March 20, 2026 21:41
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.

2 participants