Skip to content

Commit f90039a

Browse files
JakobVogelsangca-d
andauthored
feat(Logging): show validation issues in a seperate diagnostics pane (#286)
* feat(foundation): add new custom event issue * feat(Hosting): add statusNumber to validator API * feat(Plugging): add pluginId property to plugins * feat(Logging): add daignostics pane * rebase(validators/): split messages send tp log adn diagnostics pane * test(validator/): update tests * feat(Logging): add snackbar indiacating new issues in diagnistics * feat(logging): display validator name in diagnostics * feat(validatetemplates): log validation warnings as issues * fix(wizards/lnode): adapt to filtered-list base class change * refactor(Logging): make getPluginName bit more robust * test: fix several failing tests Co-authored-by: Christian Dinkel <[email protected]>
1 parent 3ed474a commit f90039a

23 files changed

+4535
-1506
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# `ValidateSchema plugin`
2+
3+
## `for valid SCL files`
4+
5+
#### `zeroissues indiacation looks like the latest snapshot`
6+
7+
```html
8+
<mwc-dialog
9+
heading="Diagnostics"
10+
id="diagnostic"
11+
>
12+
<filtered-list
13+
id="content"
14+
wrapfocus=""
15+
>
16+
<mwc-list-item
17+
aria-disabled="true"
18+
disabled=""
19+
graphic="icon"
20+
mwc-list-item=""
21+
tabindex="0"
22+
>
23+
<span>
24+
Issues found during validation will show up here
25+
</span>
26+
<mwc-icon slot="graphic">
27+
info
28+
</mwc-icon>
29+
</mwc-list-item>
30+
</filtered-list>
31+
<mwc-button
32+
dialogaction="close"
33+
slot="primaryAction"
34+
>
35+
Close
36+
</mwc-button>
37+
</mwc-dialog>
38+
39+
```
40+
41+
## `for invalid SCL files`
42+
43+
#### `pushes issues to the diagnostics pane that look like the latest snapshot`
44+
45+
```html
46+
<mwc-dialog
47+
heading="Diagnostics"
48+
id="diagnostic"
49+
>
50+
<filtered-list
51+
id="content"
52+
wrapfocus=""
53+
>
54+
<mwc-list-item
55+
aria-disabled="false"
56+
noninteractive=""
57+
tabindex="-1"
58+
>
59+
Validate project
60+
</mwc-list-item>
61+
<li
62+
divider=""
63+
padded=""
64+
role="separator"
65+
>
66+
</li>
67+
<abbr title="The attribute 'name' is required but missing.
68+
invalid2007B:7 Substation name (Element '{http://www.iec.ch/61850/2003/SCL}Substation')">
69+
<mwc-list-item
70+
aria-disabled="false"
71+
mwc-list-item=""
72+
tabindex="-1"
73+
twoline=""
74+
>
75+
<span>
76+
The attribute 'name' is required but missing.
77+
</span>
78+
<span slot="secondary">
79+
invalid2007B:7 Substation name (Element '{http://www.iec.ch/61850/2003/SCL}Substation')
80+
</span>
81+
</mwc-list-item>
82+
</abbr>
83+
<abbr title="Not all fields of key identity-constraint '{http://www.iec.ch/61850/2003/SCL}SubstationKey' evaluate to a node.
84+
invalid2007B:7 Substation key identity-constraint '{http://www.iec.ch/61850/2003/SCL}SubstationKey' (Element '{http://www.iec.ch/61850/2003/SCL}Substation')">
85+
<mwc-list-item
86+
aria-disabled="false"
87+
mwc-list-item=""
88+
tabindex="-1"
89+
twoline=""
90+
>
91+
<span>
92+
Not all fields of key identity-constraint '{http://www.iec.ch/61850/2003/SCL}SubstationKey' evaluate to a node.
93+
</span>
94+
<span slot="secondary">
95+
invalid2007B:7 Substation key identity-constraint '{http://www.iec.ch/61850/2003/SCL}SubstationKey' (Element '{http://www.iec.ch/61850/2003/SCL}Substation')
96+
</span>
97+
</mwc-list-item>
98+
</abbr>
99+
</filtered-list>
100+
<mwc-button
101+
dialogaction="close"
102+
slot="primaryAction"
103+
>
104+
Close
105+
</mwc-button>
106+
</mwc-dialog>
107+
108+
```
109+

0 commit comments

Comments
 (0)