Commit Graph

4 Commits

Author SHA1 Message Date
Nicolas Varrot
72e9bce4c5 fix: bust service worker cache on each build with version+timestamp
The SW cache name was hardcoded to 'pinchchat-v1', meaning PWA users
would get stale cached assets forever. Now the cache name includes
the package version and build timestamp, so each build creates a new
cache and old ones are cleaned up on activation.

Also adds:
- Periodic SW update check (every 30 min)
- Auto-reload when new SW version is detected
2026-02-13 11:57:32 +00:00
Nicolas Varrot
3c5fcdfc73 fix: inject app version from package.json instead of hardcoded 1.0.0
- Add Vite define for __APP_VERSION__ from package.json
- Use dynamic version in gateway connect handshake and userAgent
- Show version number in sidebar footer
- Add globals.d.ts type declaration
2026-02-12 09:37:28 +00:00
Nicolas Varrot
d7bdf3b9d7 perf: code-split vendor chunks to eliminate 500kB bundle warning
Split the single 713kB JS bundle into separate chunks:
- react-vendor: React core (~192kB)
- markdown: react-markdown + remark/rehype + highlight.js (~476kB)
- icons: lucide-react (~6kB)
- ui: Radix UI components
- index: app code (~37kB)

Improves caching (vendor chunks change less often) and eliminates
the Vite chunk size warning.
2026-02-11 09:21:08 +00:00
Nicolas Varrot
1f8ff9ae0a Initial commit — ClawChat v1.0.0 2026-02-11 00:48:43 +00:00