feat: initial cleanup and cache fixes#165
Closed
darbyjack wants to merge 2 commits into
Closed
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
papermc-website | fed58d5 | Oct 07 2025, 08:47 PM |
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.
This pull request makes significant improvements to the codebase by refactoring several components from client-side to server-side rendering, streamlining data fetching, and cleaning up unused code. The most impactful changes are the migration of the Team page and related components to server-side rendering, improvements to contributor and player count display logic, and the removal of unused or redundant components.
Major refactoring: Server-side rendering and data fetching
src/app/team/page.tsx) from a client-side component to a server-side rendered page, directly fetching contributor data and displaying team members and contributors using server-side logic. This includes replacing the previousTeamClientcomponent and related client-side hooks. [1] [2] [3]src/lib/service/typesinstead ofsrc/lib/context/downloads, improving type consistency and reducing duplication. [1] [2] [3] [4]UI and display improvements
PlayerCountDisplayclient component and replacing it with a direct calculation and display of player numbers. [1] [2] [3]Imagecomponents for avatars and filtering out hidden users, with better error handling for API rate limits.Cleanup and removal of unused components
src/app/team/team-client.tsx,src/app/player-count-display.tsx,src/components/data/SoftwareDownloadCard.tsx,src/components/input/SegmentedControls.tsx,src/components/input/SegmentedControlIem.tsx, andsrc/components/util/SEO.tsx, simplifying the codebase and reducing maintenance overhead. [1] [2] [3] [4] [5] [6]Configuration updates
next.config.tsto allow loading remote images from GitHub avatars, supporting the new contributor display logic.These changes collectively improve performance, maintainability, and user experience by leveraging server-side rendering, cleaning up unused code, and enhancing data display.