]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ui: PWA support (#23871)
authorAleksander Grygier <redacted>
Fri, 12 Jun 2026 13:53:26 +0000 (15:53 +0200)
committerGitHub <redacted>
Fri, 12 Jun 2026 13:53:26 +0000 (15:53 +0200)
commitf7ca93d12c523491e9123ee7ce6a881447c20e52
tree1daf86fa87d530f15d69823afafd422f524d6ffe
parent02182fc5b9b0d20c8a4fc15a6b8637dd65d3b537
ui: PWA support (#23871)

* feat: Add basic PWA support and service worker for offline caching

* feat: Vite PWA implementation WIP

* feat: Improve PWA icons generation

* feat: Add PWA workbox to server routes

* feat: Include `version.json` in static assets

* feat: Add HTTP cache headers for PWA static assets

* feat: Update app name for `apple-mobile-web-app-title`

* feat: Implement PWA versioning and automatic update detection

* chore: Update `.gitignore` files

* feat: Splash Screens

* feat: Add dark mode favicon support

* refactor: Cleanup

* fix: Use dark logo for dark splash screens

* refactor: Simplify favicons SVG code

* fix: Adjust caching and polling for reliable service worker updates

* fix: Add missing favicon entry

* fix: Align PWA service worker configuration with SvelteKit build structure

* fix: Replace hashed bundle paths with versioned static paths

* test: Add PWA tests

* ci: Add build output for unit tests

* refactor: Cleanup

* fix: Server build & release versioning

* chore: Update package-lock.json

* chore: Increase PWA cache size

* chore: Update packages

* feat: Update favicons

* refactor: Post-merge fix

* feat: support explicit build version for PWA cache busting

* fix: CI

* feat: Improve PWA Refresh Alert UI

* feat: Add toggleable build version display

* refactor: Cleanup

* feat: Add version mismatch detection and manual app reload

* refactor: replace dynamic imports with static

* refactor: Cleanup

* feat: Add safe space for `pwa-<size>.png` rendered icons

* fix: use relative paths for PWA assets to support base path deployment

* feat: add PWA mode detection via URL query parameter

* feat: Use ?cache=true for SW-cached PWA assets

* refactor: Build process cleanup

* refactor: Decouple PWA versioning and remove ?cache=true workaround

* chore: Update README logo

* feat: Include PWA Assets generation in build script

* refactor: `usePwa` hook for core layout

* fix: Relativize base vite plugin

* fix: remove unnecessary backslash escapes in test regexes

* test: update static asset paths for API Key test

* refactor: Move SvelteKit PWA Options config to constants

* ui: fix update notification never appearing

Keep the PWA hook object intact instead of destructuring needRefreshByStorage,
which freezes the reactive getter. Also exclude loading.html from PWA
precache to prevent 404 errors and broken SW installation.
54 files changed:
.github/workflows/release.yml
.github/workflows/ui-build.yml
.github/workflows/ui-self-hosted.yml
.github/workflows/ui.yml
.gitignore
README.md
scripts/ui-assets.cmake
tools/server/server-http.cpp
tools/server/tests/unit/test_security.py
tools/ui/.gitignore
tools/ui/CMakeLists.txt
tools/ui/package-lock.json
tools/ui/package.json
tools/ui/playwright.config.ts
tools/ui/pwa-assets-dark.config.ts [new file with mode: 0644]
tools/ui/pwa-assets.config.ts [new file with mode: 0644]
tools/ui/scripts/make-icons-circular.js [new file with mode: 0644]
tools/ui/scripts/vite-plugin-build-info.ts [new file with mode: 0644]
tools/ui/scripts/vite-plugin-llama-cpp-build.ts [deleted file]
tools/ui/scripts/vite-plugin-relativize-base.ts [new file with mode: 0644]
tools/ui/scripts/vite-plugin-splash-screen.ts [new file with mode: 0644]
tools/ui/src/app.d.ts
tools/ui/src/app.html
tools/ui/src/lib/components/app/settings/SettingsChat/SettingsChat.svelte
tools/ui/src/lib/components/pwa/PwaMetaTags.svelte [new file with mode: 0644]
tools/ui/src/lib/components/pwa/PwaRefreshAlert.svelte [new file with mode: 0644]
tools/ui/src/lib/components/pwa/index.ts [new file with mode: 0644]
tools/ui/src/lib/constants/app.ts [new file with mode: 0644]
tools/ui/src/lib/constants/code.ts
tools/ui/src/lib/constants/index.ts
tools/ui/src/lib/constants/pwa.ts [new file with mode: 0644]
tools/ui/src/lib/constants/settings-keys.ts
tools/ui/src/lib/constants/settings-registry.ts
tools/ui/src/lib/constants/storage.ts
tools/ui/src/lib/constants/ui.ts
tools/ui/src/lib/enums/index.ts
tools/ui/src/lib/enums/splash.enums.ts [new file with mode: 0644]
tools/ui/src/lib/hooks/use-pwa.svelte.ts [new file with mode: 0644]
tools/ui/src/lib/stores/build-info.svelte.ts [new file with mode: 0644]
tools/ui/src/lib/stores/mcp.svelte.ts
tools/ui/src/lib/stores/theme.svelte.ts [new file with mode: 0644]
tools/ui/src/lib/stores/version.svelte.ts [new file with mode: 0644]
tools/ui/src/lib/types/index.ts
tools/ui/src/lib/types/splash.ts [new file with mode: 0644]
tools/ui/src/lib/utils/pdf-processing.ts
tools/ui/src/routes/+layout.svelte
tools/ui/static/favicon-dark.svg [new file with mode: 0644]
tools/ui/static/favicon.svg
tools/ui/svelte.config.js
tools/ui/tests/e2e/demo.test.ts [deleted file]
tools/ui/tests/e2e/pwa.e2e.ts [new file with mode: 0644]
tools/ui/tests/stories/PwaRefreshAlert.stories.svelte [new file with mode: 0644]
tools/ui/tests/unit/pwa.spec.ts [new file with mode: 0644]
tools/ui/vite.config.ts