Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number range filter #2478

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft

Number range filter #2478

wants to merge 26 commits into from

Conversation

christophscheuing
Copy link
Contributor

Relates to #2310 .

Still WIP.

Copy link

Deployed to https://pr-2478.aam-digital.net/

@christophscheuing
Copy link
Contributor Author

Remaining problem: The two input fields in the RangeInputComponent don't accept manually entering negative and decimal numbers. Not sure why this is. Probably has to do with the FormGroup / FormControl. Functionalitywise, both negative and decimal numbers should work with the filter. They can be entered via the arrow buttons or pasted from clipboard.

Not sure either why test for RangeInputComponent fails.

Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

Nice, clear code and good functionality! 😊

Just a few minor things that I commented or asked.

Functionality seems to work very well and smoothly


ngAfterViewInit() {
if (this.activateValidation) {
this.formControlDirective.form.addValidators([this.validatorFunction]);
Copy link
Member

Choose a reason for hiding this comment

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

we could add a unit test for this

this.formControl.value.to?.toString() ?? "",
];

this.filterConfig.selectedOptionChange.emit(
Copy link
Member

Choose a reason for hiding this comment

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

we could add a unit test to ensure a formControl change correctly updates the filterConfig (and emits selectedOptionChange)

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