From aa0efe7c6fdea212af068ee90f1e6560507add2b Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Mon, 4 May 2026 09:29:21 -0400 Subject: [PATCH] Add PWA install banner to dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows a dismissible banner on mobile only, tailored to three cases: - iOS + Safari: instructions to tap Share → Add to Home Screen - iOS + other browser: tells user to open in Safari first (required for standalone) - Android: instructions to tap menu → Install App / Add to Home Screen Hidden when already running as standalone PWA, or after user dismisses it (stored in localStorage so it stays gone). Explains camera permission benefit. Co-Authored-By: Claude Sonnet 4.6 --- .../Views/Dashboard/Index.cshtml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/PowderCoating.Web/Views/Dashboard/Index.cshtml b/src/PowderCoating.Web/Views/Dashboard/Index.cshtml index 705f615..46cdb0e 100644 --- a/src/PowderCoating.Web/Views/Dashboard/Index.cshtml +++ b/src/PowderCoating.Web/Views/Dashboard/Index.cshtml @@ -59,6 +59,23 @@ +@* PWA install banner — rendered by JS only on mobile, hidden once dismissed or already installed *@ +
+
+
+
+ +
+
+
Add to Home Screen
+
+
+ +
+
+
+ @if (guidedActivationBanner?.Show == true) {
@@ -1253,6 +1270,61 @@ } + + @functions { IHtmlContent PriorityBadge(string priorityCode, string displayName, string colorClass) {