Skip to content

Focus Page Favicons — SD $D, MBR globe fix, KB-loader refactor

Section titled “Focus Page Favicons — SD $D, MBR globe fix, KB-loader refactor”

Date: 2026-05-31 Task: _WorkingOn/Tasks/Focus-Reminders.md (closed) Repos: monorepo (~/projects/monorepo), KB (D:\FSS\KB\Business)

  • MBR globe bug fixed. Focus pages deploy to subpaths (talbotstevens.com/mbr/, /sdc/) with favicons as siblings. Relative favicon links are correct; a root-relative /favicon.svg 404s under the subpath. The local “globe” was a local-only artifact of MBR’s Astro directory build layout — not a production bug. build.format left unchanged (changing it breaks the main site’s /rates /about links).
  • SD favicon now $D. scripts/generate-favicon.mjs glyph logic changed to hide char-S, keep char-dollar + char-D visible. Regenerated SD favicon SVGs. PWA PNGs (192/512/180/167/152) left untouched — already $D, regenerating from the fixed-viewBox source would have resized them.
  • show=next favicon swap removed from both focus pages — favicon is now the static brand SVG always.

Focus content KB-loader (monorepo commit 22011aa)

Section titled “Focus content KB-loader (monorepo commit 22011aa)”
  • Focus content (SDC + MBR) now loads from KB markdown (D:\FSS\KB\{SDC,MBR}\_WorkingOn\Focus.md) via new sites/{sdc,mbr}/src/utils/load-focus-content.ts, parsing YAML frontmatter + markdown, injecting brand spans, with inline fallback if KB unreachable at build. *-focus.ts are now thin entry points. Added yaml dep. README documents the workflow. Lets Talbot edit focus content from Obsidian (phone/desktop).
  • rates.generated.json regenerated (date bump, no rate value changes).
  • Task file Focus-Reminders.md committed with full investigation history.
  • SD favicon reads as SD not $D at 16px tab size. The $ vertical stroke (~3.3 SVG units ≈ 0.5px at 16px) vanishes on downscale. Source is correct $D; PWA icons (192px+) render $D cleanly. Talbot decided to accept as-is. Known fix (deferred): fatten the $ stroke in src/brand/sd/logos/svg-paths-base/sd-leaf-dot.svg, regenerate. Tested working at bar width ~7 units.
  • Read deploy scripts before touching favicon paths — deploy target URL structure dictates relative vs absolute (memory: project_focus_pages_subpath_deploy).
  • Test favicons at actual 16px, not just 32/64px — thin strokes disappear (memory: project_sd_favicon_dollar_16px).
  • Stray background http.server/astro check degrade the shell (truncated output, EOF_8f3a/EOL_8f3a markers); bare pkill crashes the foreground shell; don’t sleep-poll (harness blocks it) (memory: feedback_kill_bg_servers_after_use).