build: Add @next/bundle-analyzer + Split large Zustand store into selective slices with shallow selectors - #2099
Merged
Conversation
build: Add @next/bundle-analyzer This commit introduces bundle size analysis to provide visibility into the application's bundle composition and help guard against size regressions. - Installs the `@next/bundle-analyzer` package to allow for the generation of a bundle report. - Creates a `next.config.js` file to configure and wrap the Next.js application with the bundle analyzer. The analyzer is enabled when the `ANALYZE=true` environment variable is set. - Adds an `analyze` script to `package.json` to build the application with bundle analysis enabled. This setup will allow developers to easily inspect the contents of the application bundles and lays the groundwork for adding a bundle size budget check in the CI pipeline.
|
@memplethee-lab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
The @next/bundle-analyzer addition and prior manual lock edits left FrontEnd/my-app/package-lock.json out of sync, breaking `npm ci` in frontend-ci and accessibility workflows. Regenerated with npm 10 to match CI, restoring the missing nested transitive deps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
Thank you for contributing to the project. |
4 tasks
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 #2040
Linked Issue
Closes #2043
Description
What changed?
Why was it changed?
How was it implemented?
Closes #2039
Type of Change
Contract Changelog Discipline
contracts/earn-quest/CHANGELOG.mdunder## [Unreleased]### Breaking Changesentry with impact, affected files, and migration stepstype(scope)!:) in the PR title or commit historyBREAKING CHANGE:explanation belowBREAKING CHANGE details (required for breaking contract changes):
Test Evidence
Unit Tests
npm run test)npm run test:cov)Test output / screenshot:
E2E / Integration Tests
npm run test:e2e)Endpoints tested:
GET/api/...Swagger / API Documentation
@ApiOperation,@ApiResponse, and@ApiBearerAuthdecorators@ApiProperty/@ApiPropertyOptional/api/docsand responses are accurateError Handling Checklist
HTTP Exceptions
NotFoundException,BadRequestException,ForbiddenException,UnauthorizedException,ConflictException, etc.)Errorthrown where an HTTP exception is expectedInput Validation (DTOs)
class-validatordecorators (@IsString,@IsUUID,@IsNotEmpty,@IsOptional, etc.)class-transformerdecorators applied where necessary (@Transform,@Type,@Expose)ValidationPipeis applied globally or at the controller level - raw unvalidated input is never usedGuards & Authorization
@UseGuards(JwtAuthGuard)or equivalent@Public()decorator where applicableLogging
LoggerService)errorlevel with stack tracesLoggerMiddleware- no duplicate logs addedStellar / Soroban Contract Interactions
Database / Migration
npm run typeorm:generate-migration)seed.ts)Breaking Type / Model Changes (Frontend — FE-068)
breaking-types☐breaking-runtime☐added☐changed☐deprecated☐removed☐fixed☐security## [Unreleased]inFrontEnd/my-app/CHANGELOG.mdOR a new file inFrontEnd/my-app/.changeset/.Migration:code block.cd FrontEnd/my-app && npm run changelog:checkpasses locally.changelog-skiplabel or[changelog-skip]to the PR title.Final Pre-Merge Checklist
main/masternpm run lint)npm run format)console.log/ debug statements left in production code.env.exampleupdated if new environment variables were introducedReadMe Backend.mdorReadMe Frontend.mdupdated if setup steps changedScreenshots / Recordings (if applicable)
Additional Notes for Reviewer