feat: Replace static contributor JSON with dynamic GitHub API fetch #2101
+409
−6
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.
What kind of change does this PR introduce?
Feature Enhancement - This PR introduces a feature enhancement to the Community page data loading mechanism by fetching contributor data dynamically from the GitHub API at build time instead of relying on a hard-coded JSON file.
Issue Number:
Screenshots/videos:
Not applicable, as this change affects data sourcing and not visual layout. The Community page UI will look the same, but with an up-to-date list of contributors fetched dynamically from the GitHub API.
If relevant, did you update the documentation?
Not required for this change, as the behavior of the Community page remains the same from a user's perspective and the enhancement is internal to the build-time data sourcing logic.
Summary
This PR updates the Community page so that contributor data is fetched from the GitHub API at build time using
getStaticProps, instead of being read from the staticcommunity-users.jsonfile. The GitHub API response is normalized to match the existing community-users.json structure and assigned to the same variable currently consumed by the UI (for example,imageData), allowing the existing rendering, filtering, and shuffling logic to work unchanged. This ensures that the contributor list remains accurate and up to date over time, reduces manual maintenance, and minimizes the overall code changes needed.Does this PR introduce a breaking change?
No, this PR does not introduce a breaking change. The Community page continues to receive data in the same shape that it previously read from community-users.json, and all existing UI behavior is preserved; only the source of the data has changed to a build-time GitHub API fetch.
Checklist
Please ensure the following tasks are completed before submitting this pull request.