Commit 9da2d32
authored
feat: Improve search and services dashboard filters (#1445)
Closes HDX-2977
Closes HDX-2602
# Summary
This PR makes a few changes to improve the filter experience for users with large numbers of facet values.
## On the search page:
1. The limit for facet values upon clicking Load More is now 10k, up from 200. This limit is applied when Load More is explicitly clicked for a single filter key, the default limit on page load remains the same.
2. Because 10k values is too many to display without serious render lag (and 10k values is more than anyone wants to scroll through) we now impose a limit of 50 values displayed with a message encouraging users to search for values if some might be hiding.
3. When a user searches for a filter value, we now automatically load more, as presumably the value they're searching for is not already being displayed in the list
4. Filter values are sorted alphabetically when searching
### Bug Fix
Previously, when a user selected `Load More` for a filter and then switched to a different source, all values from `Load more` would be displayed as values for the second source. This has been fixed, and the Loaded More values are cleared when switching sources.
### Demo
https://github.com/user-attachments/assets/381a6366-25d9-401c-9310-fede75e9a793
## On the services dashboard
1. ServiceNames are now queried from the selected time range, to avoid poor performance or timeouts on large data volumes
2. ServiceNames are now sorted alphabetically in the dropdown
3. We now show up to 10k service names, to match the search page filter value limit
## Future improvements
Ideally, when a user searches for a filter value, we'd dispatch a new query searching for potentially matching values. This would ensure that users could find values outside of the new 10k value limit.1 parent edfcea6 commit 9da2d32
File tree
3 files changed
+110
-52
lines changed- .changeset
- packages/app/src
- components
3 files changed
+110
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | | - | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| |||
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
| |||
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
| 176 | + | |
168 | 177 | | |
169 | 178 | | |
170 | 179 | | |
| |||
1360 | 1369 | | |
1361 | 1370 | | |
1362 | 1371 | | |
| 1372 | + | |
1363 | 1373 | | |
1364 | 1374 | | |
1365 | 1375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
53 | 65 | | |
54 | | - | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| |||
314 | 326 | | |
315 | 327 | | |
316 | 328 | | |
317 | | - | |
318 | | - | |
319 | 329 | | |
320 | 330 | | |
321 | 331 | | |
| |||
376 | 386 | | |
377 | 387 | | |
378 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
379 | 400 | | |
380 | 401 | | |
381 | 402 | | |
| |||
403 | 424 | | |
404 | 425 | | |
405 | 426 | | |
406 | | - | |
| 427 | + | |
407 | 428 | | |
408 | 429 | | |
409 | 430 | | |
410 | 431 | | |
| 432 | + | |
411 | 433 | | |
412 | 434 | | |
413 | 435 | | |
| |||
421 | 443 | | |
422 | 444 | | |
423 | 445 | | |
424 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
425 | 453 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
430 | 463 | | |
431 | | - | |
432 | 464 | | |
433 | 465 | | |
434 | | - | |
435 | | - | |
| 466 | + | |
| 467 | + | |
436 | 468 | | |
437 | 469 | | |
438 | 470 | | |
| |||
462 | 494 | | |
463 | 495 | | |
464 | 496 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 497 | | |
474 | 498 | | |
475 | | - | |
476 | | - | |
477 | 499 | | |
478 | | - | |
479 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
480 | 503 | | |
481 | 504 | | |
482 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
483 | 513 | | |
484 | 514 | | |
485 | 515 | | |
| |||
501 | 531 | | |
502 | 532 | | |
503 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
504 | 538 | | |
505 | 539 | | |
506 | | - | |
507 | | - | |
| 540 | + | |
| 541 | + | |
508 | 542 | | |
509 | 543 | | |
510 | 544 | | |
| |||
581 | 615 | | |
582 | 616 | | |
583 | 617 | | |
584 | | - | |
| 618 | + | |
585 | 619 | | |
586 | 620 | | |
587 | 621 | | |
| |||
616 | 650 | | |
617 | 651 | | |
618 | 652 | | |
619 | | - | |
| 653 | + | |
620 | 654 | | |
621 | 655 | | |
622 | 656 | | |
| |||
669 | 703 | | |
670 | 704 | | |
671 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
672 | 719 | | |
673 | 720 | | |
674 | 721 | | |
| |||
696 | 743 | | |
697 | 744 | | |
698 | 745 | | |
699 | | - | |
| 746 | + | |
| 747 | + | |
700 | 748 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
719 | 758 | | |
720 | 759 | | |
721 | 760 | | |
| |||
845 | 884 | | |
846 | 885 | | |
847 | 886 | | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
848 | 892 | | |
849 | 893 | | |
850 | | - | |
851 | 894 | | |
852 | 895 | | |
853 | 896 | | |
854 | 897 | | |
855 | 898 | | |
856 | 899 | | |
857 | | - | |
| 900 | + | |
858 | 901 | | |
859 | 902 | | |
860 | 903 | | |
| |||
894 | 937 | | |
895 | 938 | | |
896 | 939 | | |
897 | | - | |
| 940 | + | |
898 | 941 | | |
899 | 942 | | |
900 | 943 | | |
| |||
0 commit comments