-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add labels to applied static filters #51
Conversation
|
||
export interface DecoratedAppliedFiltersConfig { | ||
showFieldNames?: boolean, | ||
hiddenFields?: Array<string>, | ||
labelText?: string, | ||
delimiter?: string, | ||
staticFiltersGroupLabels?: Record<string, StaticFiltersLabelConfig>, |
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.
Would it be simpler if this was just a mapping of fieldId to label? instead of a mapping of fieldId to an object with a single label property
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.
Yes, that would be simpler. I did it this way to make it more clear what the mapping was between, but I could also just do that with documentation instead
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.
Ah ok, let's just go with the string to string mapping for now, that way people don't have to understand what a StaticFiltersLabelConfig is. if needed we can tweak it later
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!
Allow users to specify group labels for applied static filters.
DecoratedAppliedFilters
accepts a mapping offieldId
to group label. If no label is provided, it defaults back to using thefieldId
as the group label.J=SLAP-1658
TEST=manual
Check that specifying a group label for a static filter fieldId is reflected when a filter with that fieldId is applied