Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN set -ex; \
x86_64) arch='linux-x64' ;; \
esac; \
echo Downloading tailwindcss for $apkArch ; \
curl -sL -o tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.13/tailwindcss-$arch; \
curl -sL -o tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/tailwindcss-$arch; \
chmod +x tailwindcss; \
ls -al tailwindcss ;

Expand Down
13 changes: 0 additions & 13 deletions PointingParty.Client.Tests/Pages/GameTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,6 @@ public void WithGame_RendersGameUi()
Assert.NotNull(cut.FindComponent<Stub<GameUi>>());
}

[Fact]
public void WithGame_RendersTitle()
{
_gameContext.Game.Returns(new GameAggregate());

var cut = Render<Game>(parameters =>
parameters.Add(p => p.GameId, "Game"));

var h2 = cut.Find("h2");

Assert.Equal("Pointing Party: Game", h2.TextContent);
}

[Fact]
public void WithPlayerName_CreatesGame_And_UpdatesUrl()
{
Expand Down
8 changes: 4 additions & 4 deletions PointingParty.Client.Tests/PointingParty.Client.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@

<ItemGroup>
<PackageReference Include="bunit" Version="2.0.33-preview" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="NSubstitute" Version="5.3.0" />
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0-pre.49">
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="coverlet.collector" Version="6.0.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions PointingParty.Client/Pages/Game.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@

<PageTitle>@GameId Pointing Party</PageTitle>

<h2 class="text-xl my-2 leading-8 md:mb-4">
<span class="hidden md:inline">Pointing Party: </span>@GameId
</h2>

@if (GameContext.Game is not null)
{
<GameUi GameContext="@GameContext" />
}
else
{
<h2 class="text-xl my-2 leading-8 md:mb-4">
<span class="hidden md:inline">Joining <strong>@GameId</strong> Pointing Party</span>
</h2>

<EditForm Model="NameForm" OnValidSubmit="CreateGame" FormName="GameData">
<DataAnnotationsValidator/>
<div class="my-2">
<label>
<span class="text-xs font-medium text-gray-500 uppercase">
Your name:
</span>
<InputText @bind-Value="NameForm.Name" placeholder="Player Name" class="py-3 px-4 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400"/>
<InputText @bind-Value="NameForm.Name" placeholder="Player Name" class="py-3 px-4 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-gray-700 dark:text-gray-400"/>
</label>
</div>
<div>
Expand All @@ -34,7 +34,7 @@ else
}

<div class="text-center text-xs mt-2 md:mt-4">
<span class="text-gray-500">To invite participants, send them this link:</span><br/>
<span class="text-gray-500">To invite participants to the <strong>@GameId</strong> party, send them this link:</span><br/>
<span class="font-medium">
<a href="https://pointingparty.com/Game/@Uri.EscapeDataString(GameId)">pointingparty.com/Game/@Uri.EscapeDataString(GameId)</a>
</span>
Expand Down
6 changes: 3 additions & 3 deletions PointingParty.Client/PointingParty.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Blazor-ApexCharts" Version="4.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0" />
<PackageReference Include="Blazor-ApexCharts" Version="5.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.3" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.3" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client.SourceGenerator" Version="7.0.0-preview.7.22376.6"/>
</ItemGroup>

Expand Down
8 changes: 5 additions & 3 deletions PointingParty/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<base href="/"/>
<link rel="stylesheet" href="@Assets["app.min.css"]" />
<link rel="icon" type="image/png" href="favicon.png" />

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/favicon.png" sizes="48x48" />
<link rel="shortcut icon" href="/favicon.ico" sizes="any">

<HeadOutlet/>
</head>

<body class="bg-gray-50 dark:bg-gray-800">
<body class="dark:bg-neutral-900">
<Routes/>
<script src="_framework/blazor.web.js"></script>
</body>
Expand Down
33 changes: 25 additions & 8 deletions PointingParty/Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
@inherits LayoutComponentBase

<main class="text-gray-800 dark:text-white">
<article class="max-w-6xl mx-auto px-4">
<div class="float-right text-xs uppercase font-medium leading-8">
<header class="flex flex-wrap md:justify-start md:flex-nowrap z-50 max-w-6xl mx-auto px-4 py-7">
<nav class="relative max-w-7xl w-full flex flex-wrap md:grid md:grid-cols-12 basis-full items-center mx-auto" aria-label="Global">
<div class="basis-full md:col-span-3">
<a href="/" class="text-gray-800 dark:hidden">
<img src="/pointpingparty-cactus-light.svg" alt="Pointing Party" class="h-8"/>
<img src="/pointpingparty-cactus-light.svg" alt="Pointing Party" class="h-10"/>
</a>
<a href="/" class="text-gray-400 hidden dark:block">
<img src="/pointpingparty-cactus-dark.svg" alt="Pointing Party" class="h-8"/>
<img src="/pointpingparty-cactus-dark.svg" alt="Pointing Party" class="h-10"/>
</a>
</div>

@*
<div class="overflow-hidden transition-all duration-300 basis-full md:w-auto md:basis-auto md:col-span-9">
<div class="flex flex-col gap-y-4 gap-x-0 mt-5 md:flex-row md:justify-end md:items-center md:gap-y-0 md:gap-x-7 md:mt-0">
<div>
<a class="inline-block text-black hover:text-gray-600 dark:text-white dark:hover:text-neutral-300" href="#">About</a>
</div>
<button type="button" class="py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-xl border border-gray-200 text-black hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:hover:bg-white/10 dark:text-white dark:hover:text-white">
Sign in
</button>
</div>
</div>
*@
</nav>
</header>

<main class="text-gray-800 dark:text-white">
<article class="max-w-6xl mx-auto px-4">
@Body
</article>

<p class="my-2 text-gray-500 text-center text-xs md:mt-4">
© Martijn Storck / <a href="https://storck.io/" class="font-normal">storck.io</a><br>
<a href="https://github.com/martijn/PointingParty" class="font-normal">Source on GitHub</a>
Built with <a href="https://dotnet.microsoft.com/">.NET</a>. <a href="https://github.com/martijn/PointingParty" class="font-normal">Source on GitHub</a>
</p>
</main>

<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
</div>
27 changes: 12 additions & 15 deletions PointingParty/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@

<PageTitle>Pointing Party</PageTitle>

<h2 class="text-xl my-2 leading-8 md:mb-4">Welcome to Pointing Party!</h2>

<p class="mt-4 mb-2">
Pointing Party enables efficient agile story point estimation ceremonies. To get started, pick a name
for your game (like your team name or project) and click the start button. Send the game link to your
team members and the voting can start! No registration is necessary; this tool is designed to make
voting as quick as possible.
</p>

<p class="mb-2">
This free service is powered by .NET 9 and Blazor WebAssembly. The source code is available on GitHub:
<a href="https://github.com/martijn/PointingParty">github.com/martijn/PointingParty</a>.
</p>
<div class="max-w-5xl mx-auto px-4 xl:px-0 pt-24 lg:pt-32 pb-24">
<h1 class="font-semibold dark:text-white text-5xl md:text-6xl">
Hassle-free Story Estimation<br/>for Agile Teams
</h1>
<div class="max-w-4xl">
<p class="mt-5 text-neutral-400 text-lg">
Start a game and share the link. No registration required!
</p>
</div>
</div>

<div class="mt-4 mb-2">
<EditForm Model="Model" OnValidSubmit="StartGame" FormName="NewGame">
Expand All @@ -26,15 +23,15 @@
<span class="text-xs font-medium text-gray-500 uppercase">
Game name:
</span>
<InputText @bind-Value="Model.GameId" placeholder="My Pointing Party" class="py-3 px-4 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400"/>
<InputText @bind-Value="Model.GameId" type="text" placeholder="My Pointing Party" class="py-3 px-4 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-gray-700 dark:text-gray-400"/>
</label>
</div>
<div class="my-2">
<label>
<span class="text-xs font-medium text-gray-500 uppercase">
Your name:
</span>
<InputText @bind-Value="Model.PlayerName" placeholder="Player Name" class="py-3 px-4 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400"/>
<InputText @bind-Value="Model.PlayerName" type="text" placeholder="Player Name" class="py-3 px-4 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-gray-700 dark:text-gray-400"/>
</label>
</div>
<div class="my-2 text-center md:text-left">
Expand Down
2 changes: 1 addition & 1 deletion PointingParty/PointingParty.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Azure.SignalR" Version="1.30.2"/>
<ProjectReference Include="..\PointingParty.Client\PointingParty.Client.csproj"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.3" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion PointingParty/wwwroot/app.min.css

Large diffs are not rendered by default.

Binary file added PointingParty/wwwroot/favicon.ico
Binary file not shown.
Binary file modified PointingParty/wwwroot/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions PointingParty/wwwroot/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading