Commit d739e01
committed
feat(search): choose which topics the results come from
Chips in the Cmd-K dialog and on /search/ — Answers, Guides & articles, API
reference and the other edition — each an independent on/off switch, every one
on by default. The dialog showed all four groups and let a reader say nothing
about it; /search/ offered tabs, which let them pick exactly one group or
exactly everything. Neither answers "the guides and the answers, not the
generated API reference", which on a symbol-shaped query is the case that
matters: the API reference outnumbers the other two together.
The ranker half is the search-ranker submodule, bumped here. This commit is the
markup and the styles.
Being ON is the quiet state. Every chip starts on, and four solid accent blocks
above the results would read as a banner rather than a control, so the fill is
a 12% tint and switching one OFF is what stands out as a change the reader
made. A leading glyph carries the state as well as the colour — both are one
character wide in the mono face, so a toggle never reflows the row, and "+" is
the honest label for an off chip, which is a topic you can add back rather than
one that found nothing.
At 375px the four labels wrap to three lines. Tightened rather than put in a
horizontal scroller, which would hide chips off the edge of exactly the screen
where the API reference most needs switching off.1 parent afc8ad0 commit d739e01
3 files changed
Lines changed: 81 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 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 | + | |
123 | 185 | | |
124 | 186 | | |
125 | 187 | | |
| |||
349 | 411 | | |
350 | 412 | | |
351 | 413 | | |
352 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
353 | 418 | | |
354 | 419 | | |
355 | 420 | | |
356 | 421 | | |
357 | 422 | | |
358 | 423 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | 424 | | |
377 | 425 | | |
378 | 426 | | |
| |||
448 | 496 | | |
449 | 497 | | |
450 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
451 | 506 | | |
452 | 507 | | |
453 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
Submodule search-ranker updated 1 file
0 commit comments