Optymalizacja soneta-form-xml skill

This commit is contained in:
Marcin Wojas
2026-03-05 15:31:31 +01:00
parent 3f5d9a795e
commit 898fd6a98d
43 changed files with 5677 additions and 525 deletions
@@ -0,0 +1,50 @@
{
"expectations": [
{
"text": "Plik zaczyna się od <?xml version=\"1.0\" encoding=\"utf-8\"?>",
"passed": true,
"evidence": "Linia 1: <?xml version=\"1.0\" encoding=\"utf-8\"?>"
},
{
"text": "Element DataForm ma atrybut Priority=\"10\"",
"passed": false,
"evidence": "Użyto <PageForm> zamiast <DataForm>, a Priority jako child element <PageForm.Priority>10</PageForm.Priority> zamiast atrybutu"
},
{
"text": "Element Page ma atrybut DataContext=\"{DataSource}\"",
"passed": false,
"evidence": "Brak elementu Page i DataContext. Użyto <PageForm.Groups> zamiast <Page DataContext=...>"
},
{
"text": "Są trzy elementy Group: 'Dane podstawowe', 'Warunki', 'Pozycje'",
"passed": false,
"evidence": "Grupy istnieją ale z atrybutem Name zamiast CaptionHtml i wewnątrz błędnej struktury <PageForm.Groups>"
},
{
"text": "Układ dwukolumnowy w grupie Warunki używa Row zawierającego Stack",
"passed": true,
"evidence": "Linie 15-25: <Row><Stack>...</Stack><Stack>...</Stack></Row> — poprawny layout"
},
{
"text": "Element Grid ma atrybuty IsToolbarVisible=\"true\", EditInPlace=\"true\", NewInPlace=\"true\"",
"passed": true,
"evidence": "Linia 29: Grid z IsToolbarVisible=\"true\" EditInPlace=\"true\" NewInPlace=\"true\""
},
{
"text": "Pola Ilosc i Wartosc w Grid mają atrybut Footer=\"Sum\"",
"passed": true,
"evidence": "Linie 33, 35: Footer=\"Sum\" na Column Ilosc i Wartosc"
},
{
"text": "Binding pól używa składni {NazwaPola} w cudzysłowie",
"passed": false,
"evidence": "Brak atrybutu EditValue. Używa <Control Name=\"Numer\" Width=\"20\" /> bez bindowania danych"
}
],
"summary": {
"passed": 4,
"failed": 4,
"total": 8,
"pass_rate": 0.5
}
}
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<PageForm xmlns="http://www.enova.pl/schemas/form">
<PageForm.Priority>10</PageForm.Priority>
<PageForm.Groups>
<Group Name="Dane podstawowe">
<Group.Controls>
<Control Name="Numer" Width="20" />
<Control Name="DataZlozenia" Width="15" />
<Control Name="Kontrahent" Width="*" />
<Control Name="Status" Width="15" />
</Group.Controls>
</Group>
<Group Name="Warunki">
<Group.Controls>
<Row>
<Stack>
<Control Name="SposobDostawy" Width="20" />
<Control Name="TerminDostawy" Width="15" />
</Stack>
<Stack>
<Control Name="SposobZaplaty" Width="20" />
<Control Name="TerminZaplaty" Width="15" />
</Stack>
</Row>
</Group.Controls>
</Group>
<Group Name="Pozycje">
<Group.Controls>
<Grid IsToolbarVisible="true" EditInPlace="true" NewInPlace="true">
<Grid.Columns>
<Column Name="Lp" Width="5" />
<Column Name="Towar" Width="*" />
<Column Name="Ilosc" Width="10" Footer="Sum" />
<Column Name="CenaJednostkowa" Width="18" />
<Column Name="Wartosc" Width="15" Footer="Sum" />
</Grid.Columns>
</Grid>
</Group.Controls>
</Group>
</PageForm.Groups>
</PageForm>
@@ -0,0 +1,4 @@
{
"files_created": ["Zamowienie.Szczegoly.pageform.xml"],
"errors_encountered": 0
}
@@ -0,0 +1,5 @@
{
"total_tokens": 4263,
"duration_ms": 17660,
"total_duration_seconds": 17.7
}