Commit 375a5cb
committed
Add orderBy/limit to GetAllExpressionsWithMetadata and validate in UI
- Add orderBy and limit expressions (type "number") to
ForEachEvent::GetAllExpressionsWithMetadata so refactoring propagates
to them.
- Expose GetOrderByExpression/GetLimitExpression in C++ header, IDL
bindings, and JS types for expression validation.
- Show red underlines (instructionInvalidParameter) on invalid orderBy
and limit expressions in the ForEachEvent renderer, matching the
RepeatEvent pattern. Empty limit is treated as valid.
- Replace cursor:pointer on inline selects with the "selectable" CSS
class for consistent styling.
https://claude.ai/code/session_01LXTeNz7ehNS5TqFYSU6aw51 parent 92fea14 commit 375a5cb
File tree
6 files changed
+80
-9
lines changed- Core/GDCore/Events/Builtin
- GDevelop.js
- Bindings
- types
- newIDE/app/src/EventsSheet/EventsTree/Renderers
6 files changed
+80
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
69 | 79 | | |
70 | | - | |
| 80 | + | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2520 | 2520 | | |
2521 | 2521 | | |
2522 | 2522 | | |
| 2523 | + | |
2523 | 2524 | | |
2524 | 2525 | | |
2525 | 2526 | | |
2526 | 2527 | | |
| 2528 | + | |
2527 | 2529 | | |
2528 | 2530 | | |
2529 | 2531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1942 | 1942 | | |
1943 | 1943 | | |
1944 | 1944 | | |
| 1945 | + | |
1945 | 1946 | | |
1946 | 1947 | | |
1947 | 1948 | | |
1948 | 1949 | | |
| 1950 | + | |
1949 | 1951 | | |
1950 | 1952 | | |
1951 | 1953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
Lines changed: 58 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | | - | |
| 225 | + | |
| 226 | + | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
231 | 258 | | |
232 | 259 | | |
233 | 260 | | |
| |||
298 | 325 | | |
299 | 326 | | |
300 | 327 | | |
| 328 | + | |
301 | 329 | | |
302 | 330 | | |
303 | 331 | | |
| |||
336 | 364 | | |
337 | 365 | | |
338 | 366 | | |
339 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
340 | 378 | | |
341 | 379 | | |
342 | 380 | | |
| 381 | + | |
343 | 382 | | |
344 | 383 | | |
345 | 384 | | |
| |||
371 | 410 | | |
372 | 411 | | |
373 | 412 | | |
374 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
375 | 428 | | |
376 | 429 | | |
377 | 430 | | |
| |||
0 commit comments