Commit db7c744
authored
Persist history settings based on previous use (#971)
* Access user preferences (getters & setters) via WorkflowHistoryContext, using local storage utils (last used history page view (grouped/ungrouped), event type filters)
* Create wrapper component to wrap WorkflowHistory in context, and pass it to WorkflowPageTabs
* Make query params for ungrouped view and history page filters optional, and handle the defaults in code instead
* Disable "clearable" functionality for types filter to improve UX (otherwise, hitting "clear" would reset the filters to the default non-clear state which can be a little confusing)
* Rename "Clear filters" to "Reset filters"
* Reset event type filters when "Reset filters" is clicked
* Add default filters to History Event Types to hide decision tasks1 parent 285cbf2 commit db7c744
File tree
15 files changed
+669
-68
lines changed- src
- components/page-filters/page-filters-fields
- __tests__
- views
- workflow-history
- __tests__
- config
- workflow-history-context-provider
- __tests__
- workflow-history-filters-type
- __tests__
- workflow-history-wrapper
- workflow-page/config
15 files changed
+669
-68
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 87 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
274 | 330 | | |
275 | 331 | | |
276 | 332 | | |
| |||
281 | 337 | | |
282 | 338 | | |
283 | 339 | | |
| 340 | + | |
| 341 | + | |
284 | 342 | | |
285 | 343 | | |
286 | 344 | | |
| |||
291 | 349 | | |
292 | 350 | | |
293 | 351 | | |
| 352 | + | |
| 353 | + | |
294 | 354 | | |
295 | 355 | | |
296 | 356 | | |
| |||
304 | 364 | | |
305 | 365 | | |
306 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
307 | 371 | | |
308 | 372 | | |
309 | 373 | | |
| |||
313 | 377 | | |
314 | 378 | | |
315 | 379 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
323 | 389 | | |
324 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
325 | 401 | | |
326 | 402 | | |
327 | 403 | | |
| |||
413 | 489 | | |
414 | 490 | | |
415 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
416 | 495 | | |
417 | 496 | | |
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments