From c5d84870464db84815e1067edf32cd8d90b001865a2733e3491ead7a03e541e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= <93217193+Daniel-Garmig@users.noreply.github.com> Date: Sat, 12 Sep 2026 15:28:25 +0200 Subject: [PATCH] Small fixes and improvements: - GuestDocument - At least one contact field is required. - GuestDocument - List Page - Hide not useful columns: "version" - StayEntry - Show stayEntry ID in UI msg after creation. - StayEntry - Create Page - Time fields don't reset anymore when dates change. - Show local times in UI instead of UTC times. - Validators - Use expresions for dates so they are recalculated each time. --- .../Components/Forms/StayEntryForm.razor | 6 ++++-- .../Components/Pages/GuestDocuments/GuestDocList.razor | 5 +++-- .../Components/Pages/StayEntries/StayEntryNew.razor | 2 +- src/Somnia.GuestLog/Models/DTOs/Result.cs | 2 ++ src/Somnia.GuestLog/Models/EntityMapping.cs | 10 +++++----- .../Services/Entity/StayEntryEntityService.cs | 2 +- .../Services/StayExport/StayExportService.cs | 2 +- .../Validators/GuestDocumentDTOValidator.cs | 10 ++++++++-- .../Validators/StayEntryDTOValidator.cs | 2 +- 9 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/Somnia.GuestLog/Components/Forms/StayEntryForm.razor b/src/Somnia.GuestLog/Components/Forms/StayEntryForm.razor index 37c8698..10cecfa 100644 --- a/src/Somnia.GuestLog/Components/Forms/StayEntryForm.razor +++ b/src/Somnia.GuestLog/Components/Forms/StayEntryForm.razor @@ -21,12 +21,14 @@ - - - - + +