Repository navigation
Conversation
Lets callers set the line thickness (1-10, default 4) and point diameter (1-30, default 10) of the activity graph. Values are parsed as finite numbers and clamped, so non-numeric input falls back to the defaults and never reaches the generated CSS. Omitting both params renders exactly as before. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add optional line_width and point_size query params
…nt_size ESLint 9 ignores the legacy .eslintrc.js, so `npm run lint` failed on main. Replace it with an equivalent eslint.config.js (same rules, ignores and Prettier setup, no new dependencies; drops interface-name-prefix, which no longer exists in typescript-eslint v8) and remove the two unused catch bindings in handlers.ts that it then reported. Also add line_width and point_size to the README Customization table and add plans/README.md, the phased plan for the profile cards work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oint-size Phase 0: ESLint 9 flat config + document line_width/point_size
Silences the TS6 rootDir inference warning; matches tsc's existing effective behavior since __tests__ in include never matched a real dir. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Seeded with an Unreleased section for the current branch's changes; no prior changelog or tags existed to reconstruct history from. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This is merging immediately, not sitting pending, so date it as shipped. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…oint-size chore(tsconfig): set explicit rootDir to ./src
…d line Adds Phase 2's activity graph data features: restrictedContributionsCount in the GraphQL query powering an opt-in "+N private" label, an opt-in year-over-year ghost line fetched via an aliased query in the same request, and an opt-in 7-day moving average trend line. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Author
|
Opened by mistake — this repo's gh defaulted to the fork parent. Closing; the intended PR is against KingRaver/github-readme-activity-graph. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
plans/README.mdPhase 2: Activity graph data features.restrictedContributionsCountin the existing GraphQL query.show_private=true).compare=year): the same window one year earlier, fetchedvia an aliased
userPreviousquery in the same request.trend=true), trailing average with a partial windowfor the first 6 days.
show_private,compare, andtrend.All new options are additive and off by default — existing SVG snapshots render byte-identical
when none are used.
Test plan
npm run build(tsc) — passes cleannpm run lint(eslint --fix) — passes cleannpm test— 27/28 pass. The one failure (Utilities Test › GET /graph with correct credential) is a pre-existing gap: that test hits the live GitHub API and needs aTOKENenv var (CI supplies it via
secrets.TOKEN); it 401s locally without one. Same documentedlimitation as Phase 0 (see
plans/README.md), unrelated to this change.__test__/activityGraphFeatures.test.tscovers query-option parsing, themovingAveragehelper, the aliased GraphQL query shape,Fetcher.fetchContributionsparsing of
restrictedContributionsCount/previousYearContributions, andCard.buildGraphrendering (and correctly omitting) the overlay series and private label.
restrictedContributionsCountfield name and aliased-query syntax follow GitHub'sdocumented GraphQL schema but haven't been smoke-tested against the live API locally
(no
TOKENset in this environment).🤖 Generated with Claude Code