Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed ✍️
What
🤖 Generated by Copilot at 9432069
This pull request adds the number filter component and improves the filter UI for the frontend. It defines the
NumberFilterConfig
andFilterOperator
types and thenumber.constants
module to store the filter operators and values. It updates theFilter
,FilterDropdown
,FilterInlineSelect
, andFilterInput
components to use the new popover, tooltip, and error features. It modifies thenumber.filter.renderer
,number.label.renderer
, andnumber.parser
functions to handle different filter operators and values. It adds theAppFormErrors
component and thedropdown.scss
style rule to display the validation errors and the active state of the filter items.
🤖 Generated by Copilot at 9432069
Why
How
🤖 Generated by Copilot at 9432069
AppFormErrors
to display validation errors for form inputs (link)AppFormItem
component to passerrorIcon
anderrorClass
props toAppFormErrors
and add them to its own props (link, link)el-dropdown
component with theel-popover
component for the filter dropdown menu and add awidth
, apopper-class
, and areference
slot to it (link)subLabel
prop to the filter options and theFilterInlineSelect
component to display additional information about the filter operators (link, link, link)CUSTOM ATTRIBUTES
section to the filter dropdown menu to show the custom filters separately from the default ones (link)open
ref to theFilterDropdown
component to track the visibility of the popover and set it to false when an option is selected (link, link)el-dropdown
component with theel-tooltip
component for the filter operator switch and add a tooltip effect that shows the alternative operator (link)CrFilterInlineSelect
,CrFilterInput
,AppFormItem
, andAppFormErrors
components and theminValue
,numeric
, andrequired
validators (link, link, link)numberApiFilterRenderer
,numberItemLabelRenderer
, andnumberQueryUrlParser
functions to handle different filter operators and values using theFilterNumberOperator
enum and thenumberFilterOperators
array (link, link, link, link, link, link)FilterOperator
that defines theFilterOperator
interface for the filter operator objects (link)cr-filter-item
component (link)filter-input
class tofilter-input-field
and modify its style rules (link, link, link)flex-wrap
class to theFilterInlineSelect
component to allow the prefix and the selected option to wrap to a new line (link)Checklist ✅
Feature
,Improvement
, orBug
.