Skip to content

Commit 2fa043f

Browse files
author
Nikita Mamaisur
committed
Fix EncodeText
1 parent c7f63ad commit 2fa043f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Application/Application.csproj

Lines changed: 1 addition & 2 deletions
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.4.0-preview.3</Version>
11+
<Version>1.4.0-preview.4</Version>
1212
</PropertyGroup>
1313

1414
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Application' " />
@@ -19,7 +19,6 @@
1919
<PackageReference Include="GGroupp.Infra.Bot.Builder.Command.Stop" Version="1.1.1" />
2020
<PackageReference Include="GGroupp.Infra.Bot.Builder.Integration.AspNet.Core" Version="1.4.0" />
2121
<PackageReference Include="GGroupp.Infra.Bot.Builder.Integration.CosmosDb" Version="1.0.0" />
22-
<PackageReference Include="GGroupp.Infra.Bot.Builder.TurnContext.Extensions" Version="1.0.3" />
2322
<PackageReference Include="GGroupp.Infra.Dataverse.Api" Version="2.7.4" />
2423
<PackageReference Include="GGroupp.Infra.Http.SocketsHandlerProvider" Version="2.2.0" />
2524
<PackageReference Include="GGroupp.Internal.Timesheet.FavoriteProjectSet.Get.Api" Version="1.4.2" />

src/DateTimesheet.Get/DateTimesheet.Get.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<ItemGroup>
1414
<PackageReference Include="EarlyFuncPack.Core.AsyncPipeline" Version="0.1.0" />
1515
<PackageReference Include="GGroupp.Infra.Bot.Builder.ChatFlow.Step.Date" Version="2.0.0" />
16+
<PackageReference Include="GGroupp.Infra.Bot.Builder.TurnContext.Extensions" Version="1.1.0" />
1617
<PackageReference Include="GGroupp.Internal.Timesheet.TimesheetSet.Get.InOut" Version="1.0.1" />
1718
<PackageReference Include="PrimeFuncPack.Core.Failure" Version="2.0.0" />
1819
<PackageReference Include="PrimeFuncPack.Primitives.Pipeline" Version="2.0.1" />

src/DateTimesheet.Get/Step.TimesheetSet.Get/TimesheetSetGetActivity.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ private static IActivity CreateTextActivity(IChatFlowContext<DateTimesheetFlowSt
5959
StringBuilder BuildTimesheetText(TimesheetJson timesheet)
6060
{
6161
var row = new StringBuilder().AppendFormat(
62-
"{0,-10}**{1}**",
62+
"{0,-10}{1}",
6363
timesheet.Duration.ToDurationText(true),
64-
context.EncodeText(timesheet.ProjectName));
64+
context.EncodeTextWithStyle(timesheet.ProjectName, BotTextStyle.Bold));
6565

66-
var encodedDescription = context.EncodeText(timesheet.Description);
66+
var encodedDescription = context.EncodeTextWithStyle(timesheet.Description, BotTextStyle.Italic);
6767
if (string.IsNullOrEmpty(encodedDescription) is false)
6868
{
6969
row.AppendBotLine().Append(encodedDescription);

0 commit comments

Comments
 (0)