Skip to content

fix(core): error handling and typed query for the per-year contributions fetch - #484

Open
marcalexiei wants to merge 1 commit into
stats-organization:contributions-statfrom
marcalexiei:contributions-stat
Open

fix(core): error handling and typed query for the per-year contributions fetch#484
marcalexiei wants to merge 1 commit into
stats-organization:contributions-statfrom
marcalexiei:contributions-stat

Conversation

@marcalexiei

Copy link
Copy Markdown
  • fetchTotalContributions read contribRes.data.data.user without checking for errors.
    Now follows the standard approach: first error message, wrapped for the card, or a generic GRAPHQL_ERROR.
  • The runtime-built contributions query is typed end to end:
    the new graphql/contributionsDocument.ts assembles the per-year aliases around ...YearContributions spreads (typed by the fragment in stats.graphql).
    It is sent via createGraphQLFetcher, the untyped request call and its cast are gone.

@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

@marcalexiei is attempting to deploy a commit to the martin-mfg's projects Team on Vercel.

A member of the Team first needs to authorize it.

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