Skip to content

Conversation

@vdvman1
Copy link
Collaborator

@vdvman1 vdvman1 commented Nov 18, 2025

Upgraded to Next.JS 16 and eslint 9 with it's flat config. Along the way I cleaned up a bunch of the code, removing everything involving potential databases, and removed TRPC since we aren't using it.

I was also able to fix the calculations of the viewport height, turns out the resize observer and the window resize event both don't trigger for the horizontal scrollbar appearing or disappearing. Thankfully there's a newer API called the visual viewport API, which is baseline widely available, and has the exact resize event behaviour we need. I also made sure to properly use useSyncExternalStore instead of useEffect+setState, in preparation for the react compiler.

This also fixes an issue where the themed logos on the home page were showing a skeleton when first loading, as the theme can't be tested for in JS until after mounting. The switching is now handled by CSS.

I've also started using ts-pattern to make complex condition checking easier to read

Stefan van der Velden and others added 13 commits November 18, 2025 16:50
Migrate to new flat config for eslint, and fix all lint warnings/errors
…he viewport size

This fixes the version list sidebar height not correctly adapting to the horizontal scrollbar.
Also uses `useSyncExternalStore` for proper synchronization with React state.
Switching between the themed images is now done using pure CSS instead of JS.
This has the benefit of allowing the component to be a server component, but always embeds both versions of the image
@vercel
Copy link

vercel bot commented Nov 18, 2025

@vdvman1 is attempting to deploy a commit to the vdvman1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Nov 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mcc-tools Ready Ready Preview Comment Nov 18, 2025 9:01am

Copy link
Collaborator Author

@vdvman1 vdvman1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately for now it is difficult to convert our webpack config to turbopack, since turbopack doesn't seem to support the checks we're doing for inlining vs using a url. We can figure that out later, it isn't important as we can just continue to use webpack

@vdvman1 vdvman1 merged commit 8404814 into MinecraftCommands:main Nov 18, 2025
4 of 5 checks passed
@vdvman1 vdvman1 deleted the convex branch November 18, 2025 20:32
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