Skip to content

feat(icon): an SDPM icon for the Web UI, the favicon, the PWA and the Claude Desktop bundle - #658

Merged
ShotaroKataoka merged 6 commits into
mainfrom
feat/sdpm-icon
Nov 18, 2026
Merged

ShotaroKataoka merged 6 commits into
mainfrom
feat/sdpm-icon

Conversation

@ShotaroKataoka

@ShotaroKataoka ShotaroKataoka commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an SDPM icon. (It was stacked on #657, which is merged; the branch now holds only its own 6 commits on main.)

The mark is a 16:9 slide frame holding a green and an amber face, with a violet block tilting in over its top-left corner: the last piece of a slide being put in place. The colours are the agents' (content, visual, data).

  • web-ui/public/icon.svg, the PWA PNGs (192 / 512, which were blank dark squares) and scripts/mcpb/icon.png use the tiled app icon.
  • The rail and mobile top-bar logo draw the bare mark (SdpmMark, theme-aware through --mark-* tokens) in place of the gradient tile.
  • The favicon is the bare mark redrawn on a 16px grid, so it fills the tab. favicon.svg follows prefers-color-scheme; favicon.ico (16/32/48/256, light colours) is the fallback. The ICO is declared sizes="32x32" so Chrome prefers the SVG.
  • The Claude Desktop bundle gets "icon": "icon.png", and build_mcpb.sh packs it (mcpb validate passes).

Checklist

  • make all: no Python changes; same note as the base PR
  • ash scan --mode local --fail-on-findings: same as the base PR
  • Docs updated if behavior/paths changed (not needed)
  • CHANGELOG.md [Unreleased] updated for user-facing changes
  • Commit messages follow Conventional Commits

Testing

  • web-ui: npm test (1516), npm run build:cloud (both icon links and both files are in the export), tsc, eslint.
  • I viewed the generated PNGs and every ICO frame. I checked the rail logo, the phone top bar and the favicon in the browser, and the favicon on dark and light tab colours.
  • bash scripts/build_mcpb.sh: unzip -l lists icon.png at the bundle root.

Boundaries touched

None.

Base automatically changed from spec/webui-depth to main November 18, 2026 12:28
…n.ico

The mark: a 16:9 slide frame holding a green and an amber face, with a
violet block breaking out over the top-left corner, tilted, about to drop
into its faint-violet slot. Dark rounded tile (rx 112, #1d1f2a → #0f1016).

- web-ui/public/icon.svg: the chosen 512 viewBox design
- icon-192.png / icon-512.png: rendered from icon.svg with rsvg-convert
  (they were blank dark squares before)
- src/app/favicon.ico: 16/32/48/256 (256 as PNG), each size rendered from
  icon.svg with rsvg-convert, packed with magick

Checked: magick identify (192x192, 512x512; ICO 16/32/48/256), stddev
0.23–0.28 per image (not flat), and viewed the 512, 192, 256 and the
16/32 frames enlarged: frame, violet block, green and amber faces visible.
manifest.json is unchanged (same paths and sizes).
AppShell's logo was lucide Layers on the five-agent --team-gradient tile
with a card shadow. It is now the new mark without a tile (SdpmMark.tsx):
32px in the 36px desktop slot, 22px in the 24px mobile slot.

- SdpmMark.tsx: inline 24-viewBox SVG, same geometry as public/icon.svg;
  the mask id comes from useId (sanitised) so several instances never clash
- globals.css: --mark-frame / -visual / -content / -data / -slot-opacity,
  dark values in :root, darker versions of the same hues under
  [data-theme="light"], so the mark switches with the theme in CSS
- No user-facing strings changed (the link keeps its aria-label)

Checked in web-ui: npx tsc --noEmit OK, npx eslint src/ --quiet OK,
npm test 128 files / 1507 tests passed (first run had one timing failure
in ChatPanel.local.test.tsx "saves a period replayed in one chunk",
unrelated; it passed alone and on the full rerun), npm run build:cloud OK
(build/ has icon.svg, icon-192/512.png, favicon.ico, manifest.json).
Rendered the mark with both token sets at 256px and viewed it on the dark
(#1a1a1c) and light (#f8f7f2) page colours.
- scripts/mcpb/icon.png: 512×512, rendered from web-ui/public/icon.svg
  with rsvg-convert (byte-identical to web-ui/public/icon-512.png)
- scripts/mcpb/manifest.json: "icon": "icon.png"
- scripts/build_mcpb.sh: copy icon.png into the staging root next to
  manifest.json. release.yml runs this script, so no workflow change

Checked: bash scripts/build_mcpb.sh --skip-assets exit 0; mcpb 2.1.2
validate "Manifest schema validation passes!" and "Icon validation
passed"; unzip -l dist/sdpm.mcpb lists icon.png (17568 B) and
manifest.json at the root, the packed manifest has "icon": "icon.png",
and the packed icon.png is byte-identical to scripts/mcpb/icon.png.
…colour scheme

SPEC: 20261118-1209_sdpm-icon
Progress: favicon.svg (dark/light via prefers-color-scheme) + favicon.ico fallback in the light colours, declared so Chrome prefers the SVG; app icon, PWA and mcpb keep the tile
Next: user review
…0.18.0 rebase

SPEC: 20261118-1209_sdpm-icon
Progress: the rebase left the entry under 0.18.0
Next: PR
@ShotaroKataoka ShotaroKataoka added the blog:skip ブログ対象外 label Nov 18, 2026
@ShotaroKataoka
ShotaroKataoka enabled auto-merge (squash) November 18, 2026 12:33
@ShotaroKataoka
ShotaroKataoka merged commit 7c1e45f into main Nov 18, 2026
27 of 29 checks passed
@ShotaroKataoka
ShotaroKataoka deleted the feat/sdpm-icon branch November 18, 2026 12:34
@ShotaroKataoka ShotaroKataoka mentioned this pull request Nov 18, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog:skip ブログ対象外

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant