From 12915189c5fe02135bc7f2dd47cac645153d2236 Mon Sep 17 00:00:00 2001 From: Vivek R <123vivekr@gmail.com> Date: Sun, 31 Aug 2025 17:43:11 +0530 Subject: [PATCH] feat(ui): use bundled app icon as favicon; remove legacy vite/tauri icons\n\n- Remove pointing to /vite.svg in index.html\n- Programmatically set favicon to bundled asterisk-logo.png in src/main.tsx\n- Delete unused public icons: vite.svg and tauri.svg\n\nRationale: keeps assets bundled, avoids reliance on /public, and aligns app branding. --- index.html | 1 - public/tauri.svg | 6 ------ public/vite.svg | 1 - src/main.tsx | 17 +++++++++++++++++ 4 files changed, 17 insertions(+), 8 deletions(-) delete mode 100644 public/tauri.svg delete mode 100644 public/vite.svg diff --git a/index.html b/index.html index f1707f5..65b194e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ - opcode - Claude Code Session Browser diff --git a/public/tauri.svg b/public/tauri.svg deleted file mode 100644 index 31b62c9..0000000 --- a/public/tauri.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/main.tsx b/src/main.tsx index 7df0e52..2b7b92c 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,6 +7,7 @@ import { analytics, resourceMonitor } from "./lib/analytics"; import { PostHogProvider } from "posthog-js/react"; import "./assets/shimmer.css"; import "./styles.css"; +import AppIcon from "./assets/nfo/asterisk-logo.png"; // Initialize analytics before rendering analytics.initialize(); @@ -25,6 +26,22 @@ resourceMonitor.startMonitoring(120000); } })(); +// Set favicon to the new app icon (avoids needing /public) +(() => { + try { + const existing = document.querySelector('link[rel="icon"]'); + const link = existing ?? document.createElement("link"); + link.rel = "icon"; + link.type = "image/png"; + link.href = AppIcon; + if (!existing) { + document.head.appendChild(link); + } + } catch (_) { + // Non-fatal if document/head is not available + } +})(); + ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(