From 9ec87d56da212625affe10ba7c7ef6aa72db2f3b07e7e20570fb4a0b0aa421a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= <93217193+Daniel-Garmig@users.noreply.github.com> Date: Tue, 8 Sep 2026 19:58:47 +0200 Subject: [PATCH] feat StayExport - Added ExportDetails for StayExports Store a new field ('ExportDetails') with export details. This is a JSON field in DB that can store information about the export depending on the format provider used. Changes: - Updated models and created required migrations. - Show field in StayExport list. --- .../Pages/StayExport/StayExportList.razor | 23 +- .../Infrastructure/DbConsts.cs | 2 + .../StayExportFileEntityConfig.cs | 3 + ...rtFile_AddColumn_ExportDetails.Designer.cs | 252 ++++++++++++++++++ ..._StayExportFile_AddColumn_ExportDetails.cs | 28 ++ .../GuestLogContextModelSnapshot.cs | 3 + .../Models/DTOs/StayExportFileDTO.cs | 2 + .../Models/Entities/StayExportFile.cs | 5 + src/Somnia.GuestLog/Models/EntityMapping.cs | 1 + src/Somnia.GuestLog/Program.cs | 4 + .../Resources/LanguageLocale.resx | 1 + .../Entity/StayExportFileEntityService.cs | 1 + .../StayExport/IStayExportFormatProvider.cs | 2 +- .../StayExport/StayExportProviderJson.cs | 9 +- .../StayExportProviderSpainParteViajeros.cs | 30 ++- .../Services/StayExport/StayExportService.cs | 2 +- 16 files changed, 352 insertions(+), 16 deletions(-) create mode 100644 src/Somnia.GuestLog/Infrastructure/Migrations/20260908172441_StayExportFile_AddColumn_ExportDetails.Designer.cs create mode 100644 src/Somnia.GuestLog/Infrastructure/Migrations/20260908172441_StayExportFile_AddColumn_ExportDetails.cs diff --git a/src/Somnia.GuestLog/Components/Pages/StayExport/StayExportList.razor b/src/Somnia.GuestLog/Components/Pages/StayExport/StayExportList.razor index 840e5e7..43f620c 100644 --- a/src/Somnia.GuestLog/Components/Pages/StayExport/StayExportList.razor +++ b/src/Somnia.GuestLog/Components/Pages/StayExport/StayExportList.razor @@ -52,8 +52,13 @@ -