Commit f92dee5
authored
Users/mordvinx/testplane 404.new UI error boundaries (#630)
* feat(css): add min-width and min-height to app
In the future, it will help to render ErrorBoundary to the full screen.
* refactor(visual-checks): extract VisualCheckStickyHeader FC
* refactor(test-steps): raise CollapsibleSection, extract TestStep FC
* feat(error-handling): add ErrorHandling components
* style(suite-title): remove unused interface
* feat(test-step): add corrupted style for test step item
* feat(error-handling): add usages of ErrorHandler component
* refactor(error-handler): rename file
* refactor(error-handler): reorganize components
* feat(error-handler): add top level error handler
* feat(error-handler): additional message
* fix(icons): add new icons
Не добавил сразу, потому что они под gitignore
* feat(error-handler): change error font size from 15px to 13px
* feat(error-handler): fallback components will take 100% of width
* feat(error-handler): change data corruption fallback style
* feat(error-handler): raise AssertViewResult error handling
* feat(error-handler): reorganize fallbacks and add styling
* feat(error-handling): clip stack if length is more than 50 lines
* fix(imports): remove unused import
* feat(error-handling): change icon
* fix(styles): pretty width limitation for separator
* refactor(error-info): remove stack clipping
* feat(corrupted-test-step): update warning colors
* refactor(error-actions): do not use internals
* refactor(naming): rename ErrorHandler Root to Boundary
* feat(error-handler): add recommended action for CardCrash
* feat(error-boundary): add handling for any typed values
* feat(error-handling): change data corrution fallback align
* feat(error-handling): add handling for broken pages
* feat(error-handling): full width buttons
* fix(error-info): fix weird borders
* feat(error-handling): set code block max height
* fix(error-handling): fix mistypes
* feat(tests): add svg import stub
---------
Co-authored-by: = <=>1 parent d057ffc commit f92dee5
File tree
24 files changed
+776
-249
lines changed- lib/static
- icons
- new-ui
- app
- components
- AssertViewResult
- ErrorInfo
- SuiteTitle
- TreeViewItem
- features
- error-handling/components/ErrorHandling
- suites/components
- ScreenshotsTreeViewItem
- SuitesPage
- TestSteps
- visual-checks/components/VisualChecksPage
- test
- setup
- unit/lib/static/new-ui/features/visual-checks/components
24 files changed
+776
-249
lines changedLoading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
36 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments