-
Notifications
You must be signed in to change notification settings - Fork 263
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
[ACS-4985] Created an advanced date range filter for search #8714
[ACS-4985] Created an advanced date range filter for search #8714
Conversation
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-date-range-advanced.component.md
Outdated
Show resolved
Hide resolved
...omponents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.scss
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
} | ||
|
||
hasValidValue(): boolean { | ||
return !Object.values(this.tabsValidity).some((valid) => !valid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a bit weird negation, I think it would be more readable if you use .every
and check if each is valid instead of checking if some is invalid and negating it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the code to use .every()
instead. This looks much better now, thanks!!
this.startValue = { | ||
...this.startValue | ||
}; | ||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there timeout required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was leftover code that was not needed. Removed setTImeout()
...lib/search/components/search-filter-chips/search-widget-chip/search-widget-chip.component.ts
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-filter-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-filter-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-filter-tabbed.component.md
Outdated
Show resolved
Hide resolved
docs/content-services/components/search-filter-tabbed.component.md
Outdated
Show resolved
Hide resolved
...omponents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.html
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
...onents/search-date-range-advanced-tabbed/search-date-range-advanced-tabbed.component.spec.ts
Outdated
Show resolved
Hide resolved
…e when setting invalid date error on between date form fields
… 'Between' options use the start date to end date query format
…ng some numbers in the 'In the last' input field would clear out the field
…d width of the side filters panel in demo-shell search results window.
…s for e2e test cases
5e5130f
to
1e6b351
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
There is no advances date range filter for search
What is the new behaviour?
Created a new advanced date range filter for search. Also created a tabbed component for filtering on created as well as modified date. Refer ACS-4985 for more
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: