Skip to content

fix: replace broken external Bazel icon with inline SVG - #87

Closed
AlexanderLanin with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-bazel-icon
Closed

fix: replace broken external Bazel icon with inline SVG#87
AlexanderLanin with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-bazel-icon

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The Bazel icon rendered as a broken image ([Bazel]) because it was loaded from https://bazel.build/_pwa/bazel/icons/icon-72x72.png — an external URL that is no longer reliably accessible.

Changes

  • _icons.py (new) — single _bazel_svg(extra_attrs) helper producing the Bazel logo as an inline SVG; extracted to avoid a circular import between _html_common.pymetrics_report.py
  • _html_common.pyBAZEL_ICON now uses _bazel_svg('class="icon-bazel"') instead of an <img> pointing at the external URL
  • metrics_report.pyrender_bazel_icon() now uses _bazel_svg('width="16" height="16"') for the markdown report; removed BAZEL_ICON_URL constant
  • tests/test_repo_overview.py — updated assertion to match the new SVG output

The icon is now fully self-contained — no external HTTP requests, no fragile CDN dependency.

Copilot AI and others added 2 commits August 7, 2026 05:59
Co-authored-by: AlexanderLanin <5074553+AlexanderLanin@users.noreply.github.com>
Co-authored-by: AlexanderLanin <5074553+AlexanderLanin@users.noreply.github.com>
Co-authored-by: AlexanderLanin <5074553+AlexanderLanin@users.noreply.github.com>
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