Commit 075e598
[Unified Search]
## Summary
Replaces
[`EuiSuperDatePicker`](https://eui.elastic.co/docs/components/forms/date-and-time/super-date-picker/)
with the new
[`DateRangePicker`](https://ci-artifacts.kibana.dev/storybooks/main/shared_ux/index.html?path=/story/date-time-daterangepicker--playground)
from `@kbn/date-range-picker` in `QueryBarTopRow`, only for Discover and
Dashboards, behind a feature flag.
~~🔗 [Cloud deployment
preview](https://kibana-pr-260163-485d2f.kb.us-west2.gcp.elastic-cloud.com/)
(ping me for credentials)~~
Resolves elastic/eui-private#521
<details>
<summary>Screenshots</summary>
<img width="730" height="644" alt="Screenshot 2026-03-30 at 22 59 23"
src="https://github.com/user-attachments/assets/97a11c72-ce6c-43ca-8f8b-f3d5d2c91cd2"
/>
<img width="730" height="644" alt="Screenshot 2026-03-30 at 22 59 55"
src="https://github.com/user-attachments/assets/51ef9e33-4a68-427c-ba46-cfe828e610c1"
/>
</details>
### Changes
>[!NOTE]
> Initially this PR introduced a UI setting as a mean for users to roll
back to the old picker, this was replaced with a feature flag (off by
default) for a controlled/granular rollout
3e87774
- **Added `unifiedSearch.newDateRangePickerEnabled` feature flag**, to
roll out the new time picker in steps (defaults to `false`)
- Added new `enableDateRangePicker` prop to `SearchBar` and
`QueryBarTopRow`, to **scope the new time picker to only Discover and
Dashboard**
- **Updated tests with a dual approach** in page objects (FTR and Scout)
so testing both the old and new time pickers is supported
- **Fixed syncing for auto-refresh** in `DateRangePicker`
(fdbf42e)
>[!TIP]
> To test the new time picker locally, override the feature flag in
`config/kibana.dev.yml`
```yaml
feature_flags.overrides:
unifiedSearch.newDateRangePickerEnabled: true
```
### Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.
### Identify risks
Risk is low:
- `EuiSuperDatePicker` is replaced by `DateRangePicker`, which exposes a
very simliar API and the change is largely a swap of implementations
behind the same interface
- FTR and Scout page objects were updated to cover both the old and new
picker paths; the flaky test runner showed no regressions across 5 FTR
configs (125 runs) and 15 Scout runs
- The new picker is only active when
`unifiedSearch.newDateRangePickerEnabled: true` is explicitly set; all
users get the existing `EuiSuperDatePicker` until the flag is enabled
## Release note
Introduces a new date range picker in Discover and Dashboard, in
technical preview behind a feature flag. The new picker lets you type
time ranges directly into a text input using flexible formats — combine
relative and absolute dates like `8 weeks ago to Apr 7, 2026`, use plain
expressions like `last 20 minutes`, or use the new shorthand syntax like
`-6mo` for the last 6 months. It supports the same quick presets,
absolute dates, recently used ranges, and auto-refresh as before.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Weronika Olejniczak <weronika.olejniczak@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>DateRangePicker integration (elastic#260163)1 parent b512133 commit 075e598
27 files changed
Lines changed: 1241 additions & 404 deletions
File tree
- src/platform
- test/functional
- apps
- dashboard/group4
- discover
- esql_2
- group1
- tabs
- page_objects
- x-pack
- performance/journeys_e2e
- platform/test
- functional/services/transform
- serverless/functional/test_suites/discover
- esql
- group1
- solutions/security
- packages/kbn-cloud-security-posture/graph/.storybook/decorators
- plugins/cloud_security_posture
- test/security_solution_cypress/cypress
- screens
- tasks
Lines changed: 218 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
35 | 64 | | |
36 | 65 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 66 | + | |
40 | 67 | | |
41 | 68 | | |
42 | 69 | | |
| |||
49 | 76 | | |
50 | 77 | | |
51 | 78 | | |
52 | | - | |
53 | 79 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 80 | | |
75 | | - | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
86 | 101 | | |
87 | 102 | | |
88 | 103 | | |
| |||
94 | 109 | | |
95 | 110 | | |
96 | 111 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 112 | + | |
100 | 113 | | |
101 | 114 | | |
102 | 115 | | |
| |||
107 | 120 | | |
108 | 121 | | |
109 | 122 | | |
110 | | - | |
| 123 | + | |
111 | 124 | | |
112 | 125 | | |
113 | 126 | | |
| |||
129 | 142 | | |
130 | 143 | | |
131 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
132 | 218 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
137 | 233 | | |
138 | 234 | | |
139 | 235 | | |
140 | | - | |
141 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
142 | 243 | | |
143 | 244 | | |
144 | 245 | | |
| |||
150 | 251 | | |
151 | 252 | | |
152 | 253 | | |
153 | | - | |
154 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
155 | 271 | | |
156 | 272 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
164 | 292 | | |
165 | 293 | | |
166 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
167 | 303 | | |
168 | 304 | | |
169 | 305 | | |
170 | 306 | | |
171 | 307 | | |
172 | 308 | | |
173 | 309 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
185 | 320 | | |
186 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
187 | 341 | | |
188 | 342 | | |
189 | 343 | | |
190 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
191 | 351 | | |
192 | 352 | | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| |||
0 commit comments