Skip to content

feat: initial cleanup and cache fixes#165

Closed
darbyjack wants to merge 2 commits into
mainfrom
chore/cleanup-files-and-cache
Closed

feat: initial cleanup and cache fixes#165
darbyjack wants to merge 2 commits into
mainfrom
chore/cleanup-files-and-cache

Conversation

@darbyjack
Copy link
Copy Markdown
Member

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

  • Migrated the Team page (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 previous TeamClient component and related client-side hooks. [1] [2] [3]
  • Updated imports throughout the codebase to use shared types from src/lib/service/types instead of src/lib/context/downloads, improving type consistency and reducing duplication. [1] [2] [3] [4]

UI and display improvements

  • Refactored player count display on the Home page to use server-side data and a simplified display, removing the PlayerCountDisplay client component and replacing it with a direct calculation and display of player numbers. [1] [2] [3]
  • Improved contributor display on the Team page by using optimized Next.js Image components for avatars and filtering out hidden users, with better error handling for API rate limits.

Cleanup and removal of unused components

  • Removed several unused or redundant 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, and src/components/util/SEO.tsx, simplifying the codebase and reducing maintenance overhead. [1] [2] [3] [4] [5] [6]

Configuration updates

  • Updated next.config.ts to 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.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
papermc-website fed58d5 Oct 07 2025, 08:47 PM

@darbyjack darbyjack closed this Oct 18, 2025
@MiniDigger MiniDigger deleted the chore/cleanup-files-and-cache branch October 27, 2025 08:56
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