Skip to content

feat(site): Docs chart data-start line and fifth site color - #54

Merged
jbouder merged 1 commit into
mainfrom
feat/docs-chart-context
Oct 24, 2026
Merged

jbouder merged 1 commit into
mainfrom
feat/docs-chart-context

Conversation

@jbouder

@jbouder jbouder commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-ups from #53:

  • Distinct color per docs site. Five sites shared four colors, so JHub Apps docs reused Nebari docs' purple (visible now that the chart has a legend). The fifth site gets --chart-2 (teal).
  • "Data starts" line on the Docs chart. Everything before Sep 23 is empty because Cloudflare keeps ~30 days and that's where Pulse's first collection reached. coverage() is generalized to seriesCoverage() (keyed by site, source, or anything), and the Docs chart gets the same start line and incomplete-day shading as the download charts.
  • Nearby starts merge. Starts within a week of each other share one line at the earliest date, labeled "Data starts" when every series begins there. The five docs sites started a day apart and would otherwise draw five overlapping lines. Download charts are unaffected (PyPI, Quay and conda-forge/GitHub start months apart).
  • The Docs popover and the Data sources page note Cloudflare's ~30-day history.

Test plan

  • npm run build && npm run test -- --run && npm run check (69 tests; new tests for merging nearby starts and the "Data starts" label)
  • Checked the Docs page in the browser

🤖 Generated with Claude Code

https://claude.ai/code/session_017SrLb3YHXCiEGrm4J5Gjxu

- coverage() becomes seriesCoverage(), keyed by any id, so the Docs chart
  (keyed by site) gets the same start line and incomplete-day shading as
  the download charts. Starts within a week of each other share one line,
  labeled "Data starts" when every series begins there.
- The fifth docs site (JHub Apps) gets --chart-2 instead of reusing
  Nebari docs' purple.
- Docs popover and Data sources page say Cloudflare keeps about 30 days.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017SrLb3YHXCiEGrm4J5Gjxu
@github-actions

Copy link
Copy Markdown

Preview deploy: https://pr-54-nebari-pulse.openteams-account.workers.dev

Built from a4959fc5d2d025d605413e4d2bcd02f27c6eae72. Redeploys on each push to this PR; removed when the PR closes.

@jbouder
jbouder merged commit 95df831 into main Oct 24, 2026
4 checks passed
@jbouder
jbouder deleted the feat/docs-chart-context branch October 24, 2026 14:10
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