Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move superjson instance to @weareinreach/util #938

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

JoeKarow
Copy link
Member

@JoeKarow JoeKarow commented Dec 4, 2023

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

Copy link

vercel bot commented Dec 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
inreach-app ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 11:26pm

@JoeKarow JoeKarow added automerge Enable Kodiak auto-merge refactor Updating the code with simpler, more efficient syntax or methods, but not introducing new features. and removed 📦 app 📦 db 📦 api 📦 ui 📦 util labels Dec 4, 2023
@ghost
Copy link

ghost commented Dec 4, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link
Contributor

github-actions bot commented Dec 4, 2023

📦 Next.js Bundle Analysis for @weareinreach/app

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 412.04 KB (🟡 +18.91 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Nineteen Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (575 KB)
/ 95.54 KB 507.58 KB 88.28% (🟢 -3.59%)
/401 8.74 KB 420.78 KB 73.18% (+/- <0.01%)
/account 1.21 KB 413.25 KB 71.87% (+/- <0.01%)
/account/reviews 1.22 KB 413.26 KB 71.87% (+/- <0.01%)
/account/saved 1.22 KB 413.26 KB 71.87% (+/- <0.01%)
/admin 113.13 KB 525.17 KB 91.33% (🟢 -3.59%)
/admin/quicklink 858 B 412.88 KB 71.80% (+/- <0.01%)
/admin/quicklink/email 38.37 KB 450.41 KB 78.33% (+/- <0.01%)
/admin/quicklink/phone 38.35 KB 450.39 KB 78.33% (+/- <0.01%)
/admin/quicklink/services 38.17 KB 450.21 KB 78.30% (+/- <0.01%)
/org/[slug] 93.39 KB 505.43 KB 87.90% (🟢 -3.59%)
/org/[slug]/[orgLocationId] 88 KB 500.04 KB 86.96% (🟢 -3.59%)
/org/[slug]/[orgLocationId]/edit 87.5 KB 499.54 KB 86.88% (🟢 -3.60%)
/org/[slug]/edit 92.64 KB 504.68 KB 87.77% (🟢 -3.59%)
/org/[slug]/remote 69.79 KB 481.83 KB 83.80% (🟢 -3.60%)
/search/[...params] 85.26 KB 497.3 KB 86.49% (🟢 -3.59%)
/search/intl/[country] 84.71 KB 496.75 KB 86.39% (🟢 -3.59%)
/suggest 60.04 KB 472.08 KB 82.10% (🟢 -3.59%)
/support 5.4 KB 417.44 KB 72.60% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Copy link

alwaysmeticulous bot commented Dec 4, 2023

🤖 Meticulous spotted visual differences in 4 of 221 screens tested: view and approve differences detected.

Last updated for commit 1cae821. This comment will update as new commits are pushed.

Copy link

sonarcloud bot commented Dec 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JoeKarow JoeKarow marked this pull request as ready for review December 4, 2023 23:35
@kodiakhq kodiakhq bot merged commit 982970c into dev Dec 4, 2023
22 of 23 checks passed
@kodiakhq kodiakhq bot deleted the JoeKarow/superjson branch December 4, 2023 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 api 📦 app automerge Enable Kodiak auto-merge 📦 db refactor Updating the code with simpler, more efficient syntax or methods, but not introducing new features. 📦 ui 📦 util
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants