Skip to content

WEB-718 Show required error message for days till field in delinquency range form#3147

Open
JaySoni1 wants to merge 1 commit intoopenMF:devfrom
JaySoni1:WEB-718-show-required-error-message-for-days-till-field-in-delinquency-range-form
Open

WEB-718 Show required error message for days till field in delinquency range form#3147
JaySoni1 wants to merge 1 commit intoopenMF:devfrom
JaySoni1:WEB-718-show-required-error-message-for-days-till-field-in-delinquency-range-form

Conversation

@JaySoni1
Copy link
Contributor

@JaySoni1 JaySoni1 commented Feb 13, 2026

Changed Made :-

-Added a required error message for the "Days Till" field in the Delinquency Range creation form to ensure consistent validation feedback with the "Days From" field.

WEB-718

Before :-

image

After :-

image

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced validation error messaging in the delinquency bucket management interface, ensuring users receive clear feedback when required fields are not properly filled during range creation.

@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

A new error display block is added to the create-range component template for the maximumAgeDays field. The mat-error element renders translated labels and a bold "required" message when the field validation fails, following the existing pattern used for other form fields in the template.

Changes

Cohort / File(s) Summary
Error Display for maximumAgeDays
src/app/products/manage-delinquency-buckets/delinquency-range/create-range/create-range.component.html
Added mat-error validation display block for maximumAgeDays field when required validation fails, mirroring existing error patterns for classification and minimumAgeDays fields.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • PR #3051: Adds required validation for the maximumAgeDays field in the component, which this PR complements by adding the corresponding mat-error display in the template.
  • PR #3113: Modifies minimumAgeDays handling in the same create-range component, providing related context for validation and error display patterns in this feature.

Suggested reviewers

  • alberto-art3ch
  • IOhacker
🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Merge Conflict Detection ⚠️ Warning ❌ Merge conflicts detected (21 files):

⚔️ README.md (content)
⚔️ angular.json (content)
⚔️ docker-compose.yml (content)
⚔️ env.sample (content)
⚔️ proxy.conf.js (content)
⚔️ proxy.localhost.conf.js (content)
⚔️ src/app/clients/client-stepper/client-general-step/client-general-step.component.html (content)
⚔️ src/app/clients/client-stepper/client-general-step/client-general-step.component.scss (content)
⚔️ src/app/clients/client-stepper/client-general-step/client-general-step.component.ts (content)
⚔️ src/app/clients/clients.service.ts (content)
⚔️ src/app/clients/edit-client/edit-client.component.html (content)
⚔️ src/app/clients/edit-client/edit-client.component.scss (content)
⚔️ src/app/clients/edit-client/edit-client.component.ts (content)
⚔️ src/app/products/manage-delinquency-buckets/delinquency-range/create-range/create-range.component.html (content)
⚔️ src/app/products/share-products/share-product-stepper/share-product-market-price-step/share-product-market-price-step.component.ts (content)
⚔️ src/assets/env.js (content)
⚔️ src/assets/env.template.js (content)
⚔️ src/assets/translations/en-US.json (content)
⚔️ src/environments/environment.prod.ts (content)
⚔️ src/environments/environment.ts (content)
⚔️ src/typings.d.ts (content)

These conflicts must be resolved before merging into dev.
Resolve conflicts locally and push changes to this branch.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a required error message for the 'Days Till' field in the delinquency range form, which is fully supported by the code modification.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch WEB-718-show-required-error-message-for-days-till-field-in-delinquency-range-form
  • Post resolved changes as copyable diffs in a comment

No actionable comments were generated in the recent review. 🎉


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Collaborator

@alberto-art3ch alberto-art3ch left a comment

Choose a reason for hiding this comment

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

Please see my comments

<mat-label>{{ 'labels.inputs.Days Till' | translate }}</mat-label>
<input matInput type="number" required formControlName="maximumAgeDays" min="1" />
@if (delinquencyRangeForm.controls.maximumAgeDays.hasError('required')) {
<mat-error>
Copy link
Collaborator

Choose a reason for hiding this comment

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

The maximum days IS NOT required, It can be blank

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