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
This commit is contained in:
Mike Dalessio
2025-07-05 13:05:08 -04:00
parent 88074cc7ed
commit e3c1e2c00a
+2 -2
View File
@@ -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": [