Skip to content

fix(ui): Trinity favicon + browser-tab title (abilityai/trinity#1416) - #1417

Merged
dolho merged 1 commit into
devfrom
feature/1416-trinity-favicon-title
Jul 3, 2026
Merged

dolho merged 1 commit into
devfrom
feature/1416-trinity-favicon-title

Conversation

@vybe

@vybe vybe commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the leftover Vite scaffold favicon (/vite.svg — missing from public/, so browsers rendered a generic globe) with the existing Trinity SVG icon, plus a PNG alternate icon fallback for browsers without SVG-favicon support.
  • Add an apple-touch-icon (/icons/apple-touch-icon-mobile.png) so the icon is correct when saved to a home screen / bookmarked.
  • Change the stale <title> from Claude Agent Manager → Trinity — Agent Orchestration.

Changes

  • src/frontend/index.html — favicon <link>s + <title> only (2 lines → 4). No new assets: all icons already live in src/frontend/public/icons/ and are consumed by public/mobile-manifest.json.

Test Plan

  • Production vite build succeeds; dist/index.html references /icons/trinity-mobile.svg, /icons/trinity-mobile-192.png, /icons/apple-touch-icon-mobile.png.
  • All three assets copy into dist/icons/ (what prod nginx serves from dist/) — no dist/vite.svg, zero vite.svg references remain.
  • Prod-safe: assets served same-origin from public/ → dist/ root; no CSP change needed.
  • Manual: open a tab on the dev/prod build → Trinity icon + "Trinity — Agent Orchestration" title.

Fixes #1416

🤖 Generated with Claude Code

…efaults

index.html still shipped the Vite scaffold's `/vite.svg` favicon (missing from
public/, so browsers showed a generic globe) and a stale "Claude Agent Manager"
title. Point the favicon at the existing Trinity SVG with a PNG fallback, add an
apple-touch-icon for home-screen/bookmark saves, and set a Trinity product title.
Assets already live in public/icons/ and copy to dist/ root on build (prod-safe,
no CSP change). Verified via `vite build`: dist/index.html references all three
/icons/ paths, all present in dist/, zero vite.svg remaining.

Fixes #1416

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@dolho

dolho commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review — Trinity favicon + tab title (automated review, Claude)

LGTM. Correct and minimal. Verified all three referenced assets already exist in src/frontend/public/icons/ on dev (trinity-mobile.svg, trinity-mobile-192.png, apple-touch-icon-mobile.png), so there's no missing-asset regression — which was the actual bug here (/vite.svg never existed in public/, hence the generic globe). rel="alternate icon" is the correct SVG-unsupported fallback form, and serving from public/ → dist/ root is same-origin so no CSP change is needed, as the PR notes.

One orientation note (not a change request): this static <title> is the pre-hydration title; the follow-up #1419 adds a router afterEach guard that overrides document.title per route after the app mounts, and falls back to exactly this Trinity — Agent Orchestration string for unlabeled routes. The two are consistent and touch different files (index.html vs router/index.js), so no conflict — just merge this first so #1419's fallback assertion has its baseline.

Ship it.

@dolho
dolho merged commit c693d49 into dev Jul 3, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants