polarsource / polar

An Open Source Lemon Squeezy alternative with better pricing! Get paid coding on your passion.
https://polar.sh
Apache License 2.0
2.85k stars 117 forks source link

Checkout appearance tweaks #4191

Closed emilwidlund closed 1 week ago

vercel[bot] commented 1 week ago

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 Oct 15, 2024 0:34am
polar-sandbox 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 0:34am
github-actions[bot] commented 1 week ago

📦 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 190.85 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!

Eighty-six 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)
/(topbar)/error/page 2.6 KB 193.45 KB 55.27% (+/- <0.01%)
/(topbar)/layout 250.7 KB 441.55 KB 126.16% (+/- <0.01%)
/[organization]/(header)/issues/page 133.78 KB 324.63 KB 92.75% (+/- <0.01%)
/[organization]/(header)/layout 269.86 KB 460.71 KB 131.63% (+/- <0.01%)
/[organization]/(header)/page 120.3 KB 311.14 KB 88.90% (+/- <0.01%)
/[organization]/(header)/donate/page 194.11 KB 384.96 KB 109.99% (+/- <0.01%)
/[organization]/(header)/posts/[postSlug]/page 237.54 KB 428.39 KB 122.40% (+/- <0.01%)
/[organization]/(header)/posts/page 192.14 KB 382.99 KB 109.43% (+/- <0.01%)
/[organization]/(header)/products/[productId]/page 181.93 KB 372.78 KB 106.51% (+/- <0.01%)
/[organization]/(header)/portal/page 135.95 KB 326.79 KB 93.37% (+/- <0.01%)
/[organization]/[repo]/issues/[number]/(create)/page 205.4 KB 396.25 KB 113.21% (+/- <0.01%)
/[organization]/[repo]/layout 242.15 KB 433 KB 123.71% (+/- <0.01%)
/[organization]/[repo]/issues/[number]/status/page 234.36 KB 425.2 KB 121.49% (+/- <0.01%)
/backoffice/pledges/page 66.73 KB 257.58 KB 73.59% (+/- <0.01%)
/backoffice/layout 540.12 KB 730.96 KB 208.85% (+/- <0.01%)
/backoffice/issue/[id]/page 64.47 KB 255.31 KB 72.95% (+/- <0.01%)
/backoffice/rewards_pending/page 68.25 KB 259.1 KB 74.03% (+/- <0.01%)
/[organization]/[repo]/page 210.6 KB 401.45 KB 114.70% (+/- <0.01%)
/backoffice/badge/page 54.64 KB 245.49 KB 70.14% (+/- <0.01%)
/backoffice/page 2.6 KB 193.45 KB 55.27% (+/- <0.01%)
/docs/layout 239.88 KB 430.73 KB 123.07% (🟢 -0.01%)
/(landing)/page 174.54 KB 365.39 KB 104.40% (+/- <0.01%)
/checkout/[clientSecret]/confirmation/page 146.92 KB 337.77 KB 96.50% (🟡 +0.01%)
/checkout/layout 2.6 KB 193.45 KB 55.27% (🟢 -70.68%)
/checkout/[clientSecret]/page 181.92 KB 372.77 KB 106.51% (+/- <0.01%)
/dashboard/(create)/create/page 156.66 KB 347.51 KB 99.29% (+/- <0.01%)
/(topbar)/(backer)/purchases/products/[id]/page 263.94 KB 454.79 KB 129.94% (+/- <0.01%)
/(topbar)/(backer)/purchases/products/page 98.13 KB 288.98 KB 82.57% (🟢 -0.01%)
/(topbar)/(backer)/purchases/subscriptions/[id]/page 267.05 KB 457.9 KB 130.83% (+/- <0.01%)
/(topbar)/(backer)/purchases/subscriptions/page 97.7 KB 288.55 KB 82.44% (+/- <0.01%)
/(topbar)/(backer)/settings/page 275.82 KB 466.67 KB 133.33% (+/- <0.01%)
/dashboard/[organization]/(header)/benefits/license-keys/page 569.07 KB 759.92 KB 217.12% (+/- <0.01%)
/dashboard/[organization]/(header)/layout 540.12 KB 730.97 KB 208.85% (+/- <0.01%)
/dashboard/[organization]/layout 57.14 KB 247.99 KB 70.85% (+/- <0.01%)
/dashboard/[organization]/(header)/analytics/page 669.72 KB 860.57 KB 245.88% (+/- <0.01%)
/dashboard/[organization]/(header)/donations/overview/page 663.41 KB 854.26 KB 244.07% (+/- <0.01%)
/dashboard/[organization]/(header)/benefits/page 621.5 KB 812.35 KB 232.10% (+/- <0.01%)
/dashboard/[organization]/(header)/initialize/page 150.31 KB 341.16 KB 97.47% (+/- <0.01%)
/dashboard/[organization]/(header)/issues/organizations/page 542.69 KB 733.54 KB 209.58% (+/- <0.01%)
/dashboard/[organization]/(header)/issues/badge/page 563.41 KB 754.26 KB 215.50% (+/- <0.01%)
/dashboard/[organization]/(header)/issues/overview/page 580.58 KB 771.43 KB 220.41% (+/- <0.01%)
/dashboard/[organization]/(header)/members/page 541.1 KB 731.95 KB 209.13% (+/- <0.01%)
/dashboard/[organization]/(header)/posts/page 651.7 KB 842.55 KB 240.73% (+/- <0.01%)
/dashboard/[organization]/(header)/products/benefits/page 621.5 KB 812.35 KB 232.10% (+/- <0.01%)
/dashboard/[organization]/(header)/posts/analytics/page 659.5 KB 850.35 KB 242.96% (+/- <0.01%)
/dashboard/[organization]/(header)/promote/page 547.19 KB 738.04 KB 210.87% (+/- <0.01%)
/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 573.15 KB 764 KB 218.28% (+/- <0.01%)
/dashboard/[organization]/(overlay)/storefront/page 352.47 KB 543.32 KB 155.23% (+/- <0.01%)
/dashboard/[organization]/(overlay)/layout 540.74 KB 731.59 KB 209.03% (🟢 -0.01%)
/dashboard/[organization]/(header)/settings/page 564.79 KB 755.64 KB 215.90% (🟢 -0.01%)
/dashboard/[organization]/(white)/posts/[post]/page 633.6 KB 824.45 KB 235.56% (+/- <0.01%)
/dashboard/[organization]/(white)/layout 540.12 KB 730.97 KB 208.85% (+/- <0.01%)
/dashboard/[organization]/products/[id]/page 611.57 KB 802.42 KB 229.26% (🟡 +0.01%)
/dashboard/[organization]/products/layout 540.12 KB 730.97 KB 208.85% (+/- <0.01%)
/dashboard/[organization]/products/new/page 610.37 KB 801.22 KB 228.92% (🟡 +0.01%)
/dashboard/[organization]/(header)/sales/subscriptions/page 570.25 KB 761.1 KB 217.46% (+/- <0.01%)
/dashboard/[organization]/(header)/products/page 558.61 KB 749.46 KB 214.13% (+/- <0.01%)
/dashboard/[organization]/(header)/sales/page 570.53 KB 761.38 KB 217.54% (+/- <0.01%)
/dashboard/[organization]/(header)/(home)/page 628.98 KB 819.83 KB 234.24% (+/- <0.01%)
/(landing)/(mdx)/legal/terms/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/(landing)/(mdx)/careers/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/customers/purchases/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/fees/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/finance/payouts/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/github/funding-yaml/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/guides/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/merchant-of-record/tax/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/(mdx)/subscriptions/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/api/(mdx)/authentication/page 235.08 KB 425.93 KB 121.69% (🟡 +0.01%)
/docs/api/(mdx)/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/docs/support/(mdx)/page 31.09 KB 221.94 KB 63.41% (+/- <0.01%)
/(topbar)/(backer)/(sidebar)/funding/page 257.32 KB 448.17 KB 128.05% (+/- <0.01%)
/(topbar)/(backer)/(sidebar)/layout 139.27 KB 330.12 KB 94.32% (+/- <0.01%)
/(topbar)/(backer)/finance/account/page 208.51 KB 399.36 KB 114.10% (+/- <0.01%)
/(topbar)/(backer)/finance/layout 222.86 KB 413.71 KB 118.20% (+/- <0.01%)
/(topbar)/(backer)/finance/outgoing/page 191.2 KB 382.05 KB 109.16% (+/- <0.01%)
/(topbar)/(backer)/finance/rewards/page 121.57 KB 312.42 KB 89.26% (+/- <0.01%)
/(topbar)/(backer)/finance/incoming/page 241.22 KB 432.07 KB 123.45% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/account/page 162.87 KB 353.72 KB 101.06% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/layout 540.12 KB 730.96 KB 208.85% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/incoming/page 195.46 KB 386.31 KB 110.38% (🟢 -0.01%)
/dashboard/[organization]/(header)/finance/outgoing/page 145.35 KB 336.2 KB 96.06% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 75.56 KB 266.41 KB 76.12% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/issue-funding/layout 540.12 KB 730.96 KB 208.85% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 75.55 KB 266.4 KB 76.11% (+/- <0.01%)
/dashboard/[organization]/(header)/finance/issue-funding/page 76.27 KB 267.12 KB 76.32% (+/- <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.