Commit 9e41900
ENG-1738: Render advanced search results as sidebar block (#1071)
* ENG-1738: Render advanced search results as sidebar block
Switch advanced search sidebar behavior to create a single summary block with wikilink children, and wire Option+Enter/footer action to open that block in the right sidebar. This aligns the flow with Roam's native sidebar result rendering while keeping the search dialog focused on result-list interaction.
Co-authored-by: Cursor <cursoragent@cursor.com>
* revert irrelevant changes
* switch to add page
* cleanup
* current progress, new UI
* cleanup
* cleanup and add filter and sort state
* new layout
* cleanup
* address PR comments
* fix type
* simplify
* revert redundant changes 1
* further simplify
* further simplify
* Simplify docked search sidebar mount and persistence.
Collapse storage into a single mount module, use getWindows() diff to find new sidebar windows, and keep only init + sidebar-reopen sync for restore-on-reload.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Fix await-thenable lint in getRoamSidebarWindows.
Wrap getWindows() in Promise.resolve so ESLint accepts the await while still handling sync or async API returns.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Remount docked search sidebar after extension reload.
Skip restore only when a panel is actively mounted, and remove stale
DOM roots on cleanup so persisted windows rehydrate after reload.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 271f990 commit 9e41900
9 files changed
Lines changed: 789 additions & 46 deletions
File tree
- apps/roam/src
- components/AdvancedNodeSearchDialog
- utils
Lines changed: 66 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
157 | | - | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
| |||
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
173 | 181 | | |
174 | | - | |
| 182 | + | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
| |||
197 | 205 | | |
198 | 206 | | |
199 | 207 | | |
200 | | - | |
| 208 | + | |
201 | 209 | | |
202 | 210 | | |
203 | 211 | | |
204 | 212 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 213 | | |
235 | 214 | | |
236 | 215 | | |
237 | 216 | | |
| 217 | + | |
238 | 218 | | |
239 | 219 | | |
240 | 220 | | |
| |||
244 | 224 | | |
245 | 225 | | |
246 | 226 | | |
247 | | - | |
248 | | - | |
| 227 | + | |
249 | 228 | | |
250 | 229 | | |
251 | 230 | | |
| |||
317 | 296 | | |
318 | 297 | | |
319 | 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 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
320 | 335 | | |
321 | 336 | | |
322 | 337 | | |
| |||
355 | 370 | | |
356 | 371 | | |
357 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
358 | 381 | | |
359 | 382 | | |
360 | 383 | | |
| |||
384 | 407 | | |
385 | 408 | | |
386 | 409 | | |
| 410 | + | |
387 | 411 | | |
388 | 412 | | |
389 | 413 | | |
| |||
491 | 515 | | |
492 | 516 | | |
493 | 517 | | |
| 518 | + | |
494 | 519 | | |
495 | 520 | | |
496 | 521 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
102 | 118 | | |
103 | 119 | | |
104 | 120 | | |
| |||
115 | 131 | | |
116 | 132 | | |
117 | 133 | | |
| 134 | + | |
118 | 135 | | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| 139 | + | |
122 | 140 | | |
123 | 141 | | |
124 | 142 | | |
125 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
126 | 148 | | |
127 | 149 | | |
128 | 150 | | |
| |||
0 commit comments