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

Implement basic working meters UI #4946

Merged
merged 9 commits into from
Feb 3, 2025
Merged

Implement basic working meters UI #4946

merged 9 commits into from
Feb 3, 2025

Conversation

frankie567
Copy link
Member

No description provided.

@frankie567 frankie567 enabled auto-merge (rebase) February 3, 2025 09:49
Copy link

vercel bot commented Feb 3, 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 Feb 3, 2025 11:10am
polar-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 11:10am

Copy link
Contributor

github-actions bot commented Feb 3, 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.79 KB (-15 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/meters/[id]/edit/page 27.53 KB 182.32 KB 52.09%
/(main)/dashboard/[organization]/(header)/@breadcrumb/meters/layout 14.26 KB 169.05 KB 48.30%
/(main)/dashboard/[organization]/(header)/meters/[id]/edit/page 331.34 KB 486.13 KB 138.89%
/(main)/dashboard/[organization]/(header)/@breadcrumb/meters/[id]/page 27.53 KB 182.32 KB 52.09%
/(main)/dashboard/[organization]/(header)/meters/[id]/page 396.5 KB 551.29 KB 157.51%
/(main)/dashboard/[organization]/(header)/@breadcrumb/meters/new/page 14.26 KB 169.05 KB 48.30%
/(main)/dashboard/[organization]/(header)/meters/new/page 331.33 KB 486.12 KB 138.89%

One Hundred Thirteen 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 352 B 155.14 KB 44.32% (+/- <0.01%)
/layout 68.91 KB 223.71 KB 63.92% (🟡 +0.26%)
/checkout/[clientSecret]/confirmation/page 350.33 KB 505.13 KB 144.32% (🟡 +0.19%)
/checkout/[clientSecret]/page 209.71 KB 364.5 KB 104.14% (🟡 +0.26%)
/(main)/oauth2/authorize/page 41.4 KB 196.19 KB 56.06% (🟡 +0.15%)
/(main)/layout 37.86 KB 192.66 KB 55.04% (🟡 +0.09%)
/(main)/signup/page 96.69 KB 251.48 KB 71.85% (🟡 +0.26%)
/(main)/start/page 13.64 KB 168.44 KB 48.12% (🟡 +0.09%)
/(main)/login/page 125.52 KB 280.31 KB 80.09% (🟡 +0.08%)
/(main)/verify-email/page 351 B 155.13 KB 44.32% (+/- <0.01%)
/(main)/(installation)/github/installation/page 92.09 KB 246.89 KB 70.54% (🟡 +0.10%)
/(main)/(installation)/github/layout 353 B 155.14 KB 44.32% (🟡 +0.01%)
/(main)/(topbar)/layout 295.56 KB 450.35 KB 128.67% (🟡 +0.19%)
/(main)/[organization]/(header)/donate/page 13.64 KB 168.43 KB 48.12% (🟡 +0.09%)
/(main)/[organization]/(header)/layout 329.55 KB 484.34 KB 138.38% (🟡 +0.18%)
/(main)/[organization]/(header)/issues/page 213.82 KB 368.61 KB 105.32% (🟡 +0.14%)
/(main)/[organization]/(header)/page 225.76 KB 380.56 KB 108.73% (🟡 +0.19%)
/(main)/[organization]/(header)/products/[productId]/page 166.51 KB 321.31 KB 91.80% (🟡 +0.17%)
/(main)/[organization]/(header)/subscriptions/page 351 B 155.13 KB 44.32% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 281.68 KB 436.47 KB 124.71% (🟡 +0.17%)
/(main)/[organization]/[repo]/layout 284.52 KB 439.31 KB 125.52% (🟡 +0.18%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 251.93 KB 406.72 KB 116.21% (+/- <0.01%)
/(main)/[organization]/[repo]/page 296.08 KB 450.87 KB 128.82% (🟢 -0.03%)
/(main)/[organization]/portal/page 312.35 KB 467.14 KB 133.47% (🟡 +0.07%)
/(main)/[organization]/portal/layout 13.64 KB 168.44 KB 48.12% (🟡 +0.09%)
/(main)/backoffice/badge/page 135.71 KB 290.5 KB 83.00% (🟡 +0.08%)
/(main)/backoffice/layout 312.3 KB 467.09 KB 133.46% (🟡 +0.12%)
/(main)/backoffice/issue/[id]/page 145.84 KB 300.63 KB 85.89% (🟡 +0.09%)
/(main)/backoffice/rebadge/page 42.77 KB 197.56 KB 56.45% (🟡 +0.08%)
/(main)/backoffice/pledges/page 148.1 KB 302.89 KB 86.54% (🟡 +0.08%)
/(main)/backoffice/rewards_pending/page 149.94 KB 304.73 KB 87.07% (🟡 +0.08%)
/(main)/dashboard/page 13.64 KB 168.44 KB 48.12% (🟡 +0.09%)
/(main)/(landing)/page 253.42 KB 408.21 KB 116.63% (🟡 +0.09%)
/(main)/(landing)/layout 177.86 KB 332.65 KB 95.04% (🟢 -0.12%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 267.05 KB 421.84 KB 120.53% (🟡 +0.08%)
/(main)/(topbar)/(backer)/layout 45.32 KB 200.11 KB 57.17% (🟡 +0.10%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 285.48 KB 440.27 KB 125.79% (🟡 +0.18%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 179.37 KB 334.17 KB 95.48% (🟡 +0.08%)
/(main)/(topbar)/(backer)/purchases/products/page 178.48 KB 333.27 KB 95.22% (🟡 +0.08%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 308.16 KB 462.95 KB 132.27% (🟡 +0.18%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 181.41 KB 336.21 KB 96.06% (🟡 +0.08%)
/(main)/(topbar)/(backer)/settings/page 314.65 KB 469.44 KB 134.13% (🟡 +0.16%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 285.35 KB 440.14 KB 125.75% (🟡 +0.18%)
/(main)/[organization]/portal/(topbar)/layout 59.09 KB 213.88 KB 61.11% (🟡 +0.07%)
/(main)/[organization]/portal/(topbar)/authenticate/page 164.63 KB 319.42 KB 91.26% (🟡 +0.20%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 305.73 KB 460.52 KB 131.58% (🟡 +0.18%)
/(main)/[organization]/portal/(topbar)/request/page 160.39 KB 315.18 KB 90.05% (🟡 +0.08%)
/(main)/dashboard/(create)/create/page 210.21 KB 365 KB 104.28% (🟡 +0.19%)
/(main)/dashboard/(create)/layout 352 B 155.14 KB 44.32% (+/- <0.01%)
/(main)/dashboard/[organization]/storefront/page 472.99 KB 627.78 KB 179.37% (🟡 +0.10%)
/(main)/dashboard/[organization]/layout 138.15 KB 292.94 KB 83.70% (🟡 +0.08%)
/(main)/(landing)/(mdx)/layout 352 B 155.14 KB 44.32% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/better-pricing/page 33.66 KB 188.45 KB 53.84% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/mitchell-hashimoto-joins-polar-as-an-advisor/page 33.66 KB 188.45 KB 53.84% (+/- <0.01%)
/(main)/(landing)/(mdx)/legal/privacy/page 33.66 KB 188.45 KB 53.84% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 256.57 KB 411.36 KB 117.53% (🟡 +0.10%)
/(main)/(topbar)/(backer)/finance/layout 267.51 KB 422.31 KB 120.66% (🟡 +0.11%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 305.85 KB 460.64 KB 131.61% (🟡 +0.12%)
/(main)/(topbar)/(backer)/(sidebar)/layout 193.32 KB 348.11 KB 99.46% (🟡 +0.11%)
/(main)/(topbar)/(backer)/finance/incoming/page 287.84 KB 442.63 KB 126.47% (🟡 +0.10%)
/(main)/(topbar)/(backer)/finance/outgoing/page 237.64 KB 392.43 KB 112.12% (🟡 +0.11%)
/(main)/(topbar)/(backer)/finance/rewards/page 172.44 KB 327.23 KB 93.50% (🟡 +0.10%)
/(main)/dashboard/[organization]/(header)/(home)/page 394.43 KB 549.22 KB 156.92% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/page 351 B 155.13 KB 44.32% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/layout 27.52 KB 182.31 KB 52.09% (🟡 +0.26%)
/(main)/dashboard/[organization]/(header)/layout 312.29 KB 467.09 KB 133.45% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/[...all]/page 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/analytics/page 352.31 KB 507.1 KB 144.89% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/benefits/page 415.07 KB 569.86 KB 162.82% (🟡 +0.28%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 345.69 KB 500.48 KB 143.00% (🟡 +0.20%)
/(main)/dashboard/[organization]/(header)/customers/page 347.96 KB 502.75 KB 143.64% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/customers/[id]/page 27.53 KB 182.32 KB 52.09% (🟡 +0.27%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/customers/layout 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/customers/[id]/page 351.28 KB 506.07 KB 144.59% (🟢 -0.20%)
/(main)/dashboard/[organization]/(header)/initialize/page 233.81 KB 388.6 KB 111.03% (🟡 +0.08%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 314.88 KB 469.68 KB 134.19% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 340.35 KB 495.15 KB 141.47% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 314.9 KB 469.69 KB 134.20% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 355.98 KB 510.77 KB 145.94% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/members/page 313.23 KB 468.02 KB 133.72% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/products/[id]/checkout-links/page 354.5 KB 509.3 KB 145.51% (🟡 +0.09%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/[id]/page 27.54 KB 182.33 KB 52.09% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/layout 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 451.87 KB 606.66 KB 173.33% (🟡 +0.20%)
/(main)/dashboard/[organization]/(header)/meters/page 344.49 KB 499.28 KB 142.65% (🟡 +0.26%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 414.59 KB 569.39 KB 162.68% (🟡 +0.28%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 374.58 KB 529.38 KB 151.25% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/new/page 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/products/new/page 451.56 KB 606.35 KB 173.24% (🟡 +0.20%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/page 353 B 155.14 KB 44.32% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/products/page 323.24 KB 478.03 KB 136.58% (🟡 +0.21%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/[id]/page 27.54 KB 182.33 KB 52.09% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/layout 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 360.11 KB 514.9 KB 147.11% (🟡 +0.06%)
/(main)/dashboard/[organization]/(header)/sales/page 354.86 KB 509.65 KB 145.61% (🟢 -0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/subscriptions/[id]/page 27.54 KB 182.33 KB 52.09% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/sales/subscriptions/layout 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/[id]/page 347.09 KB 501.89 KB 143.40% (🟡 +0.05%)
/(main)/dashboard/[organization]/(header)/settings/page 336.25 KB 491.05 KB 140.30% (🟡 +0.23%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 345.83 KB 500.62 KB 143.03% (🟡 +0.20%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 352.98 KB 507.77 KB 145.08% (🟡 +0.21%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 333.55 KB 488.35 KB 139.53% (🟡 +0.11%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/settings/webhooks/endpoints/[id]/page 27.54 KB 182.33 KB 52.09% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/settings/layout 14.26 KB 169.05 KB 48.30% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 350.41 KB 505.2 KB 144.34% (🟡 +0.06%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 272.6 KB 427.39 KB 122.11% (🟡 +0.08%)
/(main)/dashboard/[organization]/(header)/finance/layout 312.3 KB 467.1 KB 133.46% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/finance/account/page 241.43 KB 396.22 KB 113.21% (🟡 +0.08%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 222.33 KB 377.12 KB 107.75% (🟡 +0.18%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 156.95 KB 311.74 KB 89.07% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 312.3 KB 467.1 KB 133.46% (🟡 +0.12%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 156.95 KB 311.74 KB 89.07% (🟡 +0.07%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 157.67 KB 312.46 KB 89.27% (🟡 +0.07%)
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 cc26538 into main Feb 3, 2025
9 of 12 checks passed
@frankie567 frankie567 deleted the feat/meters-ui branch February 3, 2025 10:43
Copy link

sentry-io 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.generateMetadata (/(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.

1 participant