Skip to content

Web app: make it installable and usable offline - #610

Merged
agarny merged 4 commits into
opencor:mainfrom
agarny:issue609
Nov 30, 2026
Merged

agarny merged 4 commits into
opencor:mainfrom
agarny:issue609

Conversation

@agarny

@agarny agarny commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #609.

Copilot AI lite review requested due to automatic review settings November 30, 2026 06:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The offline CellDL runtime remains unavailable for deployed /appdev/ users because the service worker does not cache the canonical /app/celldl/ fallback URL and its assets.

1 open issue
What changed in this PR

This pull request makes the Web app installable as a Progressive Web App and supports offline use while preserving Electron and library builds.

Changes:

  • Adds a generated service worker with precaching, runtime dependency caching, cache versioning, and offline navigation handling.
  • Adds PWA metadata, icons, safe-area styling, and iOS standalone-app support.
  • Updates hashing utilities, dependency versions, build configuration, and Web deployment ordering.
File Description
src/​renderer/​vite.config.ts Configures service-worker generation and shares the CellDL runtime path across the build.
src/​renderer/​src/​types/​shims.d.ts Declares the service-worker build flag.
src/​renderer/​src/​sw.ts Implements service-worker installation, precaching, runtime caching, updates, and offline request handling.
src/​renderer/​src/​main.ts Initializes iOS layout handling and registers the service worker for the Web app.
src/​renderer/​src/​components/​MainMenu.vue Adjusts the menu layout for the iOS standalone status-bar area.
src/​renderer/​src/​components/​BackgroundComponent.vue Keeps the footer clear of mobile home indicators.
src/​renderer/​src/​common/​serviceWorker.ts Registers the service worker and reports fetched resources for runtime caching.
src/​renderer/​src/​common/​iosInstalledApp.ts Detects iOS standalone mode and adjusts the app viewport and orientation handling.
src/​renderer/​scripts/​sw.plugin.ts Generates the deployable service worker with hashed asset and cache metadata.
src/​renderer/​scripts/​hash.ts Provides shared SHA-256 hashing helpers.
src/​renderer/​scripts/​celldl.runtime.ts Uses shared hashing helpers for CellDL runtime paths.
src/​renderer/​public/​manifest.webmanifest Defines the installable Web app manifest and icons.
src/​renderer/​public/​.htaccess Configures manifest MIME handling and fixed-file cache behavior.
src/​renderer/​package.json Updates the renderer version and dependency versions.
src/​renderer/​index.html Adds PWA metadata, Apple support, and safe-area layout styling.
src/​renderer/​bun.lock Locks the renderer dependency updates.
package.json Synchronizes the project version and dependency versions.
electron.vite.config.ts Disables service-worker registration for Electron builds.
bun.lock Locks root dependency updates.
.github/​workflows/​cddev.yml Deploys the development service worker in the required order.
.github/​workflows/​cd.yml Deploys the production service worker in the required order.

Review effort: Lite

Comment thread src/renderer/src/sw.ts Resolved
@agarny
agarny merged commit ac1683a into opencor:main Nov 30, 2026
9 checks passed
@agarny
agarny deleted the issue609 branch November 30, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web app: make it installable and usable offline

2 participants