-
Notifications
You must be signed in to change notification settings - Fork 9
Add Universe PWA branding #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: universe
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,9 @@ | |
| <!-- App Design --> | ||
| <meta name="msapplication-TileColor" content="{{ themeColor }}" /> | ||
| <meta name="msapplication-TileImage" content="{{ msApplicationTileImage }}" /> | ||
| <meta name="theme-color" content="{{ themeColor }}" /> | ||
| <meta name="theme-color" content="#000000" /> | ||
| <meta name="apple-mobile-web-app-capable" content="yes" /> | ||
| <meta name="apple-mobile-web-app-title" content="Universe" /> | ||
|
|
||
| <!-- Open Graph / Facebook --> | ||
| <meta property="og:type" content="website"> | ||
|
|
@@ -44,7 +46,7 @@ | |
| {{#favIcons}} | ||
| <link rel="{{ rel }}" type="image/png" sizes="{{ sizes }}" href="{{ src }}" /> | ||
| {{/favIcons}} | ||
| <link rel="manifest" href="/static/images/favicons/manifest.json?url={{ url }}" /> | ||
| <link rel="manifest" href="/manifest.webmanifest" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check for references to the old manifest endpoint that may need updating
echo "=== Checking for hardcoded references to old manifest endpoint ==="
rg -n 'static/images/favicons/manifest.json' --type html --type ts --type js
echo -e "\n=== Checking if FrontController manifest handler can be safely removed ==="
rg -n 'displayManifestJson|static/images/favicons/manifest.json' play/src/pusher/controllers/FrontController.ts
echo -e "\n=== Verifying new manifest is being served correctly ==="
rg -n 'manifest.webmanifest' play/Repository: BAWES-Universe/workadventure-universe Length of output: 767 Breaking change:
🤖 Prompt for AI Agents |
||
|
|
||
| <style> | ||
| /*hide cowebsite container before scss is loaded*/ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "name": "BAWES Universe", | ||
| "short_name": "Universe", | ||
| "description": "BAWES Universe - a virtual world", | ||
| "start_url": "/", | ||
| "scope": "/", | ||
| "display": "fullscreen", | ||
| "orientation": "landscape", | ||
| "background_color": "#000000", | ||
| "theme_color": "#000000", | ||
| "icons": [ | ||
| { | ||
| "src": "/static/universe-icon-192.png", | ||
| "sizes": "192x192", | ||
| "type": "image/png" | ||
| }, | ||
| { | ||
| "src": "/static/universe-icon-512.png", | ||
| "sizes": "512x512", | ||
| "type": "image/png", | ||
| "purpose": "maskable any" | ||
| } | ||
|
Comment on lines
+17
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The PWA icon combines Suggested FixSeparate the icon definitions in Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| ] | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent theme-color handling: hardcoded vs template variable.
Line 23 uses the template variable
{{ themeColor }}formsapplication-TileColor, but line 25 hardcodes#000000fortheme-color. Both serve similar purposes (Windows tile color vs browser theme color) and should be consistent. All other dynamic meta tags (title, description, url, cardImage, etc.) still use template variables.If theme-color must be hardcoded to
#000000for Universe branding, thenmsapplication-TileColorshould also be hardcoded to match. Alternatively, both should use{{ themeColor }}to allow per-deployment customization.🔧 Proposed fixes
Option A: Hardcode both for consistency (if Universe branding requires fixed black theme)
Option B: Use template variable for both (if per-deployment customization is needed)
<meta name="msapplication-TileColor" content="{{ themeColor }}" /> - <meta name="theme-color" content="`#000000`" /> + <meta name="theme-color" content="{{ themeColor }}" />Also applies to: 25-25
🤖 Prompt for AI Agents