Commit 06f5cba
authored
Watch for a query parameter for the prompt within the text-to-cad UI (#8676)
* Watch for a query parameter for the prompt within the text-to-cad UI
All of the "try in browser" links in the website for TTC have been
broken since we migrated from the command-based implementation to the
pane-based implementation. This provides a way for URLs to include a
prompt that will be picked up by the pane UI and then deleted from the
search parameters. A separate PR is being made to allow URLs to set the
layout, so that we can guarantee that the TTC pane is open in a new
iteration of these "try in browser" links. But it's worth noting that
this implementation does not rely on the pane being open initially: the
param will stick around until the pane is opened.
* Hoist the state up and out of the textarea component
* Fix cursor-at-end problem
* fix: tsc errors1 parent 8b3f4bb commit 06f5cba
File tree
2 files changed
+30
-1
lines changed- src/components
- ModelingSidebar/ModelingPanes
2 files changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
329 | 334 | | |
330 | 335 | | |
331 | 336 | | |
| |||
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
| 522 | + | |
517 | 523 | | |
518 | 524 | | |
519 | 525 | | |
| |||
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
181 | 203 | | |
182 | 204 | | |
183 | 205 | | |
| |||
192 | 214 | | |
193 | 215 | | |
194 | 216 | | |
| 217 | + | |
195 | 218 | | |
196 | 219 | | |
197 | 220 | | |
0 commit comments