Conversation
There was a problem hiding this comment.
Pull request overview
This PR represents a comprehensive refactoring and modernization of the Next.js template, focusing on improved architecture, new features, and better developer experience.
Key Changes:
- Migrated to Next.js 15 and React 19 with updated ecosystem dependencies
- Introduced backend-for-frontend pattern using oRPC for API handling
- Replaced Zustand with Valtio for state management and added TanStack Query for data fetching
- Restructured project organization with isomorphic, client, server, and common directories
Reviewed changes
Copilot reviewed 292 out of 402 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/src/server/config/schemas.ts.jinja | Defines configuration schemas using Zod for server-side config validation |
| src/src/isomorphic/theme/components/theme-provider/main.tsx | New theme provider supporting dynamic colors, localization-aware date formatting |
| src/src/isomorphic/state/hooks/use-global-state/main.ts | Implements global state management using Valtio with subscription support |
| src/src/isomorphic/localization/components/localization-provider/main.tsx | Provides localization context with Lingui integration |
| src/src/common/query/lib/create-query-client/main.ts | Creates TanStack Query client with custom serialization and dehydration |
| src/src/common/orpc/vars/router/main.ts | Defines oRPC contract router for backend-for-frontend API |
| src/src/client/test/components/test/test-widget/main.tsx | Example widget demonstrating form handling with oRPC integration |
| src/src/app/(root)/layout.tsx.jinja | Root layout with provider composition and metadata generation |
| src/next.config.ts | Updated Next.js configuration with webpack customizations and optimizations |
| src/package.json.jinja | Updated dependencies to latest versions including new libraries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Closes #10
Closes #13
Closes #14
Closes #15
Closes #17
Closes #18
Closes #19
Closes #20
Closes #21