Isolate InfoPanel templates, document DataItem contract

- Added MGGRID_TODO.md entry (ACBLAZOR-GRID-T-E3B6) for ErrorBoundary isolation of consumer templates and DataItem contract documentation.
- Updated GridShippingDocumentInfoPanel.razor to guard against null ShippingItems after add/save, preventing unhandled exceptions.
- Added PowerShell command in settings.local.json to count MGGRID_TODO.md lines for monitoring.
This commit is contained in:
Loretta 2026-07-13 08:57:07 +02:00
parent 71ffb4a2f6
commit 005645de9c
2 changed files with 5 additions and 2 deletions

View File

@ -96,7 +96,8 @@
"PowerShell(\"=== FruitBank.Common.Server ===\")", "PowerShell(\"=== FruitBank.Common.Server ===\")",
"PowerShell(Remove-Item \"H:\\\\Applications\\\\Mango\\\\Source\\\\FruitBankHybridApp\\\\FruitBank.Common\\\\Loggers\\\\FbLogItem.cs\" -Confirm:$false)", "PowerShell(Remove-Item \"H:\\\\Applications\\\\Mango\\\\Source\\\\FruitBankHybridApp\\\\FruitBank.Common\\\\Loggers\\\\FbLogItem.cs\" -Confirm:$false)",
"PowerShell(\"=== Server ===\")", "PowerShell(\"=== Server ===\")",
"PowerShell(\"=== Generated ===\")" "PowerShell(\"=== Generated ===\")",
"PowerShell(\\(Get-Content \"H:\\\\Applications\\\\Aycode\\\\Source\\\\AyCode.Blazor\\\\AyCode.Blazor.Components\\\\docs\\\\MGGRID\\\\MGGRID_TODO.md\" | Measure-Object -Line\\).Lines)"
] ]
} }
} }

View File

@ -25,7 +25,9 @@
<AfterColumnsTemplate Context="ctx"> <AfterColumnsTemplate Context="ctx">
@if (ctx.DataItem is not ShippingDocument && ctx.DataItem is not ShippingItem) return; @if (ctx.DataItem is not ShippingDocument && ctx.DataItem is not ShippingItem) return;
@if (ctx is { DataItem: ShippingDocument doc, IsEditMode: false }) @* ShippingItems: not null — add után a kijelölt sor a szerver-válasz NYERS entitása lehet (relációk betöltése
nélkül, ShippingItems == null), amíg a grid-reload le nem cseréli; a tétel-táblázat addig nem renderelődik. *@
@if (ctx is { DataItem: ShippingDocument { ShippingItems: not null } doc, IsEditMode: false })
{ {
<table class="table table-sm table-bordered table-striped" style="margin-top: 35px;"> <table class="table table-sm table-bordered table-striped" style="margin-top: 35px;">
<colgroup> <colgroup>