From e3c1e2c00afcc35654f2767a0ee0d929bb83da85 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sat, 5 Jul 2025 13:05:08 -0400 Subject: [PATCH] Improve multi-account behavior of the PWA - PWA manifest: - declares slugged scope - includes the account name (and non-prod environment name) in the title So we can have one PWA installed for each account (in each environment) and links should get routed properly. ref: https://3.basecamp.com/2914079/buckets/37331921/todos/8827769164 --- app/views/pwa/manifest.json.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/pwa/manifest.json.erb b/app/views/pwa/manifest.json.erb index 2332f565a..8270a3414 100644 --- a/app/views/pwa/manifest.json.erb +++ b/app/views/pwa/manifest.json.erb @@ -1,5 +1,5 @@ { - "name": "Fizzy", + "name": "<%= [ Account.sole.name, "Fizzy", Rails.env.production? ? nil : Rails.env ].compact.join(" - ") %>", "icons": [ { "src": "/app-icon-192.png", @@ -20,7 +20,7 @@ ], "start_url": "<%= root_path %>", "display": "standalone", - "scope": "/", + "scope": "<%= root_path %>", "description": "Card-up the biggest issues in your projects", "categories": ["bugs", "business", "productivity"], "shortcuts": [