Skip to content

Commit 36e1afc

Browse files
authored
Merge pull request #29 from GGrouppFoundation/feature/improve-date-timesheets-flow
Change timesheet set message
2 parents b77b191 + 3c1a5fd commit 36e1afc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Application/Application.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<InvariantGlobalization>false</InvariantGlobalization>
99
<RootNamespace>GGroupp.Internal.Timesheet</RootNamespace>
1010
<AssemblyName>GGroupp.Internal.Timesheet.Bot.Application</AssemblyName>
11-
<Version>1.5.4</Version>
11+
<Version>1.5.5</Version>
1212
</PropertyGroup>
1313

1414
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Application' " />

src/DateTimesheet.Get/Step.DrawTimesheetSet/DrawActivity.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private static List<AdaptiveElement> CreateAdaptiveBody(IChatFlowContext<DateTim
7676
{
7777
var adaptiveElements = new List<AdaptiveElement>
7878
{
79-
CreateAdaptiveTimesheetRow(context.FlowState.GetDurationSum(), $"Всего {context.FlowState.Date.ToStringRussianCulture()}")
79+
CreateAdaptiveTimesheetRow(context.FlowState.GetDurationSum(), $"Всего за {context.FlowState.Date.ToStringRussianCulture()}")
8080
};
8181

8282
if (context.FlowState.Timesheets is null)
@@ -169,7 +169,8 @@ private static string BuildText(IChatFlowContext<DateTimesheetFlowState> context
169169
var flowState = context.FlowState;
170170

171171
var textBuilder = new StringBuilder().AppendRow(
172-
flowState.GetDurationSum().ToDurationStringRussianCulture(true), context.EncodeTextWithStyle(flowState.Date.ToStringRussianCulture(), BotTextStyle.Bold));
172+
flowState.GetDurationSum().ToDurationStringRussianCulture(true),
173+
context.EncodeTextWithStyle($"Всего за {context.FlowState.Date.ToStringRussianCulture()}", BotTextStyle.Bold));
173174

174175
if (context.FlowState.Timesheets?.Count is not > 0)
175176
{
@@ -204,7 +205,7 @@ private static string BuildTelegramText(IChatFlowContext<DateTimesheetFlowState>
204205
var flowState = context.FlowState;
205206

206207
var textBuilder = new StringBuilder().AppendRow(
207-
flowState.GetDurationSum().ToDurationStringRussianCulture(true), $"<b>{flowState.Date.ToStringRussianCulture()}</b>");
208+
flowState.GetDurationSum().ToDurationStringRussianCulture(true), $"<b>Всего за {flowState.Date.ToStringRussianCulture()}</b>");
208209

209210
if (context.FlowState.Timesheets?.Count is not > 0)
210211
{

0 commit comments

Comments
 (0)