Skip to content

feat(client): add PWA support#439

Closed
Copilot wants to merge 2 commits intomasterfrom
copilot/make-client-app-pwa
Closed

feat(client): add PWA support#439
Copilot wants to merge 2 commits intomasterfrom
copilot/make-client-app-pwa

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

The client app had no PWA capabilities — no manifest, no service worker, no installability.

Changes

  • vite-plugin-pwa — added as dev dependency; configured in vite.config.ts with autoUpdate registration mode
  • Web App Manifeststandalone display, theme/background color #1e143c, correct icon entries (192, 512, 512 maskable)
  • Service Worker — Workbox generateSW precaches all JS/CSS/HTML/assets; cache-first strategy for Google Fonts (1-year TTL)
  • Icons — added public/pwa-192x192.png, public/pwa-512x512.png, public/apple-touch-icon.png (180px for iOS)
  • index.html — added theme-color meta, description meta, and apple-touch-icon link
// vite.config.ts
VitePWA({
    registerType: 'autoUpdate',
    manifest: {
        name: 'Chat E2EE - Minimal & Secure',
        short_name: 'Chat E2EE',
        display: 'standalone',
        theme_color: '#1e143c',
        icons: [/* 192, 512, 512 maskable */],
    },
    workbox: {
        globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
        runtimeCaching: [/* Google Fonts cache-first, 1yr TTL */],
    },
})

Agent-Logs-Url: https://github.com/muke1908/chat-e2ee/sessions/155ad5cf-8d3d-4726-a2fe-0671fbf31069

Co-authored-by: muke1908 <20297989+muke1908@users.noreply.github.com>
@muke1908
Copy link
Copy Markdown
Owner

muke1908 commented Apr 3, 2026

@copilot resolve conflicts

…-app-pwa

# Conflicts:
#	package-lock.json

Co-authored-by: muke1908 <20297989+muke1908@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 3, 2026

@copilot resolve conflicts

Conflicts resolved in edf6772. The only conflict was package-lock.json — merged master's changes and regenerated the lock file to include both the upstream updates and the vite-plugin-pwa dependency. Build passes ✅.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

Copilot AI requested a review from muke1908 April 3, 2026 09:10
@muke1908 muke1908 marked this pull request as ready for review April 3, 2026 09:54
@muke1908 muke1908 closed this Apr 3, 2026
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.

2 participants