From 3494ab8853b5634055fe78d27803f531647d5333 Mon Sep 17 00:00:00 2001 From: PragyaTripathi990 <16pragyatripathi@gmail.com> Date: Sun, 10 May 2026 17:07:28 +0530 Subject: [PATCH] fix: correct PWA manifest branding and add full VitePWA config manifest.json had placeholder names ('My Ionic App', 'Ionic App') and was missing description, scope, orientation, and categories. vite.config.ts had a bare VitePWA() call with no manifest or workbox config. APP_NAME in app-data.ts also referenced a different product ('Inventory Tracker for FVM Warehouse'). All three are now aligned to 'Government Invoice & Billing System'. Co-Authored-By: Claude Sonnet 4.6 --- Govt-Billing-React/public/manifest.json | 14 ++++++---- Govt-Billing-React/src/app-data.ts | 2 +- Govt-Billing-React/vite.config.ts | 35 ++++++++++++++++++++++++- 3 files changed, 44 insertions(+), 7 deletions(-) diff --git a/Govt-Billing-React/public/manifest.json b/Govt-Billing-React/public/manifest.json index 5c88086..0e5f2c9 100644 --- a/Govt-Billing-React/public/manifest.json +++ b/Govt-Billing-React/public/manifest.json @@ -1,6 +1,7 @@ { - "short_name": "Ionic App", - "name": "My Ionic App", + "short_name": "GovtInvoice", + "name": "Government Invoice & Billing System", + "description": "Cross-platform invoicing and billing system for government institutions and educational bodies.", "icons": [ { "src": "pwa-64x64.png", @@ -25,8 +26,11 @@ "purpose": "maskable" } ], - "start_url": ".", + "start_url": "/", + "scope": "/", "display": "standalone", - "theme_color": "#ffffff", - "background_color": "#ffffff" + "orientation": "portrait", + "theme_color": "#3880ff", + "background_color": "#ffffff", + "categories": ["finance", "productivity", "utilities"] } diff --git a/Govt-Billing-React/src/app-data.ts b/Govt-Billing-React/src/app-data.ts index a785d3f..4c45800 100644 --- a/Govt-Billing-React/src/app-data.ts +++ b/Govt-Billing-React/src/app-data.ts @@ -1,4 +1,4 @@ -export let APP_NAME = "Inventory Tracker for FVM Warehouse"; +export let APP_NAME = "Government Invoice & Billing System"; export let DATA = { ledger: { diff --git a/Govt-Billing-React/vite.config.ts b/Govt-Billing-React/vite.config.ts index 860227d..6191518 100644 --- a/Govt-Billing-React/vite.config.ts +++ b/Govt-Billing-React/vite.config.ts @@ -10,6 +10,39 @@ export default defineConfig({ react(), legacy(), commonjs(), - VitePWA({ registerType: "autoUpdate" }), + VitePWA({ + registerType: "autoUpdate", + includeAssets: ["favicon.ico", "apple-touch-icon-180x180.png", "pwa-*.png"], + manifest: { + name: "Government Invoice & Billing System", + short_name: "GovtInvoice", + description: "Cross-platform invoicing and billing system for government institutions and educational bodies.", + theme_color: "#3880ff", + background_color: "#ffffff", + display: "standalone", + orientation: "portrait", + scope: "/", + start_url: "/", + icons: [ + { src: "pwa-64x64.png", sizes: "64x64", type: "image/png" }, + { src: "pwa-192x192.png", sizes: "192x192", type: "image/png" }, + { src: "pwa-512x512.png", sizes: "512x512", type: "image/png", purpose: "any" }, + { src: "maskable-icon-512x512.png", sizes: "512x512", type: "image/png", purpose: "maskable" }, + ], + }, + workbox: { + globPatterns: ["**/*.{js,css,html,ico,png,svg,woff2}"], + runtimeCaching: [ + { + urlPattern: /^https:\/\/fonts\.googleapis\.com\/.*/i, + handler: "CacheFirst", + options: { + cacheName: "google-fonts-cache", + expiration: { maxEntries: 10, maxAgeSeconds: 60 * 60 * 24 * 365 }, + }, + }, + ], + }, + }), ], });