From e8d38f00380266e6a8e466ea950bea575ea93f43 Mon Sep 17 00:00:00 2001 From: Loretta Date: Sat, 20 Dec 2025 10:20:51 +0100 Subject: [PATCH] Improve info panel tables, PDF support, and splash screen Refactor shipping document info panel tables for better appearance and responsiveness using Bootstrap classes and improved CSS. Add PDF.js and custom PDF viewer scripts to enable PDF rendering in the info panel. Update splash screen handling for better Windows compatibility. Expand allowed Bash commands for development. Ensure UI updates in MgGridBase are properly scheduled with InvokeAsync. --- .claude/settings.local.json | 4 +- .../GridShippingDocumentInfoPanel.razor | 46 +++++++++++-------- FruitBankHybrid/FruitBankHybrid.csproj | 12 ++++- FruitBankHybrid/wwwroot/index.html | 7 ++- 4 files changed, 46 insertions(+), 23 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index fed9a2c..278535f 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -1,7 +1,9 @@ { "permissions": { "allow": [ - "Bash(dir:*)" + "Bash(dir:*)", + "Bash(dotnet list:*)", + "Bash(find:*)" ] } } diff --git a/FruitBankHybrid.Shared/Components/Grids/ShippingDocuments/GridShippingDocumentInfoPanel.razor b/FruitBankHybrid.Shared/Components/Grids/ShippingDocuments/GridShippingDocumentInfoPanel.razor index 016d03d..27fcc82 100644 --- a/FruitBankHybrid.Shared/Components/Grids/ShippingDocuments/GridShippingDocumentInfoPanel.razor +++ b/FruitBankHybrid.Shared/Components/Grids/ShippingDocuments/GridShippingDocumentInfoPanel.razor @@ -24,15 +24,23 @@ @if (dataItem is ShippingDocument doc) { - - +
+ + + + + + + + + - - - - - + + + + + @@ -40,22 +48,22 @@ { - - - - - + + + + + } - - + + - - - - - + + + + +
Név a dokumentumonTermék neveRakl.Menny.Net.súlyBr.súlyTermék neveRakl.Menny.Net.súlyBr.súly
@shippingItem.NameOnDocument@shippingItem.ProductName@shippingItem.PalletsOnDocument@shippingItem.QuantityOnDocument@shippingItem.NetWeightOnDocument@shippingItem.GrossWeightOnDocument@shippingItem.ProductName@shippingItem.PalletsOnDocument@shippingItem.QuantityOnDocument@shippingItem.NetWeightOnDocument@shippingItem.GrossWeightOnDocument
TOTAL:@doc.ShippingItems.Sum(x => x.PalletsOnDocument)@doc.ShippingItems.Sum(x => x.QuantityOnDocument)@double.Round(doc.ShippingItems.Sum(x => x.NetWeightOnDocument), 1)@double.Round(doc.ShippingItems.Sum(x => x.GrossWeightOnDocument), 1)@doc.ShippingItems.Sum(x => x.PalletsOnDocument)@doc.ShippingItems.Sum(x => x.QuantityOnDocument)@double.Round(doc.ShippingItems.Sum(x => x.NetWeightOnDocument), 1)@double.Round(doc.ShippingItems.Sum(x => x.GrossWeightOnDocument), 1)
diff --git a/FruitBankHybrid/FruitBankHybrid.csproj b/FruitBankHybrid/FruitBankHybrid.csproj index 0db0fbc..d6aac30 100644 --- a/FruitBankHybrid/FruitBankHybrid.csproj +++ b/FruitBankHybrid/FruitBankHybrid.csproj @@ -74,8 +74,8 @@ - - + + @@ -88,6 +88,14 @@ + + + + Assets\splashSplashScreen.png + PreserveNewest + + + diff --git a/FruitBankHybrid/wwwroot/index.html b/FruitBankHybrid/wwwroot/index.html index 54f2f39..2fc215c 100644 --- a/FruitBankHybrid/wwwroot/index.html +++ b/FruitBankHybrid/wwwroot/index.html @@ -10,7 +10,6 @@ - @@ -26,6 +25,12 @@
Loading...
+ + + +