From b3ddc86639e4f816b23fbd6f60ca60dde54a2241 Mon Sep 17 00:00:00 2001 From: Loretta Date: Tue, 16 Dec 2025 16:12:38 +0100 Subject: [PATCH] Add dynamic Info Panel to grids and update app splash image Introduced a dynamic Info Panel to MgGridBase, allowing users to view details of the selected row in a side panel. Added the MgGridInfoPanel component with automatic form generation and styling. Updated all grid usages to use the new OnGridFocusedRowChanged event and enabled the info panel in GridPartner. Changed app logo and splash screen references in the Windows packaging manifest and added a placeholder splash image. Also included minor using fixes. --- .../Services/SignalRs/DevAdminSignalRhub.cs | 2 ++ .../Components/GridShippingDocument.razor | 2 +- .../Components/GridShippingItemTemplate.razor | 2 +- .../GenericAttributes/GridGenericAttribute.razor | 2 +- .../Components/Grids/Partners/GridPartner.razor | 12 +++++++++--- .../Grids/Shippings/GridShipping.razor | 2 +- .../StockTakingItems/GridStockTakingItem.razor | 2 +- .../Windows/Assets/splashSplashScreen.png | Bin 0 -> 67 bytes .../Platforms/Windows/Package.appxmanifest | 15 ++++++++++----- .../Platforms/Windows/splashSplashScreen.png | 1 + 10 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 FruitBankHybrid/Platforms/Windows/Assets/splashSplashScreen.png create mode 100644 FruitBankHybrid/Platforms/Windows/splashSplashScreen.png diff --git a/FruitBank.Common.Server/Services/SignalRs/DevAdminSignalRhub.cs b/FruitBank.Common.Server/Services/SignalRs/DevAdminSignalRhub.cs index db88167..e4c1fab 100644 --- a/FruitBank.Common.Server/Services/SignalRs/DevAdminSignalRhub.cs +++ b/FruitBank.Common.Server/Services/SignalRs/DevAdminSignalRhub.cs @@ -1,5 +1,7 @@ using AyCode.Core.Extensions; using AyCode.Core.Loggers; +using AyCode.Core.Serializers.Binaries; +using AyCode.Core.Serializers.Jsons; using AyCode.Models.Server.DynamicMethods; using AyCode.Services.SignalRs; using FruitBank.Common.Interfaces; diff --git a/FruitBankHybrid.Shared/Components/GridShippingDocument.razor b/FruitBankHybrid.Shared/Components/GridShippingDocument.razor index e257015..0f3a896 100644 --- a/FruitBankHybrid.Shared/Components/GridShippingDocument.razor +++ b/FruitBankHybrid.Shared/Components/GridShippingDocument.razor @@ -17,7 +17,7 @@ @inject FruitBankSignalRClient FruitBankSignalRClient + ParentDataItem="@ParentDataItem" Logger="_logger" ValidationEnabled="false" EditMode="GridEditMode.EditRow" OnGridFocusedRowChanged="Grid_FocusedRowChanged"> diff --git a/FruitBankHybrid.Shared/Components/GridShippingItemTemplate.razor b/FruitBankHybrid.Shared/Components/GridShippingItemTemplate.razor index 8eed1f5..46452de 100644 --- a/FruitBankHybrid.Shared/Components/GridShippingItemTemplate.razor +++ b/FruitBankHybrid.Shared/Components/GridShippingItemTemplate.razor @@ -18,7 +18,7 @@ + OnGridFocusedRowChanged="Grid_FocusedRowChanged"> + ParentDataItem="@ParentDataItem" CssClass="@GridCss" ValidationEnabled="false" OnGridFocusedRowChanged="Grid_FocusedRowChanged"> diff --git a/FruitBankHybrid.Shared/Components/Grids/Partners/GridPartner.razor b/FruitBankHybrid.Shared/Components/Grids/Partners/GridPartner.razor index 08b60e7..305382e 100644 --- a/FruitBankHybrid.Shared/Components/Grids/Partners/GridPartner.razor +++ b/FruitBankHybrid.Shared/Components/Grids/Partners/GridPartner.razor @@ -13,9 +13,15 @@ @inject IEnumerable LogWriters @inject FruitBankSignalRClient FruitBankSignalRClient - + diff --git a/FruitBankHybrid.Shared/Components/Grids/Shippings/GridShipping.razor b/FruitBankHybrid.Shared/Components/Grids/Shippings/GridShipping.razor index cdb411b..850255c 100644 --- a/FruitBankHybrid.Shared/Components/Grids/Shippings/GridShipping.razor +++ b/FruitBankHybrid.Shared/Components/Grids/Shippings/GridShipping.razor @@ -17,7 +17,7 @@ + OnGridFocusedRowChanged="Grid_FocusedRowChanged"> diff --git a/FruitBankHybrid.Shared/Components/Grids/StockTakingItems/GridStockTakingItem.razor b/FruitBankHybrid.Shared/Components/Grids/StockTakingItems/GridStockTakingItem.razor index dbb9c28..64bc863 100644 --- a/FruitBankHybrid.Shared/Components/Grids/StockTakingItems/GridStockTakingItem.razor +++ b/FruitBankHybrid.Shared/Components/Grids/StockTakingItems/GridStockTakingItem.razor @@ -14,7 +14,7 @@ @inject FruitBankSignalRClient FruitBankSignalRClient + CssClass="@GridCss" ValidationEnabled="false" OnGridFocusedRowChanged="Grid_FocusedRowChanged"> diff --git a/FruitBankHybrid/Platforms/Windows/Assets/splashSplashScreen.png b/FruitBankHybrid/Platforms/Windows/Assets/splashSplashScreen.png new file mode 100644 index 0000000000000000000000000000000000000000..fef19157c73d7e7763f2fc9f82c129fe0bae6fd3 GIT binary patch literal 67 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6UAQ@H$MqV!6EkIEQ MPgg&ebxsLQ05A^ $placeholder$ User Name - $placeholder$.png + Assets\splashSplashScreen.png @@ -30,11 +30,11 @@ - - + + @@ -44,3 +44,8 @@ + + + + + diff --git a/FruitBankHybrid/Platforms/Windows/splashSplashScreen.png b/FruitBankHybrid/Platforms/Windows/splashSplashScreen.png new file mode 100644 index 0000000..4e173bd --- /dev/null +++ b/FruitBankHybrid/Platforms/Windows/splashSplashScreen.png @@ -0,0 +1 @@ +Placeholder PNG file for packaging. Replace with a real image file at this path (Platforms/Windows/splashSplashScreen.png). \ No newline at end of file