feat(pwa): implement PWA installation banner and context provider

- Add `generate-icons.ts` script to generate PWA icons from SVG.
- Create `InstallBanner` component for prompting users to install the app.
- Implement `PwaProvider` to manage PWA installation state and events.
- Export `PwaProvider` and `InstallBanner` from the PWA feature index.
This commit is contained in:
Jose Selesan
2026-09-28 20:55:48 -03:00
parent 05da085e36
commit 2fd1826014
23 changed files with 1032 additions and 24 deletions

View File

@@ -7,10 +7,12 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"icons": "bun run scripts/generate-icons.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@better-auth/passkey": "^1.7.2",
"@fontsource-variable/inter": "^5.3.0",
"@gruperly/shared": "workspace:*",
"@hookform/resolvers": "^3.9.0",
"@tanstack/react-query": "^5.62.0",
@@ -31,8 +33,10 @@
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitejs/plugin-react": "^4.3.0",
"sharp": "^0.35.4",
"tailwindcss": "^4.0.0",
"typescript": "^5.7.0",
"vite": "^6.0.0"
"vite": "^6.0.0",
"vite-plugin-pwa": "^1.3.0"
}
}