@czi-sds/mcp 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/data/tailwind.json +25 -25
  2. package/data/zeroheight-cache.json +5065 -1
  3. package/data/zeroheight-exports/Accordion.md +81 -20
  4. package/data/zeroheight-exports/Banner.md +104 -10
  5. package/data/zeroheight-exports/Buttons.md +1029 -1454
  6. package/data/zeroheight-exports/Callout.md +174 -9
  7. package/data/zeroheight-exports/Colors.md +1164 -41
  8. package/data/zeroheight-exports/Content-Card.md +148 -0
  9. package/data/zeroheight-exports/Control-Inputs.md +778 -63
  10. package/data/zeroheight-exports/Corners.md +8 -15
  11. package/data/zeroheight-exports/Dialog.md +200 -12
  12. package/data/zeroheight-exports/Downloads.md +120 -0
  13. package/data/zeroheight-exports/Dropdown-Input.md +616 -12
  14. package/data/zeroheight-exports/Dropdown-Menus.md +1150 -0
  15. package/data/zeroheight-exports/Field-Inputs.md +450 -9
  16. package/data/zeroheight-exports/Filters.md +238 -9
  17. package/data/zeroheight-exports/Getting-Started.md +7 -3
  18. package/data/zeroheight-exports/Hero.md +152 -0
  19. package/data/zeroheight-exports/Icons.md +1854 -218
  20. package/data/zeroheight-exports/Intent.md +40 -0
  21. package/data/zeroheight-exports/Link.md +52 -6
  22. package/data/zeroheight-exports/Lists.md +364 -6
  23. package/data/zeroheight-exports/Loading-Indicator.md +8 -0
  24. package/data/zeroheight-exports/Navigation.md +328 -6
  25. package/data/zeroheight-exports/Notification.md +172 -12
  26. package/data/zeroheight-exports/Panel.md +72 -12
  27. package/data/zeroheight-exports/README.md +17 -19
  28. package/data/zeroheight-exports/Responsive-Design.md +52 -0
  29. package/data/zeroheight-exports/Search-Input.md +44 -0
  30. package/data/zeroheight-exports/Search.md +248 -0
  31. package/data/zeroheight-exports/Segmented-Control.md +34 -9
  32. package/data/zeroheight-exports/Table.md +468 -47
  33. package/data/zeroheight-exports/Tabs.md +542 -9
  34. package/data/zeroheight-exports/Tags.md +504 -12
  35. package/data/zeroheight-exports/Text-Link.md +100 -0
  36. package/data/zeroheight-exports/Theming.md +36 -6
  37. package/data/zeroheight-exports/Tooltips.md +466 -15
  38. package/data/zeroheight-exports/Typography.md +64 -32
  39. package/package.json +3 -3
  40. package/data/zeroheight-exports/Dropdown-Menu.md +0 -3883
@@ -30,6 +30,10 @@ Header Navigation has been designed to collapse into a hamburger menu on narrow
30
30
  | --------------------- | -------------------- | -------------------- |
31
31
  | `--sds-breakpoint-sm` | `$sds-breakpoint-sm` | `breakpoints.sds-sm` |
32
32
 
33
+ **Breakpoint_small**
34
+
35
+ ---
36
+
33
37
  #### Medium
34
38
 
35
39
  _Screens between 512px-1023px wide_
@@ -42,6 +46,10 @@ Depending on the number of nav items in the Header Navigation it will either col
42
46
  | --------------------- | -------------------- | -------------------- |
43
47
  | `--sds-breakpoint-md` | `$sds-breakpoint-md` | `breakpoints.sds-md` |
44
48
 
49
+ **Breakpoint_medium**
50
+
51
+ ---
52
+
45
53
  #### Large
46
54
 
47
55
  _Screens >1024px wide_
@@ -52,6 +60,10 @@ Large breakpoint will be used when applications are viewed on large laptops, des
52
60
  | --------------------- | -------------------- | -------------------- |
53
61
  | `--sds-breakpoint-lg` | `$sds-breakpoint-lg` | `breakpoints.sds-lg` |
54
62
 
63
+ **Breakpoint_large**
64
+
65
+ ---
66
+
55
67
  ### Typography
56
68
 
57
69
  SDS has two sets of typography, one for narrow screens and one for wide. Narrow screen typography is used when applications are viewed at the Small breakpoint (screen widths of less than 512px) and wide screen typography is used when applications are viewed at Medium or Large breakpoints (screen widths of 512px or greater).
@@ -63,18 +75,58 @@ Below are a few visual examples of the differences. See the Typography section f
63
75
  | Header XXL – wide | Header XXL – narrow |
64
76
  | :---------------- | :------------------ |
65
77
 
78
+ **headerXxl_wide**
79
+
80
+ ---
81
+
82
+ **headerXxl_narrow**
83
+
84
+ ---
85
+
66
86
  | Body L – wide | Body L – narrow |
67
87
  | :------------ | :-------------- |
68
88
 
89
+ **bodyL_wide**
90
+
91
+ ---
92
+
93
+ **bodyL_narrow**
94
+
95
+ ---
96
+
69
97
  | Caps XXS – wide | Caps XXS – narrow |
70
98
  | :-------------- | :---------------- |
71
99
 
100
+ **capsXxs_wide**
101
+
102
+ ---
103
+
104
+ **capsXxs_narrow**
105
+
106
+ ---
107
+
72
108
  | Tabular S – wide | Tabular S – narrow |
73
109
  | :--------------- | :----------------- |
74
110
 
111
+ **tabularS_wide**
112
+
113
+ ---
114
+
115
+ **tabularS_narrow**
116
+
117
+ ---
118
+
75
119
  | Code S – wide | Code S – narrow |
76
120
  | :------------ | :-------------- |
77
121
 
122
+ **codeS_wide**
123
+
124
+ ---
125
+
126
+ **codeS_narrow**
127
+
128
+ ---
129
+
78
130
  ## Code
79
131
 
80
132
  ## Overview
@@ -16,6 +16,26 @@ Click on each state below to enter inspect view and get details on its code attr
16
16
  | **Default** | **Hover** | **Default** | **Focus** | **Disabled** |
17
17
  | ----------- | --------- | ----------- | --------- | ------------ |
18
18
 
19
+ **InputSearch**
20
+
21
+ ---
22
+
23
+ **InputSearch**
24
+
25
+ ---
26
+
27
+ **InputSearch**
28
+
29
+ ---
30
+
31
+ **InputSearch**
32
+
33
+ ---
34
+
35
+ **InputSearch**
36
+
37
+ ---
38
+
19
39
 
20
40
 
21
41
  ### Small Search Input
@@ -27,12 +47,36 @@ Used in napari.org for searches within a given page.
27
47
  | **Default** | **Hover** | **Default** | **Focus** | **Disabled** |
28
48
  | ----------- | --------- | ----------- | --------- | ------------ |
29
49
 
50
+ **InputSearch**
51
+
52
+ ---
53
+
54
+ **InputSearch**
55
+
56
+ ---
57
+
58
+ **InputSearch**
59
+
60
+ ---
61
+
62
+ **InputSearch**
63
+
64
+ ---
65
+
66
+ **InputSearch**
67
+
68
+ ---
69
+
30
70
  ---
31
71
 
32
72
  ### Search Input Spacing
33
73
 
34
74
  These rules establish how much margin should exist between and around elements.
35
75
 
76
+ **Search Input spacing**
77
+
78
+ ---
79
+
36
80
 
37
81
 
38
82
  ## Code
@@ -25,6 +25,10 @@ Search results are displayed on the current page by filtering down the visible c
25
25
 
26
26
 
27
27
 
28
+ **napari hub + org_On-page Results flow_Overview**
29
+
30
+ ---
31
+
28
32
  ---
29
33
 
30
34
  #### 1. User types keyword into Search Input
@@ -33,6 +37,10 @@ It is recommended to position your Search Input at the top level of the content
33
37
 
34
38
  For example, if the search will display results for a list of plugins (1), position the Search Input at the top of the list (2).
35
39
 
40
+ **On-page Results – 1**
41
+
42
+ ---
43
+
36
44
  #### **2. Search Initiated by User**
37
45
 
38
46
  Search is initiated when the user clicks a button, hits “enter”, or completes some other user action.
@@ -47,6 +55,10 @@ Results are displayed by filtering the content in the searchable area (1) so tha
47
55
 
48
56
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
49
57
 
58
+ **On-page Results – 3**
59
+
60
+ ---
61
+
50
62
  #### 4. User Takes Action on Results
51
63
 
52
64
  Depending on the product and the user’s workflow, users may take a number of next actions on the results, possibly including:
@@ -56,6 +68,10 @@ Depending on the product and the user’s workflow, users may take a number of n
56
68
  - Filter search results (3).
57
69
  - Interact with results, such as selecting a single result (4).
58
70
 
71
+ **On-page Results – 4**
72
+
73
+ ---
74
+
59
75
  ---
60
76
 
61
77
  ### Use Case Examples
@@ -81,6 +97,10 @@ Search results are displayed on a different page than where the search was origi
81
97
 
82
98
 
83
99
 
100
+ **napari hub + org_Results Page flow_Overview**
101
+
102
+ ---
103
+
84
104
  ---
85
105
 
86
106
  #### 1. User Types Keyword into Search Component
@@ -91,6 +111,10 @@ For example, if the search will display results from across the whole site (1),
91
111
 
92
112
 
93
113
 
114
+ **Results Page – 1**
115
+
116
+ ---
117
+
94
118
  #### 2. **Search Initiated by User**
95
119
 
96
120
  Search is initiated when the user clicks a button (1), hits “enter” (2), or some other user action.
@@ -99,6 +123,10 @@ Because results will be displayed on a new page, Live Search is not recommended.
99
123
 
100
124
 
101
125
 
126
+ **Results Page – 2**
127
+
128
+ ---
129
+
102
130
  #### 3. Results Displayed on the Results page
103
131
 
104
132
  After the user initiates the search, they are automatically directed to a results page.
@@ -109,6 +137,10 @@ If there are no results, it is recommended to display a bank state on the result
109
137
 
110
138
 
111
139
 
140
+ **Results Page – 3**
141
+
142
+ ---
143
+
112
144
  #### 4. User Takes Action on Results
113
145
 
114
146
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -119,6 +151,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
119
151
 
120
152
 
121
153
 
154
+ **Results Page – 4**
155
+
156
+ ---
157
+
122
158
  ---
123
159
 
124
160
  ### Technical Considerations
@@ -137,8 +173,16 @@ This section will describe search in some use cases currently used across CZI pr
137
173
 
138
174
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
139
175
 
176
+ **Search within Dropdown Menu flow**
177
+
178
+ ---
179
+
140
180
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
141
181
 
182
+ **Search within Dropdown Menu behavior**
183
+
184
+ ---
185
+
142
186
  ## Other Considerations
143
187
 
144
188
  | Search is a complex component, and is highly subjective to each product's use case. While it's impossible to support and document every use case, here is a collection of patterns that may be useful to consider when implementing it. The patterns detailed below have not been developed by the SDS team and are simply examples pulled from products that utilize the SDS components. | | **Jump to pattern:** Combining Search Types Supporting User Behavior |
@@ -154,12 +198,32 @@ Depending on the use case, there may be a need to combine multiple flow types. H
154
198
 
155
199
  In most use cases for the Results Page flow, it can be beneficial to provide users with a way to modify their search results by implementing the On-page Results flow within a Results Page design.
156
200
 
201
+ **Results Page + On-page Results flow**
202
+
203
+ ---
204
+
157
205
  ---
158
206
 
159
207
  ## Patterns to Support User Behavior
160
208
 
161
209
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
162
210
 
211
+ **Display Search Results Count**
212
+
213
+ ---
214
+
215
+ **Highlight Search Results**
216
+
217
+ ---
218
+
219
+ **Surface Deep Results**
220
+
221
+ ---
222
+
223
+ **Sort Results by a Display Order**
224
+
225
+ ---
226
+
163
227
  ---
164
228
 
165
229
  Search is a flexible way for users to find data of interest or filter down their data by a keyword. This allows users to take action on the available data without the distraction of irrelevant information.
@@ -179,6 +243,10 @@ CZ GEN EPI only uses the On-page Results flow pattern for adding search or filte
179
243
 
180
244
  Search results are displayed on the current page by filtering down the visible content within the searchable area(s) to show matches only. This search is the most common pattern; it is used both at the component and the page levels.
181
245
 
246
+ **CZ GE_On-page Results flow_Overview**
247
+
248
+ ---
249
+
182
250
  ---
183
251
 
184
252
  #### **1. User types keyword into Search Input**
@@ -187,6 +255,10 @@ It is recommended to position the Search Input at the top level of the content t
187
255
 
188
256
  For example, if the search will display results for a single Table (1), position the Search Input at the top of the table (2).
189
257
 
258
+ **On-page Results – 1**
259
+
260
+ ---
261
+
190
262
  #### **2A. Search Initiated Automatically (Live Search)**
191
263
 
192
264
  Otherwise known as "Live Search," as the user types, the app automatically initiates the search with each keystroke or after a specified delay in keystrokes.
@@ -205,6 +277,10 @@ Results are displayed by filtering the content in the searchable area (1) so tha
205
277
 
206
278
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
207
279
 
280
+ **On-page Results – 3**
281
+
282
+ ---
283
+
208
284
 
209
285
 
210
286
  **4. User Takes Action on Results**
@@ -216,6 +292,10 @@ Depending on the product and the user’s workflow, users may take a number of n
216
292
  - Sort search results (3).
217
293
  - Interact with results, like drilling down into a single result, performing actions upon results, etc. (4).
218
294
 
295
+ **On-page Results – 4**
296
+
297
+ ---
298
+
219
299
  ---
220
300
 
221
301
  ### Use Case Examples
@@ -240,14 +320,38 @@ This section will describe search in some use cases currently used across CZI pr
240
320
 
241
321
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
242
322
 
323
+ **Search within Dropdown Menu flow**
324
+
325
+ ---
326
+
243
327
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
244
328
 
329
+ **Search within Dropdown Menu behavior**
330
+
331
+ ---
332
+
245
333
  ## Other Considerations
246
334
 
247
335
  ## Patterns to Support User Behavior
248
336
 
249
337
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
250
338
 
339
+ **Display Search Results Count**
340
+
341
+ ---
342
+
343
+ **Highlight Search Results**
344
+
345
+ ---
346
+
347
+ **Surface Deep Results**
348
+
349
+ ---
350
+
351
+ **Sort Results by a Display Order**
352
+
353
+ ---
354
+
251
355
  ---
252
356
 
253
357
  Search is a flexible way for users to find data of interest or filter down their data by a keyword. This allows users to take action on the available data without the distraction of irrelevant information.
@@ -275,6 +379,10 @@ Search is a flexible way for users to find data of interest or filter down their
275
379
 
276
380
  Search results are displayed on the current page by filtering down the visible content within the searchable area(s) to show matches only. This search is the most common pattern; it is used both at the component and the page levels.
277
381
 
382
+ **CZ ID_On-page Results flow_Overview_new**
383
+
384
+ ---
385
+
278
386
  ---
279
387
 
280
388
  #### **1. User types keyword into Search Input**
@@ -283,6 +391,10 @@ It is recommended to position the Search Input at the top level of the content t
283
391
 
284
392
  For example, if the search will display results in tables across multiple tabs (1), position the Search Input in the header (2).
285
393
 
394
+ **On-page Results – 1**
395
+
396
+ ---
397
+
286
398
  #### **2. Search Initiated by User**
287
399
 
288
400
  Search is initiated when the user clicks a button, hits “enter”, or completes some other user action.
@@ -295,6 +407,10 @@ Results are displayed by filtering the content in the searchable area (1) so tha
295
407
 
296
408
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
297
409
 
410
+ **On-page Results – 3**
411
+
412
+ ---
413
+
298
414
  #### **4. User Takes Action on Results**
299
415
 
300
416
  Depending on the product and the user’s workflow, users may take a number of next actions on the results, possibly including:
@@ -304,6 +420,10 @@ Depending on the product and the user’s workflow, users may take a number of n
304
420
  - Sort search results (3).
305
421
  - Interact with results, like drilling down into a single result, performing actions upon results, etc. (4).
306
422
 
423
+ **On-page Results – 4**
424
+
425
+ ---
426
+
307
427
  ---
308
428
 
309
429
  ### Use Case Examples
@@ -324,6 +444,10 @@ That being said, for the On-page Results flow, keep in mind that paginated vs in
324
444
 
325
445
  Search results are displayed inside a Dropdown Menu that appears below the Search Input. The user will remain on the same page until they select a result from the Dropdown Menu.
326
446
 
447
+ **CZ ID_Results Dropdown flow_Overview**
448
+
449
+ ---
450
+
327
451
  ---
328
452
 
329
453
  #### **1. User Types Keyword into Search Component**
@@ -332,6 +456,10 @@ It is recommended to position the Search Input at the top level of the content t
332
456
 
333
457
  For example, if the search will display results from across multiple tabs (1), position the Search Input in the header (2).
334
458
 
459
+ **Results Dropdown – 1**
460
+
461
+ ---
462
+
335
463
  #### **2. Search Initiated (Live Update)**
336
464
 
337
465
  As the user types, the app automatically initiates the search with each keystroke.
@@ -344,6 +472,10 @@ Instead of updating the searched content area, results are displayed in a Dropdo
344
472
 
345
473
  If there are no results, it is recommended to display a bank state in the Dropdown Menu instead.
346
474
 
475
+ **Results Dropdown – 3**
476
+
477
+ ---
478
+
347
479
  #### **4. User Takes Action on Results**
348
480
 
349
481
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -352,6 +484,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
352
484
  - Interact with results, such as drilling down into a single result (2) .
353
485
  - Initiate a different type of search flow. For example, the user clicks “enter” to filter page by search keyword (3). See Combining Search Types section to learn more.
354
486
 
487
+ **Results Dropdown – 4**
488
+
489
+ ---
490
+
355
491
  ## Example Use Cases
356
492
 
357
493
  ## Example Use Cases
@@ -362,8 +498,16 @@ This section will describe search in some use cases currently used across CZI pr
362
498
 
363
499
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
364
500
 
501
+ **Search within Dropdown Menu flow**
502
+
503
+ ---
504
+
365
505
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
366
506
 
507
+ **Search within Dropdown Menu behavior**
508
+
509
+ ---
510
+
367
511
 
368
512
 
369
513
  ## Other Considerations
@@ -381,12 +525,32 @@ Depending on the use case, there may be a need to combine multiple flow types. H
381
525
 
382
526
  CZ ID combines the Results Dropdown and the On-page Results flows. This allows users to jump to a specific result or filter the workspace by the search, depending on their needs.
383
527
 
528
+ **Results Dropdown + On-Page Results flow**
529
+
530
+ ---
531
+
384
532
  ---
385
533
 
386
534
  ## Patterns to Support User Behavior
387
535
 
388
536
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
389
537
 
538
+ **Display Search Results Count**
539
+
540
+ ---
541
+
542
+ **Highlight Search Results**
543
+
544
+ ---
545
+
546
+ **Surface Deep Results**
547
+
548
+ ---
549
+
550
+ **Sort Results by a Display Order**
551
+
552
+ ---
553
+
390
554
  ---
391
555
 
392
556
  Search is a flexible way for users to find data of interest or filter down their data by a keyword. This allows users to take action on the available data without the distraction of irrelevant information.
@@ -416,6 +580,10 @@ Search results are displayed on the current page by filtering down the visible c
416
580
 
417
581
  The example flow below uses CZ GEN EPI to show the on-page refresh of content that occurs when using the On-page Results flow.
418
582
 
583
+ **SDS_On-page Results flow_Overview**
584
+
585
+ ---
586
+
419
587
  ---
420
588
 
421
589
  #### 1. User types keyword into Search Input
@@ -424,6 +592,10 @@ It is recommended to position the Search Input at the top level of the content t
424
592
 
425
593
  For example, if the search will display results for a single Table (1), position the Search Input at the top of the table (2).
426
594
 
595
+ **On-page Results – 1**
596
+
597
+ ---
598
+
427
599
  #### 2A. Search Initiated Automatically (Live Search)
428
600
 
429
601
  Otherwise known as "Live Search," as the user types, the app automatically initiates the search with each keystroke or after a specified delay in keystrokes.
@@ -442,6 +614,10 @@ Results are displayed by filtering the content in the searchable area (1) so tha
442
614
 
443
615
  If there are no results, it is recommended that a “No Results” blank state is displayed in the content area instead.
444
616
 
617
+ **On-page Results – 3**
618
+
619
+ ---
620
+
445
621
  #### 4. User Takes Action on Results
446
622
 
447
623
  Depending on the product and the user’s workflow, users may take a number of next actions on the results, possibly including:
@@ -451,6 +627,10 @@ Depending on the product and the user’s workflow, users may take a number of n
451
627
  - Sort search results (3).
452
628
  - Interact with results, like drilling down into a single result, performing actions upon results, etc. (4).
453
629
 
630
+ **On-page Results – 4**
631
+
632
+ ---
633
+
454
634
  ---
455
635
 
456
636
  ### Use Case Examples
@@ -478,6 +658,10 @@ Search results are displayed inside a Dropdown Menu that appears below the Searc
478
658
 
479
659
  The example flow below uses CZ ID to show the contents of a Dropdown Menu filtering down to include only the Menu Items that match the keyword entered into the Search Input.
480
660
 
661
+ **SDS_Results Dropdown flow_Overview**
662
+
663
+ ---
664
+
481
665
  ---
482
666
 
483
667
  #### 1. User Types Keyword into Search Component
@@ -486,6 +670,10 @@ It is recommended to position the Search Input at the top level of the content t
486
670
 
487
671
  For example, if the search will display results from across multiple tabs (1), position the Search Input in the header (2).
488
672
 
673
+ **Results Dropdown – 1**
674
+
675
+ ---
676
+
489
677
  #### 2. Search Initiated (Live Update)
490
678
 
491
679
  As the user types, the app automatically initiates the search with each keystroke.
@@ -498,6 +686,10 @@ Instead of updating the searched content area, results are displayed in a Dropdo
498
686
 
499
687
  If there are no results, it is recommended to display a bank state in the Dropdown Menu instead.
500
688
 
689
+ **Results Dropdown – 3**
690
+
691
+ ---
692
+
501
693
  #### 4. User Takes Action on Results
502
694
 
503
695
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -506,6 +698,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
506
698
  - Interact with results, such as drilling down into a single result (2) .
507
699
  - Initiate a different type of search flow. For example, the user clicks “enter” to filter page by search keyword (3). See Combining Search Types section to learn more.
508
700
 
701
+ **Results Dropdown – 4**
702
+
703
+ ---
704
+
509
705
  ---
510
706
 
511
707
  ## Results Page
@@ -516,6 +712,10 @@ Search results are displayed on a different page than where the search was origi
516
712
 
517
713
  The example flow below uses napari.org to show the usage of a Results Page to display the outcome of a search.
518
714
 
715
+ **SDS_Results Page flow_Overview_new**
716
+
717
+ ---
718
+
519
719
  ---
520
720
 
521
721
  #### 1. User Types Keyword into Search Component
@@ -524,12 +724,20 @@ It is recommended to position Search Inputs at the top level of the content the
524
724
 
525
725
  For example, if the search will display results from across the whole site (1), position the Search Input in a top-level navigation or outside of the page content hierarchy (2).
526
726
 
727
+ **Results Page – 1**
728
+
729
+ ---
730
+
527
731
  #### 2. **Search Initiated by User**
528
732
 
529
733
  Search is initiated when the user clicks a button (1), hits “enter” (2), or some other user action.
530
734
 
531
735
  Because results will be displayed on a new page, Live Search is not recommended.
532
736
 
737
+ **Results Page – 2**
738
+
739
+ ---
740
+
533
741
  #### 3. Results Displayed on the Results page
534
742
 
535
743
  After the user initiates the search, they are automatically directed to a results page.
@@ -538,6 +746,10 @@ The results page format depends on the product's use case and content. In the ex
538
746
 
539
747
  If there are no results, it is recommended to display a bank state on the results page.
540
748
 
749
+ **Results Page – 3**
750
+
751
+ ---
752
+
541
753
  #### 4. User Takes Action on Results
542
754
 
543
755
  Depending on the product and the user’s workflow, they may take a number of next actions on the results, possibly including:
@@ -546,6 +758,10 @@ Depending on the product and the user’s workflow, they may take a number of ne
546
758
  - Interact with results, like drilling down into a single result (2) .
547
759
  - Filter or Sort Results.
548
760
 
761
+ **Results Page – 4**
762
+
763
+ ---
764
+
549
765
  ---
550
766
 
551
767
  ### Technical Considerations
@@ -564,8 +780,16 @@ This section will describe search in some use cases currently used across CZI pr
564
780
 
565
781
  When searching the Menu Items within a Dropdown Menu, it is recommended to use the On-Page Results flow type. Why? Think of the Dropdown Menu as the “page” and the Menu Items as the content being searched. As the user searches, the content is filtered down without leaving the open Dropdown Menu.
566
782
 
783
+ **Search within Dropdown Menu flow**
784
+
785
+ ---
786
+
567
787
  The following behaviors are recommended for displaying search results within a Dropdown Menu.
568
788
 
789
+ **Search within Dropdown Menu behavior**
790
+
791
+ ---
792
+
569
793
  ## Other Considerations
570
794
 
571
795
  | Search is a complex component, and is highly subjective to each product's use case. While it's impossible to support and document every use case, here is a collection of patterns that may be useful to consider when implementing it. The patterns detailed below have not been developed by the SDS team and are simply examples pulled from products that utilize the SDS components. **Please consider the information in this section as inspiration only.** | | **Jump to pattern:** Combining Search Types Supporting User Behavior |
@@ -581,12 +805,36 @@ Depending on the use case, there may be a need to combine multiple flow types. H
581
805
 
582
806
  In most use cases for the Results Page flow, it can be beneficial to provide users with a way to modify their search results by implementing the On-page Results flow within a Results Page design.
583
807
 
808
+ **Results Page + On-page Results flow**
809
+
810
+ ---
811
+
584
812
  ### Results Dropdown + On-page Results Flow
585
813
 
586
814
  CZ ID combines the Results Dropdown and the On-page Results flows. This allows users to jump to a specific result or filter the workspace by the search, depending on their needs.
587
815
 
816
+ **Results Dropdown + On-Page Results flow**
817
+
818
+ ---
819
+
588
820
  ---
589
821
 
590
822
  ## Patterns to Support User Behavior
591
823
 
592
824
  Below are some example behavior patterns worth considering to help support users in their searching. Evaluate if implementing these will help users’ workflows and if the product can support any technical requirements of implementation.
825
+
826
+ **Display Search Results Count**
827
+
828
+ ---
829
+
830
+ **Highlight Search Results**
831
+
832
+ ---
833
+
834
+ **Surface Deep Results**
835
+
836
+ ---
837
+
838
+ **Sort Results by a Display Order**
839
+
840
+ ---