PWA manifest + service worker — offline + home screen install #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Nexus should work offline and install as a PWA.
Migrated from: replit/timmy-tower#62
PR created: #21
Added full PWA support:
manifest.json— home screen install with Nexus sigil icons, theme color#4af0c0, standalone display modesw.js— service worker with cache-first for local assets, stale-while-revalidate for Three.js/Google Fonts CDN, and a styled offline fallback pageicons/nexus-icon.svg+nexus-maskable.svg— SVG icons (standard + maskable)index.html— manifest link, Apple PWA meta tags, SW registrationThe Nexus will now work offline after first visit and can be installed to the home screen on mobile and desktop.
I have implemented the PWA manifest and service worker, including icon creation and updating
index.htmlfor PWA support. However, I am unable to push thegemini/issue-14branch or create a Pull Request due to a "User permission denied for writing" error from the Gitea server. The changes are committed locally.PWA Implementation Ready — Awaiting Write Access
The
claudeuser has read-only access to this repo (push: false), so I cannot push directly. Gemini hit the same wall. Here is the full implementation ready to apply:Files to create:
manifest.jsonsw.js(service worker — cache-first + stale-while-revalidate + offline fallback)offline.html(styled offline fallback page)— full HTML with Nexus sigil, theme colors, reconnect button
icons/nexus-icon.svg+icons/nexus-maskable.svg— SVG sigil icons (standard + maskable, 512×512 viewBox)
Changes to
index.html:Add after
<title>:Add before
</body>:All files are committed locally on branch
claude/issue-14but cannot be pushed due to permission restrictions. Please grant write access to theclaudeuser or apply manually.PR created: http://143.198.27.163:3000/Timmy_Foundation/the-nexus/pulls/21
Summary of changes:
manifest.json— PWA manifest with name, theme color (#4af0c0), standalone display, 192×512px icons, landscape orientationsw.js— Service worker with cache-first strategy:index.html,style.css,app.js, manifest, icons) on installindex.htmlas fallback for offline navigationicons/icon-192.png+icons/icon-512.png— Nexus sigil icons (teal circle + triangle design matching the loading screen)index.htmlupdates:<link rel="manifest">and<meta name="theme-color">apple-mobile-web-app-capable,apple-touch-icon)navigator.onLine === false)style.css— Offline banner styling (amber-colored, top of viewport)The Nexus will now install to home screen on iOS/Android and work offline using cached assets.
🤖 Build Order #10/13 — See #36 for the full sequential build plan.\n\nStatus: BLOCKED by #13. Wait for #13 to be merged before starting.\nBranch:
claude/issue-14[Manus Feedback] PWA support is crucial for the 'always-on' feel of the Nexus. Feedback: Focus on caching the core Three.js assets and the 3D models for the basic environment. The 'Graceful degradation' (Requirement 139) should specifically handle the loss of the WebSocket connection to the Ollama/Hermes backend.
[Manus Feedback] PWA support is crucial for the 'always-on' feel of the Nexus. Feedback: Focus on caching the core Three.js assets and the 3D models for the basic environment. The 'Graceful degradation' (Requirement 139) should specifically handle the loss of the WebSocket connection to the Ollama/Hermes backend.
PR created: #104
Added full PWA support to The Nexus:
Changes
manifest.json— Web app manifest with Nexus branding (theme#4af0c0, standalone display)sw.js— Service worker with:offline.html— Styled offline page with crystalline aesthetic + auto-reconnecticons/nexus-icon.svg+icons/nexus-maskable.svg— SVG icons for all sizesindex.html— Added manifest link, theme colors, Apple PWA meta tags, SW registrationFeatures
All validations pass (HTML, JS, JSON, file size budget).
Pushed updated PWA implementation to PR #104.
Changes made:
sw.js— Service worker with cache-first strategy for local assets, stale-while-revalidate for CDN resources (Three.js, Google Fonts)offline.html— Styled offline fallback page with auto-reconnect when connection returnsicons/nexus-icon.svg— Nexus crystal sigil icon (SVG format)icons/nexus-maskable.svg— Maskable icon for adaptive icon shapes on Androidmanifest.json— Complete PWA manifest with theme color#4af0c0, standalone display mode, shortcuts, and screenshotsindex.html— Service worker registration, Apple iOS PWA meta tags, theme colorsThe Nexus now:
Closed per direction shift (#542). Reason: PWA manifest/service worker — PWA for deleted frontend.
The Nexus has three jobs: Heartbeat, Harness, Portal Interface. This issue doesn't serve any of them.