Skip to content

Subscription settings: proration and multiple active #4913

Merged
frankie567 merged 9 commits intomainfrom
fix/4777
Jan 28, 2025
Merged

Subscription settings: proration and multiple active #4913
frankie567 merged 9 commits intomainfrom
fix/4777

Conversation

@frankie567
Copy link
Copy Markdown
Member

@frankie567 frankie567 commented Jan 28, 2025

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 28, 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 28, 2025 10:42am
polar-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 28, 2025 10:42am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 28, 2025

📦 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 154.81 KB (-1 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)/@breadcrumb/customers/[id]/page 26.61 KB 181.42 KB 51.83%
/(main)/dashboard/[organization]/(header)/@breadcrumb/customers/layout 14.22 KB 169.03 KB 48.29%
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/[id]/page 27.12 KB 181.93 KB 51.98%
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/layout 14.22 KB 169.03 KB 48.29%
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/subscriptions/[id]/page 27.12 KB 181.93 KB 51.98%
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/subscriptions/layout 14.23 KB 169.03 KB 48.30%
/(main)/dashboard/[organization]/(header)/sales/subscriptions/[id]/page 255.84 KB 410.64 KB 117.33%

One Hundred Five 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)
/_not-found/page 353 B 155.15 KB 44.33% (+/- <0.01%)
/layout 67.95 KB 222.75 KB 63.64% (🟡 +0.01%)
/checkout/[clientSecret]/confirmation/page 258.59 KB 413.4 KB 118.11% (🟡 +0.03%)
/checkout/[clientSecret]/page 208.77 KB 363.58 KB 103.88% (🟡 +0.01%)
/(main)/oauth2/authorize/page 40.85 KB 195.66 KB 55.90% (+/- <0.01%)
/(main)/layout 37.58 KB 192.38 KB 54.97% (+/- <0.01%)
/(main)/start/page 13.35 KB 168.15 KB 48.04% (+/- <0.01%)
/(main)/signup/page 95.76 KB 250.57 KB 71.59% (🟡 +0.01%)
/(main)/login/page 125.24 KB 280.05 KB 80.01% (🟡 +0.01%)
/(main)/(installation)/github/installation/page 91.75 KB 246.55 KB 70.44% (🟡 +0.01%)
/(main)/(installation)/github/layout 352 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/[organization]/(header)/donate/page 13.35 KB 168.15 KB 48.04% (+/- <0.01%)
/(main)/[organization]/(header)/layout 237.85 KB 392.66 KB 112.19% (🟡 +0.03%)
/(main)/(topbar)/layout 203.83 KB 358.64 KB 102.47% (🟡 +0.03%)
/(main)/[organization]/(header)/issues/page 122.23 KB 277.04 KB 79.15% (🟡 +0.03%)
/(main)/[organization]/(header)/page 134.03 KB 288.83 KB 82.52% (🟡 +0.03%)
/(main)/[organization]/(header)/products/[productId]/page 165.92 KB 320.72 KB 91.64% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 160.81 KB 315.62 KB 90.18% (🟡 +0.03%)
/(main)/[organization]/[repo]/layout 192.77 KB 347.58 KB 99.31% (🟡 +0.03%)
/(main)/[organization]/(header)/subscriptions/page 353 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 189.98 KB 344.79 KB 98.51% (🟡 +0.03%)
/(main)/[organization]/[repo]/page 205.1 KB 359.91 KB 102.83% (🟡 +0.03%)
/(main)/[organization]/portal/page 221.03 KB 375.83 KB 107.38% (🟡 +0.06%)
/(main)/[organization]/portal/layout 13.35 KB 168.15 KB 48.04% (+/- <0.01%)
/(main)/backoffice/badge/page 44.32 KB 199.13 KB 56.89% (🟡 +0.03%)
/(main)/backoffice/layout 220.8 KB 375.6 KB 107.32% (🟡 +0.03%)
/(main)/backoffice/issue/[id]/page 54.46 KB 209.26 KB 59.79% (🟡 +0.03%)
/(main)/backoffice/pledges/page 56.71 KB 211.52 KB 60.43% (🟡 +0.03%)
/(main)/backoffice/rebadge/page 42.47 KB 197.27 KB 56.36% (🟡 +0.01%)
/(main)/backoffice/rewards_pending/page 58.56 KB 213.37 KB 60.96% (🟡 +0.03%)
/(main)/dashboard/page 13.35 KB 168.15 KB 48.04% (+/- <0.01%)
/(main)/vision/layout 351 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/(landing)/page 253.11 KB 407.91 KB 116.55% (+/- <0.01%)
/(main)/(landing)/layout 178.29 KB 333.1 KB 95.17% (🟡 +0.01%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 175.67 KB 330.47 KB 94.42% (🟡 +0.03%)
/(main)/(topbar)/(backer)/layout 44.96 KB 199.77 KB 57.08% (🟡 +0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 87.99 KB 242.8 KB 69.37% (🟡 +0.03%)
/(main)/(topbar)/(backer)/purchases/products/page 87.09 KB 241.9 KB 69.11% (🟡 +0.03%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 193.76 KB 348.56 KB 99.59% (🟡 +0.03%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 216.43 KB 371.24 KB 106.07% (🟡 +0.06%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 90.03 KB 244.84 KB 69.95% (🟡 +0.03%)
/(main)/(topbar)/(backer)/settings/page 223 KB 377.81 KB 107.95% (🟡 +0.03%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 193.63 KB 348.44 KB 99.55% (🟡 +0.03%)
/(main)/[organization]/portal/(topbar)/layout 58.84 KB 213.65 KB 61.04% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/request/page 69.04 KB 223.84 KB 63.96% (🟡 +0.02%)
/(main)/[organization]/portal/(topbar)/authenticate/page 72.84 KB 227.65 KB 65.04% (🟡 +0.03%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 214 KB 368.81 KB 105.37% (🟡 +0.06%)
/(main)/dashboard/(create)/create/page 118.47 KB 273.28 KB 78.08% (🟡 +0.03%)
/(main)/dashboard/(create)/layout 354 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/dashboard/[organization]/storefront/page 381.53 KB 536.34 KB 153.24% (🟡 +0.07%)
/(main)/dashboard/[organization]/layout 46.77 KB 201.57 KB 57.59% (🟡 +0.03%)
/(main)/(landing)/(mdx)/blog/(header)/better-pricing/page 33.66 KB 188.47 KB 53.85% (+/- <0.01%)
/(main)/(landing)/(mdx)/layout 353 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 165.12 KB 319.92 KB 91.41% (🟡 +0.03%)
/(main)/(topbar)/(backer)/finance/layout 176.05 KB 330.86 KB 94.53% (🟡 +0.03%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 215 KB 369.8 KB 105.66% (🟡 +0.03%)
/(main)/(topbar)/(backer)/(sidebar)/layout 101.86 KB 256.67 KB 73.33% (🟡 +0.03%)
/(main)/(topbar)/(backer)/finance/incoming/page 196.39 KB 351.2 KB 100.34% (🟡 +0.03%)
/(main)/(topbar)/(backer)/finance/outgoing/page 146.17 KB 300.98 KB 85.99% (🟡 +0.03%)
/(main)/(topbar)/(backer)/finance/rewards/page 80.99 KB 235.8 KB 67.37% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/(home)/page 302.04 KB 456.84 KB 130.53% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/page 354 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/layout 26.61 KB 181.42 KB 51.83% (🟢 -7.25%)
/(main)/dashboard/[organization]/(header)/layout 220.79 KB 375.59 KB 107.31% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/[...all]/page 14.22 KB 169.03 KB 48.29% (🟢 -7.17%)
/(main)/dashboard/[organization]/(header)/analytics/page 351.91 KB 506.72 KB 144.78% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 253.88 KB 408.68 KB 116.77% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/benefits/page 323.02 KB 477.82 KB 136.52% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/customers/[id]/page 350.39 KB 505.2 KB 144.34% (🟢 -0.96%)
/(main)/dashboard/[organization]/(header)/customers/page 256.63 KB 411.44 KB 117.55% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/initialize/page 142.42 KB 297.23 KB 84.92% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 223.4 KB 378.21 KB 108.06% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 248.88 KB 403.69 KB 115.34% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 223.42 KB 378.22 KB 108.06% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/members/page 221.75 KB 376.56 KB 107.59% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 264.5 KB 419.3 KB 119.80% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/meters/[slug]/page 392.11 KB 546.92 KB 156.26% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/meters/page 252.5 KB 407.31 KB 116.37% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/products/[id]/checkout-links/page 263.07 KB 417.88 KB 119.39% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 322.54 KB 477.35 KB 136.38% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/[id]/page 27.12 KB 181.93 KB 51.98% (🟢 -7.20%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/layout 14.22 KB 169.03 KB 48.29% (🟢 -7.17%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 360.07 KB 514.88 KB 147.11% (🟡 +0.04%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 283.45 KB 438.26 KB 125.22% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/new/page 14.22 KB 169.03 KB 48.29% (🟢 -7.17%)
/(main)/dashboard/[organization]/(header)/products/new/page 359.77 KB 514.58 KB 147.02% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/page 352 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/page 231.42 KB 386.23 KB 110.35% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 268.94 KB 423.75 KB 121.07% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/sales/page 263.83 KB 418.63 KB 119.61% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 254.07 KB 408.88 KB 116.82% (🟢 -1.67%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 261.73 KB 416.54 KB 119.01% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/settings/page 244.36 KB 399.17 KB 114.05% (🟡 +0.58%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/settings/webhooks/endpoints/[id]/page 27.12 KB 181.93 KB 51.98% (🟢 -7.20%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/settings/layout 14.22 KB 169.03 KB 48.29% (🟢 -7.17%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 259.12 KB 413.93 KB 118.27% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 242.05 KB 396.86 KB 113.39% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/account/page 150.05 KB 304.86 KB 87.10% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/layout 220.79 KB 375.6 KB 107.31% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 181.23 KB 336.04 KB 96.01% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 130.59 KB 285.4 KB 81.54% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 66.33 KB 221.13 KB 63.18% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 220.8 KB 375.6 KB 107.32% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 65.6 KB 220.4 KB 62.97% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 65.6 KB 220.41 KB 62.97% (🟡 +0.03%)
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.

@sentry
Copy link
Copy Markdown

sentry Bot commented Feb 5, 2025

Suspect Issues

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

  • ‼️ ResponseError: Response returned an error code Page Server Component (/(main)/dashboard/[organ... 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.

Subscriptions (Dashboard): Change product & price Subscription (API): Ability to set different proration settings for upgrade/downgrade

1 participant