From c682622108fffe9280b12f2541f6449fcd5e1cd6 Mon Sep 17 00:00:00 2001 From: "Sam Wagner [SSW]" Date: Sat, 7 Oct 2023 12:33:02 +1000 Subject: [PATCH 1/3] fix page shift on subtitle --- src/TimesheetGPT.WebUI/Pages/Index.razor | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/TimesheetGPT.WebUI/Pages/Index.razor b/src/TimesheetGPT.WebUI/Pages/Index.razor index 43a49ea..160ea92 100644 --- a/src/TimesheetGPT.WebUI/Pages/Index.razor +++ b/src/TimesheetGPT.WebUI/Pages/Index.razor @@ -4,19 +4,26 @@ @using Microsoft.Graph @using TimesheetGPT.Core.Models @using TimesheetGPT.Core.Services -@using TimesheetGPT.WebUI.Services @inject GraphServiceClient GraphServiceClient @inject MicrosoftIdentityConsentAndConditionalAccessHandler ConsentHandler @inject TimesheetService TimesheetService Generate Timesheet - @if (!string.IsNullOrEmpty(_name)) + + @if (string.IsNullOrEmpty(_name)) + { + + Hi ..., what day would you like to generate a timesheet for? + + } + else { Hi @_name, what day would you like to generate a timesheet for? } + Date: Sat, 7 Oct 2023 12:43:06 +1000 Subject: [PATCH 2/3] Add secrets --- src/TimesheetGPT.Core/TimesheetGPT.Core.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TimesheetGPT.Core/TimesheetGPT.Core.csproj b/src/TimesheetGPT.Core/TimesheetGPT.Core.csproj index 55e718c..d49d3b0 100644 --- a/src/TimesheetGPT.Core/TimesheetGPT.Core.csproj +++ b/src/TimesheetGPT.Core/TimesheetGPT.Core.csproj @@ -4,6 +4,7 @@ net8.0 enable enable + 7b1d5a43-583d-46f2-8915-21656498844d From 3244c36bacad7d34d0159941931b38077aeaa0f4 Mon Sep 17 00:00:00 2001 From: "Sam Wagner [SSW]" Date: Sat, 7 Oct 2023 12:44:04 +1000 Subject: [PATCH 3/3] make name conditionally load --- src/TimesheetGPT.WebUI/Pages/Index.razor | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/TimesheetGPT.WebUI/Pages/Index.razor b/src/TimesheetGPT.WebUI/Pages/Index.razor index 160ea92..e4ac9c3 100644 --- a/src/TimesheetGPT.WebUI/Pages/Index.razor +++ b/src/TimesheetGPT.WebUI/Pages/Index.razor @@ -10,20 +10,9 @@ Generate Timesheet - - @if (string.IsNullOrEmpty(_name)) - { - - Hi ..., what day would you like to generate a timesheet for? - - } - else - { Hi @_name, what day would you like to generate a timesheet for? - } - ? _meetings; string? _summaryText; DateTime? _date = DateTime.Today; - string? _name; + string _name = "..."; string? _extraPrompt; protected async override Task OnInitializedAsync()