AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): correct OS push notification icons and add web app manifest (#13245)
Krzysztof Czerwinski0d0e0cdcb757
diff --git a/autogpt_platform/frontend/public/apple-touch-icon.png b/autogpt_platform/frontend/public/apple-touch-icon.pngnew file mode 100644index 0000000000..1e83446131Binary files /dev/null and b/autogpt_platform/frontend/public/apple-touch-icon.png differdiff --git a/autogpt_platform/frontend/public/manifest.webmanifest b/autogpt_platform/frontend/public/manifest.webmanifestnew file mode 100644index 0000000000..14deaa08ec--- /dev/null+++ b/autogpt_platform/frontend/public/manifest.webmanifest@@ -0,0 +1,23 @@+{+ "name": "AutoGPT Platform",+ "short_name": "AutoGPT",+ "description": "Your one stop shop to creating AI Agents",+ "start_url": "/",+ "display": "standalone",+ "background_color": "#04062e",+ "theme_color": "#04062e",+ "icons": [+ {+ "src": "/notification-icon-192.png",+ "sizes": "192x192",+ "type": "image/png",+ "purpose": "any maskable"+ },+ {+ "src": "/notification-icon-512.png",+ "sizes": "512x512",+ "type": "image/png",+ "purpose": "any maskable"+ }+ ]+}diff --git a/autogpt_platform/frontend/public/notification-badge-96.png b/autogpt_platform/frontend/public/notification-badge-96.pngnew file mode 100644index 0000000000..917d242dffBinary files /dev/null and b/autogpt_platform/frontend/public/notification-badge-96.png differdiff --git a/autogpt_platform/frontend/public/notification-icon-192.png b/autogpt_platform/frontend/public/notification-icon-192.pngindex 252219f0d2..4eb0f4c8fc 100644Binary files a/autogpt_platform/frontend/public/notification-icon-192.png and b/autogpt_platform/frontend/public/notification-icon-192.png differdiff --git a/autogpt_platform/frontend/public/notification-icon-512.png b/autogpt_platform/frontend/public/notification-icon-512.pngindex 7d5b5bf0e7..fd3b12c37c 100644Binary files a/autogpt_platform/frontend/public/notification-icon-512.png and b/autogpt_platform/frontend/public/notification-icon-512.png differdiff --git a/autogpt_platform/frontend/public/push-sw.js b/autogpt_platform/frontend/public/push-sw.jsindex b923070fc0..388c10b3a1 100644--- a/autogpt_platform/frontend/public/push-sw.js+++ b/autogpt_platform/frontend/public/push-sw.js@@ -153,7 +153,7 @@ self.addEventListener("push", function (event) {var options = {body: config.body,icon: "/notification-icon-192.png",- badge: "/notification-icon-192.png",+ badge: "/notification-badge-96.png",tag: tag,data: Object.assign({ url: targetUrl }, data),renotify: true,diff --git a/autogpt_platform/frontend/src/app/layout.tsx b/autogpt_platform/frontend/src/app/layout.tsxindex df67b9d0c2..843e9d2433 100644--- a/autogpt_platform/frontend/src/app/layout.tsx+++ b/autogpt_platform/frontend/src/app/layout.tsx@@ -28,8 +28,10 @@ const faviconPath = isDevexport const metadata: Metadata = {title: "AutoGPT Platform",description: "Your one stop shop to creating AI Agents",+ manifest: "/manifest.webmanifest",icons: {icon: faviconPath,+ apple: "/apple-touch-icon.png",},};