@devries-cameron20 / t3code Mirror · read-only / commits / b19c9f038a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 02:00 UTC

fix(web): add installable icons for Firefox on Android (#30420)

shivam committed Nov 7, 2026 at 08:42 UTC b19c9f038a27b1bad79dfc2f8941e904605f34ea
13 files changed +47 -1
apps/web/public/icon-192x192.png
Binary files /dev/null and b/apps/web/public/icon-192x192.png differ
apps/web/public/icon-512x512.png
Binary files /dev/null and b/apps/web/public/icon-512x512.png differ
apps/web/public/manifest.webmanifest
+12
@@ -17,6 +17,18 @@
17 "src": "/apple-touch-icon.png",
18 "sizes": "180x180",
19 "type": "image/png"
20 + },
21 + {
22 + "src": "/icon-192x192.png",
23 + "sizes": "192x192",
24 + "type": "image/png",
25 + "purpose": "any"
26 + },
27 + {
28 + "src": "/icon-512x512.png",
29 + "sizes": "512x512",
30 + "type": "image/png",
31 + "purpose": "any"
32 }
33 ]
34 }
assets/README.md
+1 -1
@@ -8,7 +8,7 @@ The three Icon Composer projects are the source of truth for full application ic
8
9 Each project uses `text.svg` for the T3 mark and `background.svg` when the background is a vector layer. Additional layers use semantic names that describe their role and placement.
10
11 -Run `vp run icons:export` from the repository root to regenerate the tracked iOS, Linux, Windows, and web assets. The development web exports are also copied to `apps/web/public` for the browser favicon and splash screen. Run `vp run icons:check` to verify that the generated assets and public copies match their sources without changing files.
11 +Run `vp run icons:export` from the repository root to regenerate the tracked iOS, Linux, Windows, and web assets. The development web exports are also copied to `apps/web/public` for the browser favicon, web app manifest icons, and splash screen. Run `vp run icons:check` to verify that the generated assets and public copies match their sources without changing files.
12
13 Exporting requires Icon Composer 2 or newer on macOS. The script selects the newest compatible exporter from Xcode or a standalone Icon Composer installation and pins design generation 26. Set `ICON_COMPOSER_TOOL` to the full path of `Icon Composer.app/Contents/Executables/ictool` to override automatic discovery.
14
assets/dev/blueprint-web-icon-192x192.png
Binary files /dev/null and b/assets/dev/blueprint-web-icon-192x192.png differ
assets/dev/blueprint-web-icon-512x512.png
Binary files /dev/null and b/assets/dev/blueprint-web-icon-512x512.png differ
assets/nightly/nightly-web-icon-192x192.png
Binary files /dev/null and b/assets/nightly/nightly-web-icon-192x192.png differ
assets/nightly/nightly-web-icon-512x512.png
Binary files /dev/null and b/assets/nightly/nightly-web-icon-512x512.png differ
assets/prod/t3-black-web-icon-192x192.png
Binary files /dev/null and b/assets/prod/t3-black-web-icon-192x192.png differ
assets/prod/t3-black-web-icon-512x512.png
Binary files /dev/null and b/assets/prod/t3-black-web-icon-512x512.png differ
scripts/apply-web-brand-assets.test.ts
+2
@@ -11,6 +11,8 @@ const WEB_ICON_FILENAMES = [
11 "favicon-16x16.png",
12 "favicon-32x32.png",
13 "favicon.ico",
14 + "icon-192x192.png",
15 + "icon-512x512.png",
16 ];
17
18 it.layer(NodeServices.layer)("apply-web-brand-assets", (it) => {
scripts/export-brand-icons.ts
+10
@@ -48,6 +48,8 @@ interface VariantOutputs {
48 readonly macos: string;
49 readonly universal: string;
50 readonly appleTouch: string;
51 + readonly webIcon192: string;
52 + readonly webIcon512: string;
53 readonly favicon16: string;
54 readonly favicon32: string;
55 readonly faviconIco: string;
@@ -211,6 +213,8 @@ const ICON_VARIANTS = [
213 macos: BRAND_ASSET_PATHS.developmentDesktopIconPng,
214 universal: BRAND_ASSET_PATHS.developmentUniversalIconPng,
215 appleTouch: BRAND_ASSET_PATHS.developmentWebAppleTouchIconPng,
216 + webIcon192: BRAND_ASSET_PATHS.developmentWebIcon192Png,
217 + webIcon512: BRAND_ASSET_PATHS.developmentWebIcon512Png,
218 favicon16: BRAND_ASSET_PATHS.developmentWebFavicon16Png,
219 favicon32: BRAND_ASSET_PATHS.developmentWebFavicon32Png,
220 faviconIco: BRAND_ASSET_PATHS.developmentWebFaviconIco,
@@ -225,6 +229,8 @@ const ICON_VARIANTS = [
229 macos: BRAND_ASSET_PATHS.nightlyMacIconPng,
230 universal: BRAND_ASSET_PATHS.nightlyLinuxIconPng,
231 appleTouch: BRAND_ASSET_PATHS.nightlyWebAppleTouchIconPng,
232 + webIcon192: BRAND_ASSET_PATHS.nightlyWebIcon192Png,
233 + webIcon512: BRAND_ASSET_PATHS.nightlyWebIcon512Png,
234 favicon16: BRAND_ASSET_PATHS.nightlyWebFavicon16Png,
235 favicon32: BRAND_ASSET_PATHS.nightlyWebFavicon32Png,
236 faviconIco: BRAND_ASSET_PATHS.nightlyWebFaviconIco,
@@ -239,6 +245,8 @@ const ICON_VARIANTS = [
245 macos: BRAND_ASSET_PATHS.productionMacIconPng,
246 universal: BRAND_ASSET_PATHS.productionLinuxIconPng,
247 appleTouch: BRAND_ASSET_PATHS.productionWebAppleTouchIconPng,
248 + webIcon192: BRAND_ASSET_PATHS.productionWebIcon192Png,
249 + webIcon512: BRAND_ASSET_PATHS.productionWebIcon512Png,
250 favicon16: BRAND_ASSET_PATHS.productionWebFavicon16Png,
251 favicon32: BRAND_ASSET_PATHS.productionWebFavicon32Png,
252 faviconIco: BRAND_ASSET_PATHS.productionWebFaviconIco,
@@ -592,6 +600,8 @@ const renderVariant = Effect.fn("iconExport.renderVariant")(function* (
600 [variant.outputs.ios, ios],
601 [variant.outputs.universal, ios],
602 [variant.outputs.appleTouch, yield* render("iOS", 180)],
603 + [variant.outputs.webIcon192, yield* render("iOS", 192)],
604 + [variant.outputs.webIcon512, yield* render("iOS", 512)],
605 [variant.outputs.favicon16, yield* render("iOS", 16)],
606 [variant.outputs.favicon32, yield* render("iOS", 32)],
607 [variant.outputs.faviconIco, ico],
scripts/lib/brand-assets.ts
+22
@@ -12,6 +12,8 @@ export const BRAND_ASSET_PATHS = {
12 productionWebFavicon16Png: "assets/prod/t3-black-web-favicon-16x16.png",
13 productionWebFavicon32Png: "assets/prod/t3-black-web-favicon-32x32.png",
14 productionWebAppleTouchIconPng: "assets/prod/t3-black-web-apple-touch-180.png",
15 + productionWebIcon192Png: "assets/prod/t3-black-web-icon-192x192.png",
16 + productionWebIcon512Png: "assets/prod/t3-black-web-icon-512x512.png",
17
18 nightlyIconComposerProject: "assets/nightly/app-icon.icon",
19 nightlyIosIconPng: "assets/nightly/nightly-ios-1024.png",
@@ -22,6 +24,8 @@ export const BRAND_ASSET_PATHS = {
24 nightlyWebFavicon16Png: "assets/nightly/nightly-web-favicon-16x16.png",
25 nightlyWebFavicon32Png: "assets/nightly/nightly-web-favicon-32x32.png",
26 nightlyWebAppleTouchIconPng: "assets/nightly/nightly-web-apple-touch-180.png",
27 + nightlyWebIcon192Png: "assets/nightly/nightly-web-icon-192x192.png",
28 + nightlyWebIcon512Png: "assets/nightly/nightly-web-icon-512x512.png",
29
30 developmentDesktopIconPng: "assets/dev/blueprint-macos-1024.png",
31 developmentWindowsIconIco: "assets/dev/blueprint-windows.ico",
@@ -29,6 +33,8 @@ export const BRAND_ASSET_PATHS = {
33 developmentWebFavicon16Png: "assets/dev/blueprint-web-favicon-16x16.png",
34 developmentWebFavicon32Png: "assets/dev/blueprint-web-favicon-32x32.png",
35 developmentWebAppleTouchIconPng: "assets/dev/blueprint-web-apple-touch-180.png",
36 + developmentWebIcon192Png: "assets/dev/blueprint-web-icon-192x192.png",
37 + developmentWebIcon512Png: "assets/dev/blueprint-web-icon-512x512.png",
38 } as const;
39
40 export type WebAssetBrand = "development" | "nightly" | "production";
@@ -51,6 +57,8 @@ const WEB_ICON_TARGET_FILENAMES = {
57 favicon16Png: "favicon-16x16.png",
58 favicon32Png: "favicon-32x32.png",
59 appleTouchIconPng: "apple-touch-icon.png",
60 + icon192Png: "icon-192x192.png",
61 + icon512Png: "icon-512x512.png",
62 } as const;
63
64 const WEB_ICON_SOURCE_PATHS_BY_BRAND = {
@@ -59,18 +67,24 @@ const WEB_ICON_SOURCE_PATHS_BY_BRAND = {
67 favicon16Png: BRAND_ASSET_PATHS.developmentWebFavicon16Png,
68 favicon32Png: BRAND_ASSET_PATHS.developmentWebFavicon32Png,
69 appleTouchIconPng: BRAND_ASSET_PATHS.developmentWebAppleTouchIconPng,
70 + icon192Png: BRAND_ASSET_PATHS.developmentWebIcon192Png,
71 + icon512Png: BRAND_ASSET_PATHS.developmentWebIcon512Png,
72 },
73 nightly: {
74 faviconIco: BRAND_ASSET_PATHS.nightlyWebFaviconIco,
75 favicon16Png: BRAND_ASSET_PATHS.nightlyWebFavicon16Png,
76 favicon32Png: BRAND_ASSET_PATHS.nightlyWebFavicon32Png,
77 appleTouchIconPng: BRAND_ASSET_PATHS.nightlyWebAppleTouchIconPng,
78 + icon192Png: BRAND_ASSET_PATHS.nightlyWebIcon192Png,
79 + icon512Png: BRAND_ASSET_PATHS.nightlyWebIcon512Png,
80 },
81 production: {
82 faviconIco: BRAND_ASSET_PATHS.productionWebFaviconIco,
83 favicon16Png: BRAND_ASSET_PATHS.productionWebFavicon16Png,
84 favicon32Png: BRAND_ASSET_PATHS.productionWebFavicon32Png,
85 appleTouchIconPng: BRAND_ASSET_PATHS.productionWebAppleTouchIconPng,
86 + icon192Png: BRAND_ASSET_PATHS.productionWebIcon192Png,
87 + icon512Png: BRAND_ASSET_PATHS.productionWebIcon512Png,
88 },
89 } as const satisfies Record<WebAssetBrand, Record<keyof typeof WEB_ICON_TARGET_FILENAMES, string>>;
90
@@ -96,6 +110,14 @@ export function resolveWebIconOverrides(
110 sourceRelativePath: sourcePaths.appleTouchIconPng,
111 targetRelativePath: `${targetDirectory}/${WEB_ICON_TARGET_FILENAMES.appleTouchIconPng}`,
112 },
113 + {
114 + sourceRelativePath: sourcePaths.icon192Png,
115 + targetRelativePath: `${targetDirectory}/${WEB_ICON_TARGET_FILENAMES.icon192Png}`,
116 + },
117 + {
118 + sourceRelativePath: sourcePaths.icon512Png,
119 + targetRelativePath: `${targetDirectory}/${WEB_ICON_TARGET_FILENAMES.icon512Png}`,
120 + },
121 ];
122 }
123