Compare commits

..

2 Commits

Author SHA1 Message Date
spouliot 350f2d7658 Fix duplicate logo on kiosk Welcome screen; enlarge welcome logo
Layout rendered a small logo at top of every kiosk page. Welcome.cshtml
also rendered its own centered logo, resulting in two logos. Suppress
the layout logo on the Welcome screen via HideLayoutLogo ViewBag flag.
Bump kiosk-welcome-logo from 120x280 to 200x420 for better presence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 17:21:27 -04:00
spouliot 856d202b78 Fix kiosk SignalR group: set ViewBag.CompanyId so tablet joins correct hub group
Without this, data-company-id was empty and the JS connected to kiosk- (no ID),
so StartSession signals never reached the tablet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 17:18:39 -04:00
4 changed files with 8 additions and 3 deletions
@@ -669,6 +669,7 @@ public class KioskController : Controller
/// <summary>Sets ViewBag properties needed by _KioskLayout from a Company entity.</summary> /// <summary>Sets ViewBag properties needed by _KioskLayout from a Company entity.</summary>
private async Task PopulateKioskViewBag(Company company) private async Task PopulateKioskViewBag(Company company)
{ {
ViewBag.CompanyId = company.Id;
ViewBag.CompanyName = company.CompanyName; ViewBag.CompanyName = company.CompanyName;
ViewBag.CompanyLogoUrl = !string.IsNullOrEmpty(company.LogoFilePath) ViewBag.CompanyLogoUrl = !string.IsNullOrEmpty(company.LogoFilePath)
? Url.Action("Logo", "Kiosk") ? Url.Action("Logo", "Kiosk")
@@ -1,6 +1,7 @@
@{ @{
Layout = "~/Views/Shared/_KioskLayout.cshtml"; Layout = "~/Views/Shared/_KioskLayout.cshtml";
ViewData["Title"] = "Welcome"; ViewData["Title"] = "Welcome";
ViewBag.HideLayoutLogo = true;
} }
<div id="kiosk-welcome-root" <div id="kiosk-welcome-root"
@@ -18,7 +18,9 @@
<div class="container py-4" style="max-width:720px;"> <div class="container py-4" style="max-width:720px;">
@* Logo *@ @* Logo — hidden on Welcome screen which renders its own centered logo *@
@if (!(bool)(ViewBag.HideLayoutLogo ?? false))
{
<div class="text-center mb-3"> <div class="text-center mb-3">
@if (!string.IsNullOrEmpty(ViewBag.CompanyLogoUrl as string)) @if (!string.IsNullOrEmpty(ViewBag.CompanyLogoUrl as string))
{ {
@@ -30,6 +32,7 @@
<span class="fw-bold fs-5 text-muted">@ViewBag.CompanyName</span> <span class="fw-bold fs-5 text-muted">@ViewBag.CompanyName</span>
} }
</div> </div>
}
@* Step dots *@ @* Step dots *@
@if (kioskStep > 0) @if (kioskStep > 0)
+2 -2
View File
@@ -130,8 +130,8 @@ body.kiosk-body {
} }
.kiosk-welcome-logo { .kiosk-welcome-logo {
max-height: 120px; max-height: 200px;
max-width: 280px; max-width: 420px;
object-fit: contain; object-fit: contain;
margin-bottom: 2rem; margin-bottom: 2rem;
} }