You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(svg): add option to toggle heavy SVG Glow Filters (glow=true/false) (JhaSourav07#1925)
## Description
FixesJhaSourav07#1731
Introduces a new `glow` URL query parameter (`glow=true/false`) that
allows users to enable or disable heavy SVG Gaussian blur filters
(`<feGaussianBlur>`) and text shadow-effects on active contribution
statistics/total labels.
When `glow=false` is requested:
- The `<filter id="glow">` (and `<filter id="hm-glow">` for heatmaps)
tags are completely omitted from `<defs>`.
- The corresponding `filter="url(#glow)"` (and cell-level
`filter="url(#hm-glow)"` on heatmaps) attributes are conditionally
removed from the text and cell elements.
- Heavy multi-layered stroke offsets are omitted, reducing drawing
instructions and saving payload bytes.
This provides an optimized, flatter, and crisper vector styling
alternative designed to dramatically enhance scroll performance on
low-end mobile devices and ensure support on markdown renderers that
block filter assets.
FixesJhaSourav07#1731
## Pillar
- [ ] 🎨 Pillar 1 — New Theme Design
- [x] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [x] 🛠️ Other (Enhancement, performance)
## Visual Preview
*N/A — Visual layout remains identical to baseline, but Gaussian blur
filter masks are removed to output flat, sharp vector paths.*
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [x] I have updated `README.md` if I added a new theme or URL
parameter.
- [x] I have started the repo.
- [x] I have made sure that i have only one commit to merge in this PR.
- [x] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (no raw elements, smooth animations, correct fonts).
- [x] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.
0 commit comments