[PR #1754] [CLOSED] serve/web: add a favicon to the web app and the API Monitor #3652

Closed
opened 2026-11-07 15:29:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1754
Author: @Kurokosama
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: web-tab-icon


📝 Commits (1)

  • 37d52c2 serve/web: add a favicon to the web app and the API Monitor

📊 Changes

3 files changed (+11 additions, -0 deletions)

View changed files

➕ serve/web/favicon.svg (+9 -0)
📝 serve/web/index.html (+1 -0)
📝 serve/web/monitor.html (+1 -0)

📄 Description

Issue: no existing issue — this is the /favicon.ico 404 that #1230 noted as pre-existing

Summary

Neither the web app nor the API Monitor page has a and there is no icon file
in serve/web, so browsers request /favicon.ico, get a 404, and show the default blank icon in
the tab.

the tab icon in a light and a dark tab strip (mock-up)

What changed

  • serve/web/favicon.svg (new, 9 lines): the layer stack the app already uses
    (serve/web/sprite.svg, i-layers), redrawn on a 32-unit viewBox with a stroke weight that
    stays legible at 16 px. The colour is the existing accent token #10b981 (serve/web/tokens.css).
  • serve/web/index.html and serve/web/monitor.html: one each, using the href style each page already uses for its own assets (relative in index.html, /web/ in monitor.html).
  • No server change: the /web/ route already serves .svg as image/svg+xml.

Extra Notes

  • curl http://127.0.0.1:8081/web/favicon.svg -> 200, image/svg+xml, 614 bytes; both pages come
    back with the icon link.
  • Rendered at 16/32/48/64 px in Chrome (light and dark tab strips); three stroke weights were
    compared and the earlier two lost the bottom layer or merged the lower two at 16 px.
  • SVG favicons are supported from Chrome/Edge 80 and Firefox 41 on, but only from Safari 26
    (caniuse), so older Safari shows the tab as it does today. A PNG fallback would need one more
    type in the /web/ allow-list in serve/server.py if you want it.
  • Thanks for the project.
  • AI tools: written with the Hermes Agent v0.21.5+6224.gbd0affe using the DeepSeek V4.1 Flash
    model (deepseek/deepseek-v4.1-flash).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1754 **Author:** [@Kurokosama](https://github.com/Kurokosama) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `web-tab-icon` --- ### 📝 Commits (1) - [`37d52c2`](https://github.com/Niko1221/Strata/commit/37d52c29cc2897fc99eddfed361da80241b82194) serve/web: add a favicon to the web app and the API Monitor ### 📊 Changes **3 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `serve/web/favicon.svg` (+9 -0) 📝 `serve/web/index.html` (+1 -0) 📝 `serve/web/monitor.html` (+1 -0) </details> ### 📄 Description Issue: no existing issue — this is the /favicon.ico 404 that #1230 noted as pre-existing ## Summary Neither the web app nor the API Monitor page has a <link rel="icon"> and there is no icon file in serve/web, so browsers request /favicon.ico, get a 404, and show the default blank icon in the tab. ![the tab icon in a light and a dark tab strip (mock-up)](https://raw.githubusercontent.com/Kurokosama/Strata/pr-1754-preview/assets/pr-1754-tab-icon-strips.png) ## What changed - serve/web/favicon.svg (new, 9 lines): the layer stack the app already uses (serve/web/sprite.svg, i-layers), redrawn on a 32-unit viewBox with a stroke weight that stays legible at 16 px. The colour is the existing accent token #10b981 (serve/web/tokens.css). - serve/web/index.html and serve/web/monitor.html: one <link rel="icon" href="…" type="image/svg+xml"> each, using the href style each page already uses for its own assets (relative in index.html, /web/ in monitor.html). - No server change: the /web/ route already serves .svg as image/svg+xml. ## Extra Notes - curl http://127.0.0.1:8081/web/favicon.svg -> 200, image/svg+xml, 614 bytes; both pages come back with the icon link. - Rendered at 16/32/48/64 px in Chrome (light and dark tab strips); three stroke weights were compared and the earlier two lost the bottom layer or merged the lower two at 16 px. - SVG favicons are supported from Chrome/Edge 80 and Firefox 41 on, but only from Safari 26 (caniuse), so older Safari shows the tab as it does today. A PNG fallback would need one more type in the /web/ allow-list in serve/server.py if you want it. - Thanks for the project. - AI tools: written with the Hermes Agent v0.21.5+6224.gbd0affe using the DeepSeek V4.1 Flash model (deepseek/deepseek-v4.1-flash). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3652
No description provided.