Commit 8130075
committed
fix: attachment fixes and implevements
- updated code to use changed POST endpoint which accepts multiple attachments at once
- fix callback which is called after all attachments are loaded
- fix internal FilePicker logic, which had issue when uploading many attachments in the same time (replaced useState with useReducer)
- fix view attachments mode
- improve error handling
- fix issue caused by reverting PR for attachments1 parent c141563 commit 8130075
File tree
10 files changed
+222
-134
lines changed- src
- actions
- components
- ChallengeEditor
- Attachment-Field
- FilestackFilePicker
- config
- containers/ChallengeEditor
- reducers
- services
10 files changed
+222
-134
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 388 | | |
393 | 389 | | |
394 | 390 | | |
395 | | - | |
396 | | - | |
| 391 | + | |
397 | 392 | | |
398 | 393 | | |
399 | 394 | | |
400 | | - | |
| 395 | + | |
401 | 396 | | |
402 | 397 | | |
403 | | - | |
404 | | - | |
| 398 | + | |
405 | 399 | | |
406 | 400 | | |
407 | 401 | | |
408 | 402 | | |
409 | | - | |
410 | | - | |
| 403 | + | |
411 | 404 | | |
412 | 405 | | |
413 | 406 | | |
| |||
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
12 | 26 | | |
13 | 27 | | |
14 | | - | |
| 28 | + | |
15 | 29 | | |
16 | 30 | | |
17 | 31 | | |
18 | 32 | | |
19 | | - | |
| 33 | + | |
20 | 34 | | |
21 | 35 | | |
22 | | - | |
| 36 | + | |
23 | 37 | | |
24 | 38 | | |
25 | 39 | | |
| |||
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | | - | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
76 | | - | |
| 86 | + | |
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
| |||
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
85 | | - | |
| 95 | + | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | 758 | | |
771 | 759 | | |
772 | 760 | | |
| |||
1141 | 1129 | | |
1142 | 1130 | | |
1143 | 1131 | | |
1144 | | - | |
| 1132 | + | |
1145 | 1133 | | |
1146 | 1134 | | |
1147 | 1135 | | |
| |||
1470 | 1458 | | |
1471 | 1459 | | |
1472 | 1460 | | |
1473 | | - | |
| 1461 | + | |
1474 | 1462 | | |
1475 | 1463 | | |
1476 | 1464 | | |
| |||
1525 | 1513 | | |
1526 | 1514 | | |
1527 | 1515 | | |
1528 | | - | |
| 1516 | + | |
1529 | 1517 | | |
1530 | 1518 | | |
1531 | 1519 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments