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

Meter prototype behind feature flag #4810

Merged
merged 12 commits into from
Jan 10, 2025
Merged

Meter prototype behind feature flag #4810

merged 12 commits into from
Jan 10, 2025

Conversation

emilwidlund
Copy link
Member

No description provided.

Copy link

vercel bot commented Jan 10, 2025

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

Name Status Preview Comments Updated (UTC)
polar 🛑 Canceled (Inspect) Jan 10, 2025 4:34pm
polar-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 4:34pm

@emilwidlund emilwidlund enabled auto-merge (rebase) January 10, 2025 15:37
Copy link
Contributor

📦 Next.js Bundle Analysis for web

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

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 155.26 KB (-6 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!

New Pages Added

The following pages were added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (350 KB)
/(main)/dashboard/[organization]/(header)/meters/page 590.51 KB 745.77 KB 213.08%
/(main)/dashboard/[organization]/(header)/meters/[slug]/page 682.2 KB 837.46 KB 239.27%

One Hundred Sixty-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 113.78 KB 269.04 KB 76.87% (🟡 +0.01%)
/checkout/[clientSecret]/confirmation/page 279.63 KB 434.89 KB 124.26% (🟡 +0.01%)
/checkout/[clientSecret]/page 273.55 KB 428.81 KB 122.52% (🟢 -0.13%)
/(main)/signup/page 138.64 KB 293.9 KB 83.97% (🟡 +0.02%)
/(main)/login/page 165.4 KB 320.66 KB 91.62% (🟡 +0.01%)
/(main)/verify-email/page 361 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/(installation)/github/layout 362 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/(topbar)/layout 242.34 KB 397.6 KB 113.60% (+/- <0.01%)
/(main)/[organization]/(header)/layout 277.32 KB 432.58 KB 123.59% (+/- <0.01%)
/(main)/[organization]/(header)/issues/page 124.57 KB 279.83 KB 79.95% (🟡 +0.01%)
/(main)/[organization]/(header)/page 137.96 KB 293.22 KB 83.78% (🟢 -0.14%)
/(main)/[organization]/(header)/subscriptions/page 362 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/[organization]/(header)/products/[productId]/page 192.06 KB 347.32 KB 99.23% (🟢 -0.10%)
/(main)/[organization]/[repo]/issues/[number]/status/page 227.93 KB 383.19 KB 109.48% (🟡 +0.02%)
/(main)/[organization]/[repo]/layout 233.76 KB 389.02 KB 111.15% (+/- <0.01%)
/(main)/[organization]/[repo]/page 205.16 KB 360.42 KB 102.98% (🟡 +0.01%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 201.36 KB 356.62 KB 101.89% (🟡 +0.02%)
/(main)/backoffice/issue/[id]/page 53.4 KB 208.66 KB 59.62% (+/- <0.01%)
/(main)/backoffice/layout 557.27 KB 712.53 KB 203.58% (🟡 +0.03%)
/(main)/backoffice/badge/page 43.48 KB 198.74 KB 56.78% (+/- <0.01%)
/(main)/[organization]/portal/page 220.96 KB 376.22 KB 107.49% (🟡 +0.01%)
/(main)/backoffice/pledges/page 55.67 KB 210.93 KB 60.27% (+/- <0.01%)
/(main)/backoffice/rewards_pending/page 57.5 KB 212.76 KB 60.79% (+/- <0.01%)
/(main)/dashboard/layout 362 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/(landing)/page 261.12 KB 416.38 KB 118.97% (🟢 -0.13%)
/(main)/(landing)/layout 216.1 KB 371.36 KB 106.10% (🟡 +0.01%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 173.79 KB 329.05 KB 94.01% (🟢 -0.14%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 195.31 KB 350.57 KB 100.16% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/page 362 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 90.31 KB 245.57 KB 70.16% (🟢 -0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 216.75 KB 372.01 KB 106.29% (🟡 +0.13%)
/(main)/(topbar)/(backer)/purchases/products/page 90.4 KB 245.66 KB 70.19% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 90.32 KB 245.58 KB 70.16% (+/- <0.01%)
/(main)/(topbar)/(backer)/settings/page 263.9 KB 419.16 KB 119.76% (🟡 +0.06%)
/(main)/[organization]/portal/(topbar)/authenticate/page 72.02 KB 227.28 KB 64.94% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 195.2 KB 350.46 KB 100.13% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 214.35 KB 369.61 KB 105.60% (🟡 +0.12%)
/(main)/[organization]/portal/(topbar)/request/page 67.72 KB 222.98 KB 63.71% (+/- <0.01%)
/(main)/dashboard/(create)/create/page 154.28 KB 309.54 KB 88.44% (+/- <0.01%)
/(main)/dashboard/[organization]/storefront/page 380.34 KB 535.6 KB 153.03% (🟢 -0.22%)
/(main)/dashboard/[organization]/layout 45.92 KB 201.18 KB 57.48% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/better-pricing/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/(landing)/(mdx)/layout 361 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/mitchell-hashimoto-joins-polar-as-an-advisor/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/(landing)/(mdx)/blog/(header)/introducing-digital-products/page 36.28 KB 191.54 KB 54.72% (🟡 +0.13%)
/(main)/(landing)/(mdx)/blog/(header)/introducing-license-keys/page 33.99 KB 189.25 KB 54.07% (🟡 +0.04%)
/(main)/(landing)/(mdx)/blog/(header)/polar-v1-0-lets-fix-open-source-funding/page 34.24 KB 189.5 KB 54.14% (🟡 +0.04%)
/(main)/(landing)/(mdx)/blog/(header)/upsell-discord-invites/page 34.94 KB 190.2 KB 54.34% (🟡 +0.05%)
/(main)/(landing)/(mdx)/blog/(header)/build-saas-with-polar/page 34.73 KB 189.99 KB 54.28% (🟡 +0.05%)
/(main)/(landing)/(mdx)/blog/(header)/polar-v1-0-lower-fees/page 34.02 KB 189.28 KB 54.08% (🟡 +0.03%)
/(main)/(landing)/(mdx)/blog/(header)/upsell-private-github-repositories/page 35.19 KB 190.45 KB 54.41% (🟡 +0.05%)
/(main)/(landing)/(mdx)/blog/(header)/updated-payout-model/page 34.01 KB 189.27 KB 54.08% (🟡 +0.03%)
/(main)/(landing)/(mdx)/legal/terms/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/(landing)/(mdx)/blog/page 41.26 KB 196.52 KB 56.15% (🟡 +0.23%)
/(main)/(landing)/(mdx)/careers/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/(landing)/(mdx)/legal/privacy/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/(landing)/(mdx)/blog/(header)/github-supports-polar-in-funding-yaml/page 34.03 KB 189.29 KB 54.08% (🟡 +0.04%)
/(main)/(landing)/(mdx)/blog/(header)/introducing-annual-subscriptions/page 34.67 KB 189.93 KB 54.26% (🟡 +0.05%)
/(main)/docs/(mdx)/benefits/discord/page 35.38 KB 190.64 KB 54.47% (🟡 +0.05%)
/(main)/docs/(mdx)/layout 486.54 KB 641.8 KB 183.37% (🟡 +0.01%)
/(main)/docs/layout 363 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/docs/(mdx)/benefits/file-downloads/page 35.83 KB 191.09 KB 54.60% (🟡 +0.05%)
/(main)/docs/(mdx)/benefits/github-repositories/page 35.08 KB 190.34 KB 54.38% (🟡 +0.05%)
/(main)/docs/(mdx)/checkout/page 37.89 KB 193.15 KB 55.19% (🟡 +0.01%)
/(main)/docs/(mdx)/benefits/page 34.37 KB 189.63 KB 54.18% (🟡 +0.04%)
/(main)/docs/(mdx)/benefits/license-keys/page 35.76 KB 191.02 KB 54.58% (🟡 +0.05%)
/(main)/docs/(mdx)/checkout/custom-fields/page 35.72 KB 190.98 KB 54.57% (🟡 +0.05%)
/(main)/docs/(mdx)/countries/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/(mdx)/customers/purchases/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/(mdx)/donations/page 34.67 KB 189.93 KB 54.27% (🟡 +0.04%)
/(main)/docs/(mdx)/finance/accounts/page 35.15 KB 190.41 KB 54.40% (🟡 +0.05%)
/(main)/docs/(mdx)/finance/payouts/page 33.64 KB 188.9 KB 53.97% (🟡 +0.04%)
/(main)/docs/(mdx)/fees/page 33.64 KB 188.9 KB 53.97% (🟡 +0.03%)
/(main)/docs/(mdx)/github/embeds/page 34.21 KB 189.47 KB 54.13% (🟡 +0.04%)
/(main)/docs/(mdx)/github/install/page 35 KB 190.26 KB 54.36% (🟡 +0.04%)
/(main)/docs/(mdx)/finance/balance/page 34.09 KB 189.35 KB 54.10% (🟡 +0.03%)
/(main)/docs/(mdx)/github/funding-yaml/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/(mdx)/issue-funding/getting-started/page 34.52 KB 189.78 KB 54.22% (🟡 +0.04%)
/(main)/docs/(mdx)/issue-funding/page 34.16 KB 189.42 KB 54.12% (🟡 +0.03%)
/(main)/docs/(mdx)/issue-funding/workflow/page 36.26 KB 191.52 KB 54.72% (🟡 +0.05%)
/(main)/docs/(mdx)/issue-funding/reward-contributors/page 34.42 KB 189.68 KB 54.19% (🟡 +0.04%)
/(main)/docs/(mdx)/merchant-of-record/tax/page 47.76 KB 203.02 KB 58.01% (🟡 +0.01%)
/(main)/docs/(mdx)/merchant-of-record/compliance/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/(mdx)/onboarding/page 179.7 KB 334.96 KB 95.70% (🟡 +0.02%)
/(main)/docs/(mdx)/products/page 36.01 KB 191.27 KB 54.65% (🟡 +0.05%)
/(main)/docs/(mdx)/payments-taxes/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/(mdx)/page 34.13 KB 189.39 KB 54.11% (🟡 +0.04%)
/(main)/docs/(mdx)/products/create/page 35.67 KB 190.92 KB 54.55% (🟡 +0.05%)
/(main)/docs/(mdx)/sales/subscriptions/page 33.91 KB 189.17 KB 54.05% (🟡 +0.03%)
/(main)/docs/(mdx)/products/paritydeals/page 34.41 KB 189.67 KB 54.19% (🟡 +0.04%)
/(main)/docs/(mdx)/sales/orders/page 33.91 KB 189.17 KB 54.05% (🟡 +0.03%)
/(main)/docs/(mdx)/sales/page 34.48 KB 189.74 KB 54.21% (🟡 +0.04%)
/(main)/docs/(mdx)/subscriptions/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/developers/(mdx)/page 33.62 KB 188.88 KB 53.97% (🟡 +0.03%)
/(main)/docs/developers/(mdx)/layout 486.54 KB 641.8 KB 183.37% (🟡 +0.01%)
/(main)/docs/developers/guides/laravel/page 34.61 KB 189.87 KB 54.25% (🟡 +0.04%)
/(main)/docs/developers/guides/layout 486.54 KB 641.8 KB 183.37% (🟡 +0.01%)
/(main)/docs/developers/guides/figma/page 34.77 KB 190.03 KB 54.29% (🟡 +0.05%)
/(main)/docs/developers/guides/node/page 34.4 KB 189.66 KB 54.19% (🟡 +0.11%)
/(main)/docs/developers/guides/nextjs/page 34.4 KB 189.66 KB 54.19% (🟡 +0.11%)
/(main)/docs/developers/sandbox/page 34.89 KB 190.15 KB 54.33% (🟡 +0.04%)
/(main)/docs/developers/sandbox/layout 486.54 KB 641.8 KB 183.37% (🟡 +0.01%)
/(main)/docs/developers/open-source/page 34.4 KB 189.66 KB 54.19% (🟡 +0.11%)
/(main)/docs/developers/open-source/layout 486.54 KB 641.8 KB 183.37% (🟡 +0.01%)
/(main)/docs/developers/sdk/checkout-link/page 34.4 KB 189.66 KB 54.19% (🟡 +0.11%)
/(main)/docs/developers/sdk/layout 486.53 KB 641.79 KB 183.37% (+/- <0.01%)
/(main)/docs/developers/sdk/github-actions/page 34.4 KB 189.66 KB 54.19% (🟡 +0.11%)
/(main)/docs/developers/sdk/authentication/page 228.29 KB 383.55 KB 109.59% (🟡 +0.01%)
/(main)/docs/developers/sdk/polar-init/page 34.4 KB 189.66 KB 54.19% (🟡 +0.11%)
/(main)/docs/developers/sdk/polar-migrate/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/developers/sdk/polar-for-framer/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/developers/sdk/python/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/developers/sdk/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/developers/sdk/typescript/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/support/(mdx)/page 33.65 KB 188.91 KB 53.97% (🟡 +0.04%)
/(main)/docs/support/layout 486.54 KB 641.8 KB 183.37% (🟡 +0.01%)
/(main)/docs/developers/webhooks/events/page 363 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/docs/developers/webhooks/layout 486.81 KB 642.07 KB 183.45% (+/- <0.01%)
/(main)/docs/developers/webhooks/page 35.18 KB 190.44 KB 54.41% (🟡 +0.05%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 251.25 KB 406.51 KB 116.15% (🟡 +0.01%)
/(main)/(topbar)/(backer)/(sidebar)/layout 137.71 KB 292.97 KB 83.70% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/incoming/page 236.08 KB 391.34 KB 111.81% (🟢 -0.01%)
/(main)/(topbar)/(backer)/finance/layout 214.07 KB 369.33 KB 105.52% (🟡 +0.06%)
/(main)/(topbar)/(backer)/finance/rewards/page 115.9 KB 271.16 KB 77.48% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 201.79 KB 357.05 KB 102.01% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/outgoing/page 188.2 KB 343.46 KB 98.13% (🟢 -0.01%)
/(main)/dashboard/[organization]/(header)/(home)/page 657.02 KB 812.28 KB 232.08% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/page 361 B 155.61 KB 44.46% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/layout 557.27 KB 712.53 KB 203.58% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/[...all]/page 38.07 KB 193.33 KB 55.24% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/analytics/page 690.42 KB 845.68 KB 241.62% (🟡 +0.06%)
/(main)/dashboard/[organization]/(header)/customers/page 594.71 KB 749.97 KB 214.28% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 591.22 KB 746.48 KB 213.28% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/benefits/page 658.13 KB 813.39 KB 232.40% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/initialize/page 144.28 KB 299.54 KB 85.58% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 559.88 KB 715.14 KB 204.33% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 599.57 KB 754.83 KB 215.67% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 584.46 KB 739.72 KB 211.35% (🟡 +0.08%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 559.78 KB 715.04 KB 204.30% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/members/page 558.23 KB 713.49 KB 203.86% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 657.66 KB 812.92 KB 232.26% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/layout 38.07 KB 193.33 KB 55.24% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 653.25 KB 808.51 KB 231.00% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/products/page 593.52 KB 748.78 KB 213.94% (🟢 -0.05%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 621.74 KB 777 KB 222.00% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/products/new/page 645.42 KB 800.68 KB 228.77% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/sales/page 601.95 KB 757.21 KB 216.35% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 595.75 KB 751.01 KB 214.57% (🟡 +0.06%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 570.83 KB 726.08 KB 207.45% (🟡 +0.18%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 597.47 KB 752.73 KB 215.07% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/settings/page 577.38 KB 732.64 KB 209.33% (🟡 +0.14%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 595.95 KB 751.21 KB 214.63% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 578.09 KB 733.35 KB 209.53% (🟡 +0.08%)
/(main)/dashboard/[organization]/(header)/finance/account/page 149.56 KB 304.82 KB 87.09% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/layout 557.27 KB 712.53 KB 203.58% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 184.08 KB 339.34 KB 96.95% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 136.13 KB 291.39 KB 83.25% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 63.75 KB 219.01 KB 62.58% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 557.27 KB 712.53 KB 203.58% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 64.47 KB 219.73 KB 62.78% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 63.75 KB 219.01 KB 62.57% (+/- <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.

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