Commit 191d89e
ENG-1252 - Query builder link renderString (#675)
* feat: Add CellLink component for rendering links in results
Co-authored-by: mclicks <mclicks@gmail.com>
* Refactor CellLink to remove unused props and simplify event handling
Co-authored-by: mclicks <mclicks@gmail.com>
* Fix: Render links correctly in ResultsTable
Co-authored-by: mclicks <mclicks@gmail.com>
* Update roamjs-components to version 0.86.3 and enhance error handling in ResultsTable component
- Updated roamjs-components dependency in package.json and pnpm-lock.yaml.
- Improved error handling for rendering functions in ResultsTable, including catch blocks for internal errors.
- Refactored rendering logic to use promises for better error management.
* misc lint fixes
* Refactor ResultsTable and ResultsView components to enhance link rendering
- Renamed CellLink to CellRender for clarity and updated error handling context.
- Introduced a new CellLink component to handle link rendering with additional props for URL and control click functionality.
- Updated VIEWS in ResultsView to include 'render' option for improved view management.
* Refactor ResultsTable to streamline link rendering and remove CellLink component
- Removed the CellLink component and integrated its functionality directly into ResultRow for improved clarity.
- Updated link rendering logic to handle both 'link' and 'alias' views more efficiently.
- Simplified event handling for link interactions, enhancing overall performance.
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent e4ff23e commit 191d89e
4 files changed
Lines changed: 13769 additions & 7719 deletions
File tree
- apps/roam
- src/components/results-view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
| |||
69 | 88 | | |
70 | 89 | | |
71 | 90 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
85 | 101 | | |
86 | 102 | | |
87 | 103 | | |
| |||
155 | 171 | | |
156 | 172 | | |
157 | 173 | | |
| 174 | + | |
| 175 | + | |
158 | 176 | | |
159 | 177 | | |
160 | 178 | | |
| |||
167 | 185 | | |
168 | 186 | | |
169 | 187 | | |
170 | | - | |
| 188 | + | |
171 | 189 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
179 | 204 | | |
180 | 205 | | |
181 | 206 | | |
182 | 207 | | |
183 | 208 | | |
184 | 209 | | |
185 | 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 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
186 | 243 | | |
187 | 244 | | |
188 | 245 | | |
| |||
328 | 385 | | |
329 | 386 | | |
330 | 387 | | |
331 | | - | |
| 388 | + | |
| 389 | + | |
332 | 390 | | |
333 | 391 | | |
334 | 392 | | |
335 | 393 | | |
336 | 394 | | |
| 395 | + | |
| 396 | + | |
337 | 397 | | |
338 | 398 | | |
339 | 399 | | |
340 | 400 | | |
341 | 401 | | |
342 | 402 | | |
343 | 403 | | |
344 | | - | |
| 404 | + | |
345 | 405 | | |
346 | 406 | | |
347 | 407 | | |
| |||
641 | 701 | | |
642 | 702 | | |
643 | 703 | | |
644 | | - | |
| 704 | + | |
645 | 705 | | |
646 | 706 | | |
647 | 707 | | |
| |||
663 | 723 | | |
664 | 724 | | |
665 | 725 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
672 | 733 | | |
673 | 734 | | |
674 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments