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

Extract Checkout components #4862

Merged
merged 19 commits into from
Jan 27, 2025
Merged

Extract Checkout components #4862

merged 19 commits into from
Jan 27, 2025

Conversation

frankie567
Copy link
Member

No description provided.

Copy link

vercel bot commented Jan 21, 2025

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

Name Status Preview Comments Updated (UTC)
polar ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 8:41am
polar-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 8:41am

Copy link
Contributor

github-actions bot commented Jan 24, 2025

📦 Next.js Bundle Analysis for web

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

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 154.81 KB (🟡 +2 B)
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!

Ninety-one 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 (350 KB)
/layout 67.92 KB 222.72 KB 63.64% (🟢 -0.01%)
/checkout/[clientSecret]/confirmation/page 258.49 KB 413.29 KB 118.08% (🟡 +7.29%)
/checkout/[clientSecret]/page 208.66 KB 363.46 KB 103.85% (🟢 -6.02%)
/(main)/signup/page 95.73 KB 250.54 KB 71.58% (🟢 -0.01%)
/(main)/layout 37.55 KB 192.35 KB 54.96% (🟢 -0.01%)
/(main)/login/page 125.21 KB 280.02 KB 80.01% (🟢 -0.02%)
/(main)/(installation)/github/installation/page 91.72 KB 246.52 KB 70.44% (🟢 -0.01%)
/(main)/(topbar)/layout 203.73 KB 358.53 KB 102.44% (🟡 +0.13%)
/(main)/[organization]/(header)/layout 237.75 KB 392.55 KB 112.16% (🟡 +0.14%)
/(main)/[organization]/(header)/issues/page 122.13 KB 276.94 KB 79.13% (🟢 -0.09%)
/(main)/[organization]/(header)/page 133.93 KB 288.73 KB 82.50% (🟢 -0.03%)
/(main)/[organization]/(header)/products/[productId]/page 165.81 KB 320.62 KB 91.60% (🟢 -7.56%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 160.71 KB 315.51 KB 90.15% (+/- <0.01%)
/(main)/[organization]/[repo]/layout 192.67 KB 347.47 KB 99.28% (+/- <0.01%)
/(main)/[organization]/[repo]/page 205 KB 359.81 KB 102.80% (🟡 +0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 189.88 KB 344.68 KB 98.48% (🟡 +0.18%)
/(main)/[organization]/portal/page 220.82 KB 375.63 KB 107.32% (🟡 +0.28%)
/(main)/backoffice/badge/page 44.22 KB 199.03 KB 56.86% (+/- <0.01%)
/(main)/backoffice/layout 220.69 KB 375.5 KB 107.28% (🟡 +0.10%)
/(main)/backoffice/issue/[id]/page 54.36 KB 209.16 KB 59.76% (🟢 -0.01%)
/(main)/backoffice/pledges/page 56.61 KB 211.42 KB 60.40% (+/- <0.01%)
/(main)/backoffice/rebadge/page 42.44 KB 197.24 KB 56.36% (+/- <0.01%)
/(main)/backoffice/rewards_pending/page 58.46 KB 213.26 KB 60.93% (+/- <0.01%)
/(main)/(landing)/page 253 KB 407.8 KB 116.51% (🟡 +9.41%)
/(main)/(landing)/layout 178.26 KB 333.07 KB 95.16% (🟡 +0.28%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 175.56 KB 330.37 KB 94.39% (🟡 +0.12%)
/(main)/(topbar)/(backer)/layout 44.94 KB 199.74 KB 57.07% (🟢 -0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 87.89 KB 242.7 KB 69.34% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 193.64 KB 348.44 KB 99.55% (🟡 +0.05%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 89.93 KB 244.74 KB 69.92% (🟡 +0.11%)
/(main)/(topbar)/(backer)/purchases/products/page 86.99 KB 241.8 KB 69.09% (🟢 -0.01%)
/(main)/(topbar)/(backer)/settings/page 222.9 KB 377.71 KB 107.92% (🟢 -0.28%)
/(main)/[organization]/portal/(topbar)/authenticate/page 72.74 KB 227.55 KB 65.01% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/layout 58.84 KB 213.65 KB 61.04% (🟢 -7.23%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 216.23 KB 371.03 KB 106.01% (🟡 +0.29%)
/(main)/[organization]/portal/(topbar)/request/page 68.94 KB 223.74 KB 63.93% (🟢 -0.01%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 193.53 KB 348.33 KB 99.52% (🟡 +0.04%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 213.8 KB 368.6 KB 105.32% (🟡 +0.27%)
/(main)/dashboard/(create)/create/page 118.37 KB 273.18 KB 78.05% (+/- <0.01%)
/(main)/dashboard/[organization]/storefront/page 381.19 KB 536 KB 153.14% (🟡 +11.01%)
/(main)/dashboard/[organization]/layout 46.67 KB 201.47 KB 57.56% (+/- <0.01%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 214.9 KB 369.7 KB 105.63% (🟡 +0.17%)
/(main)/(topbar)/(backer)/(sidebar)/layout 101.76 KB 256.57 KB 73.30% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/incoming/page 196.29 KB 351.1 KB 100.31% (🟢 -0.05%)
/(main)/(topbar)/(backer)/finance/layout 175.95 KB 330.75 KB 94.50% (🟡 +0.09%)
/(main)/(topbar)/(backer)/finance/account/page 165.02 KB 319.82 KB 91.38% (🟢 -0.03%)
/(main)/(topbar)/(backer)/finance/rewards/page 80.9 KB 235.7 KB 67.34% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/outgoing/page 146.07 KB 300.88 KB 85.96% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/(home)/page 301.95 KB 456.75 KB 130.50% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/layout 52 KB 206.8 KB 59.09% (🟢 -0.01%)
/(main)/dashboard/[organization]/(header)/layout 220.68 KB 375.49 KB 107.28% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/[...all]/page 39.33 KB 194.13 KB 55.47% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/analytics/page 351.88 KB 506.68 KB 144.77% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 253.77 KB 408.58 KB 116.74% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/benefits/page 322.91 KB 477.72 KB 136.49% (🟡 +0.18%)
/(main)/dashboard/[organization]/(header)/customers/[id]/page 353.77 KB 508.57 KB 145.31% (🟢 -0.04%)
/(main)/dashboard/[organization]/(header)/customers/page 256.53 KB 411.33 KB 117.52% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/initialize/page 142.32 KB 297.12 KB 84.89% (🟡 +0.09%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 248.77 KB 403.58 KB 115.31% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 223.3 KB 378.1 KB 108.03% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 223.31 KB 378.12 KB 108.03% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/members/page 221.65 KB 376.45 KB 107.56% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/meters/[slug]/page 392.12 KB 546.93 KB 156.26% (🟡 +0.14%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 264.39 KB 419.2 KB 119.77% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/meters/page 252.4 KB 407.21 KB 116.34% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/products/[id]/checkout-links/page 262.94 KB 417.74 KB 119.35% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 322.43 KB 477.24 KB 136.35% (🟡 +0.19%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/[id]/page 52.34 KB 207.14 KB 59.18% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/layout 39.33 KB 194.13 KB 55.47% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 359.72 KB 514.53 KB 147.01% (🟡 +13.95%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 283.36 KB 438.16 KB 125.19% (🟢 -0.01%)
/(main)/dashboard/[organization]/(header)/products/page 231.31 KB 386.12 KB 110.32% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/new/page 39.33 KB 194.13 KB 55.47% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/new/page 359.42 KB 514.22 KB 146.92% (🟡 +13.95%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 268.84 KB 423.64 KB 121.04% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 259.91 KB 414.72 KB 118.49% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/sales/page 263.72 KB 418.52 KB 119.58% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 261.62 KB 416.43 KB 118.98% (🟡 +0.09%)
/(main)/dashboard/[organization]/(header)/settings/page 242.31 KB 397.12 KB 113.46% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 241.95 KB 396.75 KB 113.36% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/settings/webhooks/endpoints/[id]/page 52.34 KB 207.14 KB 59.18% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/settings/layout 39.33 KB 194.13 KB 55.47% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 259.02 KB 413.82 KB 118.24% (🟡 +0.09%)
/(main)/dashboard/[organization]/(header)/finance/account/page 149.95 KB 304.75 KB 87.07% (🟢 -0.03%)
/(main)/dashboard/[organization]/(header)/finance/layout 220.69 KB 375.5 KB 107.29% (🟡 +0.09%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 181.13 KB 335.93 KB 95.98% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 130.49 KB 285.3 KB 81.51% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 65.5 KB 220.31 KB 62.95% (🟢 -0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 220.69 KB 375.5 KB 107.28% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 65.5 KB 220.3 KB 62.94% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 66.23 KB 221.03 KB 63.15% (+/- <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.

@frankie567 frankie567 merged commit 48a1811 into main Jan 27, 2025
15 checks passed
@frankie567 frankie567 deleted the clients/extract-checkout branch January 27, 2025 09:36
Copy link

sentry-io bot commented Jan 28, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Stripe elements not provided /checkout/polar_c_U4i59AFyXf4c1HfVSL3yWNLmZkb2E... View Issue
  • ‼️ ConnectionError: Unable to make request: TypeError: fetch failed Page Server Component (/checkout/[clientSecret]) View Issue
  • ‼️ **SDKError: API error occurred: Status 403 Content-Type application/json Body ** /checkout/polar_c_wedbWt7tGk0WLzyC9bwhYAuC2v5qO... View Issue
  • ‼️ HTTPValidationError: API error occurred: {"detail":[{"loc":["body","customer_billing_address"],"msg":"Required tax loc... /checkout/polar_c_A9Cplc9QHZ6ieTovljeaK7miZNZzx... View Issue
  • ‼️ **SDKError: API error occurred: Status 403 Content-Type application/json Body ** /checkout/polar_c_hua3cqpCPqKbjn467WJa92a5Ca7sU... View Issue

Did you find this useful? React with a 👍 or 👎

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