Skip to content

fix(wiki): broken intro metrics images + missing homepage star count#751

Merged
ss-o merged 1 commit into
nextfrom
bug-intro-images-star-count
May 25, 2026
Merged

fix(wiki): broken intro metrics images + missing homepage star count#751
ss-o merged 1 commit into
nextfrom
bug-intro-images-star-count

Conversation

@ss-o
Copy link
Copy Markdown
Member

@ss-o ss-o commented May 25, 2026

Summary

Two unrelated UI bugs reported on the live wiki.

1. Broken images on the Introduction page (docs/index.mdx)
The "Summary" metrics SVGs referenced z-shell/.github@main, but the metrics.yml workflow publishes them to the dedicated metrics branch (committer_branch: metrics). The main URLs 404. Repointed to the metrics branch.

  • …/.github/main/metrics/plugin/metrics.svg → 404
  • …/.github/metrics/metrics/plugin/metrics.svg → 200 ✓

2. Missing star count on the homepage GitHub button (HomeBanner)
Not a CSP issue. The star iframe (type=star&count=true&size=large) was width={130}, which clips the count bubble. Widened to 170 (matches the adjacent follow button).

Test plan

  • Cloudflare Pages preview: Introduction page Summary images render (no broken icons)
  • Preview homepage: GitHub star button shows the count
  • Trunk / CodeQL green

… width

The intro page Summary images pointed at z-shell/.github @main, but the metrics SVGs are published to the 'metrics' branch (404 on main → broken images). The homepage star iframe was 130px wide, clipping the count bubble on the large button. Point the URLs at the metrics branch and widen the star iframe to 170px (matching the follow button).
Copilot AI review requested due to automatic review settings May 25, 2026 21:26
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying zsh with  Cloudflare Pages  Cloudflare Pages

Latest commit: 792c851
Status: ✅  Deploy successful!
Preview URL: https://1947f80f.zsh.pages.dev
Branch Preview URL: https://bug-intro-images-star-count.zsh.pages.dev

View logs

@github-actions
Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 6.59 MB

ℹ️ View Unchanged
Filename Size Change
.docusaurus/globalData.json 13.7 kB 0 B
build/404.html 10.9 kB 0 B
build/assets/css/styles.********.css 154 kB 0 B
build/assets/js/0a6cf40a.********.js 36.9 kB 0 B
build/assets/js/0fd216e9.********.js 9.43 kB 0 B
build/assets/js/1a4e3797.********.js 82.6 kB 0 B
build/assets/js/1b355a49.********.js 8.52 kB 0 B
build/assets/js/1c9dc0d9.********.js 23.1 kB 0 B
build/assets/js/1df93b7f.********.js 16.7 kB 0 B
build/assets/js/1f391b9e.********.js 2.99 kB 0 B
build/assets/js/2e789afb.********.js 74.9 kB 0 B
build/assets/js/3a9ef7ca.********.js 439 B 0 B
build/assets/js/3dd168bd.********.js 17.4 kB 0 B
build/assets/js/3fc333ae.********.js 31 kB 0 B
build/assets/js/4edc808e.********.js 5.31 kB +19 B (+0.36%)
build/assets/js/5c2e370e.********.js 487 B 0 B
build/assets/js/5e95c892.********.js 338 B 0 B
build/assets/js/6be15ea1.********.js 9.37 kB 0 B
build/assets/js/7aa168bf.********.js 6.38 kB 0 B
build/assets/js/7b9e4520.********.js 11.4 kB 0 B
build/assets/js/7bf4542e.********.js 18.4 kB 0 B
build/assets/js/7c5c12ac.********.js 9.68 kB 0 B
build/assets/js/7db88304.********.js 15.5 kB 0 B
build/assets/js/7efa72d3.********.js 7.22 kB 0 B
build/assets/js/09a4fe5a.********.js 64.8 kB 0 B
build/assets/js/9b0b65a6.********.js 11.2 kB 0 B
build/assets/js/12cfd228.********.js 7.17 kB 0 B
build/assets/js/14eb3368.********.js 10.6 kB 0 B
build/assets/js/40c845af.********.js 31.4 kB 0 B
build/assets/js/47a5fc0a.********.js 174 B 0 B
build/assets/js/55b84506.********.js 12.3 kB 0 B
build/assets/js/56bcdb4b.********.js 10.3 kB 0 B
build/assets/js/57a8643e.********.js 14.3 kB 0 B
build/assets/js/0058b4c6.********.js 4.26 kB 0 B
build/assets/js/62b83c0f.********.js 8.01 kB 0 B
build/assets/js/66fe25d9.********.js 7.21 kB 0 B
build/assets/js/073fbc7c.********.js 15.8 kB 0 B
build/assets/js/78a4fd52.********.js 4.94 kB 0 B
build/assets/js/93c7665c.********.js 5.99 kB 0 B
build/assets/js/167d542a.********.js 12 kB 0 B
build/assets/js/175b49cb.********.js 39.4 kB 0 B
build/assets/js/221b35f7.********.js 17.9 kB 0 B
build/assets/js/263b985f.********.js 37 kB 0 B
build/assets/js/446e416b.********.js 9.56 kB 0 B
build/assets/js/573f7f56.********.js 3.29 kB 0 B
build/assets/js/621db11d.********.js 19.6 kB 0 B
build/assets/js/635ad0e8.********.js 490 B 0 B
build/assets/js/814f3328.********.js 151 B 0 B
build/assets/js/945b49d0.********.js 14.3 kB 0 B
build/assets/js/991ed628.********.js 17.1 kB 0 B
build/assets/js/1448.********.js 101 B 0 B
build/assets/js/2137bacb.********.js 8.88 kB 0 B
build/assets/js/3044.********.js 451 B 0 B
build/assets/js/3894e54f.********.js 21.9 kB 0 B
build/assets/js/4180.********.js 10.3 kB 0 B
build/assets/js/5665.********.js 101 B 0 B
build/assets/js/5883.********.js 15 kB 0 B
build/assets/js/6091.********.js 175 kB 0 B
build/assets/js/7917.********.js 27.4 kB 0 B
build/assets/js/8406.********.js 938 B 0 B
build/assets/js/8525.********.js 1.27 kB 0 B
build/assets/js/8721.********.js 443 kB 0 B
build/assets/js/8894.********.js 102 B 0 B
build/assets/js/8975.********.js 5.79 kB 0 B
build/assets/js/9170.********.js 1.05 kB 0 B
build/assets/js/36994c47.********.js 171 B 0 B
build/assets/js/98822c48.********.js 12.9 kB 0 B
build/assets/js/4382960e.********.js 9.82 kB 0 B
build/assets/js/8357758b.********.js 19.7 kB 0 B
build/assets/js/8449122f.********.js 56.4 kB 0 B
build/assets/js/17896441.********.js 1.79 kB 0 B
build/assets/js/35475145.********.js 451 B 0 B
build/assets/js/39724810.********.js 14 kB 0 B
build/assets/js/70442256.********.js 36 kB 0 B
build/assets/js/a7bd4aaa.********.js 687 B 0 B
build/assets/js/a21c20db.********.js 45 kB 0 B
build/assets/js/a821d7a1.********.js 14.9 kB 0 B
build/assets/js/a94703ab.********.js 11.4 kB 0 B
build/assets/js/a7456010.********.js 173 B 0 B
build/assets/js/aba21aa0.********.js 172 B 0 B
build/assets/js/acecf23e.********.js 193 B 0 B
build/assets/js/b14e0f74.********.js 15.8 kB 0 B
build/assets/js/b28a5f0c.********.js 21 kB 0 B
build/assets/js/b4616e61.********.js 18.6 kB 0 B
build/assets/js/bc6be8dd.********.js 438 B 0 B
build/assets/js/bc7db166.********.js 22.8 kB 0 B
build/assets/js/c7b90d82.********.js 23.1 kB 0 B
build/assets/js/c141421f.********.js 172 B 0 B
build/assets/js/cf55cfec.********.js 458 B 0 B
build/assets/js/d5c68bbd.********.js 42.6 kB 0 B
build/assets/js/d40a1e80.********.js 9.99 kB 0 B
build/assets/js/d48f62ac.********.js 8.66 kB 0 B
build/assets/js/d66fa391.********.js 32.4 kB 0 B
build/assets/js/d2436a2b.********.js 8.59 kB 0 B
build/assets/js/db8d5f16.********.js 11.6 kB 0 B
build/assets/js/e9ebadb9.********.js 12.5 kB 0 B
build/assets/js/e9814e3e.********.js 7.48 kB 0 B
build/assets/js/e76149f9.********.js 9.75 kB 0 B
build/assets/js/e0719818.********.js 174 B 0 B
build/assets/js/ea82e367.********.js 13.7 kB 0 B
build/assets/js/eb7ebca6.********.js 30.5 kB 0 B
build/assets/js/ebed0d07.********.js 5.35 kB 0 B
build/assets/js/ec281f2e.********.js 15.8 kB 0 B
build/assets/js/eecb7248.********.js 2.94 kB 0 B
build/assets/js/ef8b811a.********.js 313 B 0 B
build/assets/js/f7eabd91.********.js 8.77 kB 0 B
build/assets/js/f077d5db.********.js 33.4 kB 0 B
build/assets/js/f1028ce8.********.js 465 B 0 B
build/assets/js/f13553a8.********.js 436 B 0 B
build/assets/js/f53487f0.********.js 12.6 kB 0 B
build/assets/js/fd2064b2.********.js 11.5 kB 0 B
build/assets/js/fedb50c8.********.js 44.7 kB 0 B
build/assets/js/main.********.js 518 kB 0 B
build/assets/js/runtime~main.********.js 8.21 kB 0 B
build/blog/authors.html 11.5 kB 0 B
build/community.html 21.8 kB 0 B
build/community/category/-collection.html 22.7 kB 0 B
build/community/category/-gallery-of-invocations.html 17.5 kB 0 B
build/community/contributing.html 24.4 kB 0 B
build/community/contributing/contributing_docs.html 38.3 kB 0 B
build/community/contributing/contributing_to_zi.html 31.8 kB 0 B
build/community/contributing/getting_started.html 33.6 kB 0 B
build/community/contributing/project_management.html 36.8 kB 0 B
build/community/contributors.html 26.5 kB 0 B
build/community/gallery/collection.html 24 kB 0 B
build/community/gallery/collection/completions.html 76.3 kB 0 B
build/community/gallery/collection/plugins.html 84.1 kB 0 B
build/community/gallery/collection/programs.html 188 kB 0 B
build/community/gallery/collection/services.html 24.7 kB 0 B
build/community/gallery/collection/snippets.html 24.4 kB 0 B
build/community/gallery/collection/themes.html 63.4 kB 0 B
build/community/zsh_handbook.html 159 kB 0 B
build/community/zsh_plugin_standard.html 108 kB 0 B
build/community/zunit.html 28.4 kB 0 B
build/community/zunit/zunit-assertions.html 60.8 kB 0 B
build/community/zunit/zunit-ci.html 43.4 kB 0 B
build/community/zunit/zunit-configuration.html 31.6 kB 0 B
build/community/zunit/zunit-installation.html 33 kB 0 B
build/community/zunit/zunit-running-tests.html 29.8 kB 0 B
build/community/zunit/zunit-test-syntax.html 43.7 kB 0 B
build/docs.html 20.8 kB +25 B (+0.12%)
build/docs/category/-getting-started.html 17.9 kB 0 B
build/docs/category/-guides.html 18.9 kB 0 B
build/docs/category/️-syntax.html 20.1 kB 0 B
build/docs/code.html 20.3 kB 0 B
build/docs/getting_started/installation.html 62 kB 0 B
build/docs/getting_started/migration.html 87.5 kB 0 B
build/docs/getting_started/overview.html 85.8 kB 0 B
build/docs/guides/benchmark.html 56.8 kB 0 B
build/docs/guides/commands.html 97.5 kB 0 B
build/docs/guides/customization.html 85.8 kB 0 B
build/docs/guides/syntax/bindkey.html 38.4 kB 0 B
build/docs/guides/syntax/for.html 70.4 kB 0 B
build/docs/guides/syntax/ice-modifiers.html 47.9 kB 0 B
build/docs/guides/syntax/standard.html 140 kB 0 B
build/ecosystem.html 20.7 kB 0 B
build/ecosystem/annexes/bin-gem-node.html 114 kB 0 B
build/ecosystem/annexes/default-ice.html 31 kB 0 B
build/ecosystem/annexes/eval.html 37.8 kB 0 B
build/ecosystem/annexes/linkbin.html 31.6 kB 0 B
build/ecosystem/annexes/meta-plugins.html 38.9 kB 0 B
build/ecosystem/annexes/overview.html 63.5 kB 0 B
build/ecosystem/annexes/patch-dl.html 27.6 kB 0 B
build/ecosystem/annexes/readurl.html 40.1 kB 0 B
build/ecosystem/annexes/rust.html 42.3 kB 0 B
build/ecosystem/annexes/submods.html 24.3 kB 0 B
build/ecosystem/annexes/unscope.html 40.7 kB 0 B
build/ecosystem/category/-annexes.html 24.3 kB 0 B
build/ecosystem/category/-packages.html 17.3 kB 0 B
build/ecosystem/category/️-plugins.html 29.6 kB 0 B
build/ecosystem/packages/synopsis.html 35.2 kB 0 B
build/ecosystem/packages/usage.html 73.1 kB 0 B
build/ecosystem/plugins/diff-so-fancy.html 39.7 kB 0 B
build/ecosystem/plugins/f-sy-h.html 118 kB 0 B
build/ecosystem/plugins/h-s-mw.html 52.3 kB 0 B
build/ecosystem/plugins/zbrowse.html 27.7 kB 0 B
build/ecosystem/plugins/zconvey.html 32.1 kB 0 B
build/ecosystem/plugins/zi-console.html 35.2 kB 0 B
build/ecosystem/plugins/zprompts.html 29.5 kB 0 B
build/ecosystem/plugins/zsh_lint.html 25 kB 0 B
build/ecosystem/plugins/zsh-cmd-architect.html 36.9 kB 0 B
build/ecosystem/plugins/zsh-editing-workbench.html 32.5 kB 0 B
build/ecosystem/plugins/zsh-modules.html 38.7 kB 0 B
build/ecosystem/plugins/zsh-navigation-tools.html 76.3 kB 0 B
build/ecosystem/plugins/zsh-select.html 39.9 kB 0 B
build/ecosystem/plugins/zsh-unique-id.html 31.6 kB 0 B
build/ecosystem/plugins/zui.html 174 kB 0 B
build/ecosystem/plugins/zzcomplete.html 29.1 kB 0 B
build/index.html 21.5 kB 0 B
build/legal/CODE_OF_CONDUCT.html 20.6 kB 0 B
build/legal/PRIVACY.html 32.7 kB 0 B
build/search.html 16.2 kB 0 B

compressed-size-action

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes two UI regressions on the Docusaurus site: broken metrics images on the Introduction page and a clipped GitHub star-count button on the homepage banner.

Changes:

  • Update docs/index.mdx metrics image URLs to point at the .github repo’s metrics branch (instead of main) where the workflow publishes them.
  • Increase the homepage GitHub “star” iframe width so the star count bubble is visible.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/components/HomeBanner/index.tsx Widens the GitHub star button iframe to prevent clipping of the count.
docs/index.mdx Repoints “Summary” metrics SVG URLs to the metrics branch to avoid 404s.

@ss-o ss-o merged commit c0ad0b7 into next May 25, 2026
9 checks passed
@ss-o ss-o deleted the bug-intro-images-star-count branch May 25, 2026 21:31
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