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
[Controls] Re-add filtering settings #172857
[Controls] Re-add filtering settings #172857
Conversation
7681953
to
733e7bd
Compare
/ci |
120535b
to
04b2358
Compare
04b2358
to
5ad6a15
Compare
/ci |
c546135
to
0cb4bd1
Compare
0c50e8b
to
974f2ea
Compare
974f2ea
to
9dc7d69
Compare
getUseGlobalFiltersTitle: () => | ||
i18n.translate('controls.controlGroup.management.filtering.useGlobalFilters', { | ||
defaultMessage: 'Apply global filters to controls', | ||
}), | ||
getUseGlobalTimeRangeTitle: () => | ||
i18n.translate('controls.controlGroup.management.filtering.useGlobalTimeRange', { | ||
defaultMessage: 'Apply global time range to controls', |
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.
Unfortunately, there is very little consistency in the copy different apps use for their "unified search bar" setting toggles:
App | Screenshot |
---|---|
Maps | |
Lens | |
TSVB |
So, since there didn't seem to be universal phrasing, I decided that the Maps copy is the best match in this case and went with that - open to suggestions, though 🤔
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.
cc @amyjtechwriter for the copy here 👀
Pinging @elastic/kibana-presentation (Team:Presentation) |
As part of this, I did a small redesign of the control group settings menu. Could you take a quick look @andreadelrio? Just want to make sure the new form group labels I added make sense - thank you!! 🙇 UPDATE |
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.
LGTM - copy wise. I really appreciate that you took the time to provide context (I would have been lost without it) and look at the other copy used in other apps!
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.
LGTM
code review only
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @Heenawter |
Thanks. We will adopt as early as possible. Sometimes, it takes time to adopt/ usual cycles; organisational processes. |
Closes #162985
Summary
This PR re-adds UI for the filtering settings that allow authors to determine whether or not they want the unified search bar / time picker to sync with the control group.
To provide some context, we used to have these settings, but they were deemed over complicated and the UI to control them was removed back in
v8.3
. Here's a screenshot of what they used to look like:Note
These settings still existed in the code, even after
v8.3
- all we did was remove the UI to control them.After customer feedback, we decided to re-add the UI to control these settings, with some simplification - specifically, after investigating how other apps (Maps, Lens, etc.) handle unified search bar settings, I noticed that the control group was the only place that considered the query bar to be different than / seperate from filter pills. Therefore, rather than having three toggles like we did previously (filter pills, query bar, and time picker), I combined the filter pills + query bar settings into a single "Apply global filters" toggle. So now, our unified search bar settings have only two toggles, like so:
This is not only simpler than it was in versions less than
v8.3.0
, it is also more consistent with how other apps do it.Important
After some design feedback, I moved the old descriptions for the "Validate user selections" and "Chain controls" settings into tooltips + switched to a compressed
EuiSwitch
for all the settings.All of the screenshots in this PR description have been updated to reflect this change, but some screenshots in the comments below may be out of date.
Summary of Control Group Settings by Version
v8.2.0
v8.3.0
<= version <=v8.12.0
v8.13.0
)Checklist
For maintainers