Skip to content

feat: auto-theme star-tracker embed snippet#55

Merged
wavekat-eason merged 5 commits into
mainfrom
stars-picture-template
May 15, 2026
Merged

feat: auto-theme star-tracker embed snippet#55
wavekat-eason merged 5 commits into
mainfrom
stars-picture-template

Conversation

@wavekat-eason
Copy link
Copy Markdown
Contributor

Summary

  • Adds a third embed snippet on each star-tracker page: Auto theme, a <picture> element that uses prefers-color-scheme to serve the dark variant to dark-mode viewers and light to light-mode viewers.
  • Updates the JS so the snippet stays in sync with the split / style / range controls; the theme toggle is intentionally ignored since <picture> handles both variants.
  • Refines the params hint to mention the auto-theme behavior.

Why: GitHub camo-proxies SVGs, so prefers-color-scheme inside the SVG itself is stripped. The only way to get a chart that matches a reader's GitHub theme is <picture> on the README side. This makes that the copy-paste default for users embedding the chart.

Validated on wavekat/wavekat-vad (wavekat/wavekat-vad#51) — the snippet renders correctly in both modes.

Test plan

  • Open a tenant page on stars.wavekat.com, copy the Auto theme snippet, paste into a README on GitHub, confirm it swaps with the reader's theme
  • Toggle split / curve / range controls; confirm the Auto theme snippet's two URLs both update
  • Toggle the theme control; confirm Markdown / HTML snippets change but Auto theme does not (by design)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 15, 2026

wavekat-eason and others added 4 commits May 16, 2026 11:29
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wavekat-eason wavekat-eason merged commit 4989603 into main May 15, 2026
4 checks passed
@wavekat-eason wavekat-eason deleted the stars-picture-template branch May 15, 2026 23:35
wavekat-eason pushed a commit that referenced this pull request May 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.0.21](wavekat-com-v0.0.20...wavekat-com-v0.0.21)
(2026-05-15)


### Features

* add star-tracker worker
([#52](#52))
([6f13ee1](6f13ee1))
* add wavekat-asr to ecosystem
([#50](#50))
([f26f29b](f26f29b))
* auto-theme star-tracker embed snippet
([#55](#55))
([4989603](4989603))
* star-tracker recent trend, range, per-repo charts
([#54](#54))
([7189f91](7189f91))


### Bug Fixes

* keep star-tracker count fresh on webhook
([#56](#56))
([1fdf264](1fdf264))
* stop long embed snippets blowing out page width
([#57](#57))
([7b6b096](7b6b096))
* wrap star-tracker header on mobile
([#53](#53))
([82e92b9](82e92b9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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.

1 participant