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 Customer details page #4874

Merged
merged 2 commits into from
Jan 22, 2025
Merged

Implement Customer details page #4874

merged 2 commits into from
Jan 22, 2025

Conversation

emilwidlund
Copy link
Member

No description provided.

Copy link

vercel bot commented Jan 22, 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 22, 2025 5:30pm
polar-sandbox 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 5:30pm

@emilwidlund emilwidlund enabled auto-merge (rebase) January 22, 2025 17:26
Copy link
Contributor

📦 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 (🟡 +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 Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (350 KB)
/(main)/dashboard/[organization]/(header)/customers/[id]/page 390.71 KB 545.51 KB 155.86%

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)
/layout 113.83 KB 268.63 KB 76.75% (+/- <0.01%)
/checkout/[clientSecret]/confirmation/page 278.91 KB 433.71 KB 123.92% (🟡 +0.01%)
/checkout/[clientSecret]/page 273.04 KB 427.84 KB 122.24% (+/- <0.01%)
/(main)/signup/page 138.77 KB 293.58 KB 83.88% (+/- <0.01%)
/(main)/layout 83.24 KB 238.05 KB 68.01% (+/- <0.01%)
/(main)/login/page 166.3 KB 321.11 KB 91.75% (+/- <0.01%)
/(main)/verify-email/page 350 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/(installation)/github/installation/page 127.97 KB 282.78 KB 80.79% (+/- <0.01%)
/(main)/(topbar)/layout 244.11 KB 398.91 KB 113.98% (🟡 +0.01%)
/(main)/[organization]/(header)/layout 277.73 KB 432.54 KB 123.58% (🟡 +0.02%)
/(main)/[organization]/(header)/page 137.31 KB 292.11 KB 83.46% (🟡 +0.02%)
/(main)/[organization]/(header)/issues/page 124.61 KB 279.41 KB 79.83% (🟡 +0.02%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 200.72 KB 355.53 KB 101.58% (🟡 +0.02%)
/(main)/[organization]/[repo]/layout 234.48 KB 389.29 KB 111.23% (🟡 +0.01%)
/(main)/[organization]/(header)/products/[productId]/page 191.53 KB 346.34 KB 98.95% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 228.76 KB 383.56 KB 109.59% (🟡 +0.02%)
/(main)/[organization]/[repo]/page 205.12 KB 359.93 KB 102.84% (🟡 +0.01%)
/(main)/[organization]/portal/page 222.14 KB 376.94 KB 107.70% (🟡 +0.01%)
/(main)/backoffice/badge/page 43.61 KB 198.42 KB 56.69% (🟡 +0.02%)
/(main)/backoffice/layout 259.62 KB 414.42 KB 118.41% (🟡 +0.01%)
/(main)/backoffice/issue/[id]/page 53.56 KB 208.37 KB 59.53% (🟡 +0.02%)
/(main)/backoffice/pledges/page 55.83 KB 210.63 KB 60.18% (🟡 +0.02%)
/(main)/backoffice/rebadge/page 41.58 KB 196.38 KB 56.11% (+/- <0.01%)
/(main)/backoffice/rewards_pending/page 57.66 KB 212.46 KB 60.70% (🟡 +0.02%)
/(main)/(landing)/page 260.59 KB 415.39 KB 118.68% (+/- <0.01%)
/(main)/(landing)/layout 217.37 KB 372.18 KB 106.34% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 176.11 KB 330.92 KB 94.55% (🟡 +0.01%)
/(main)/(topbar)/(backer)/layout 81.39 KB 236.2 KB 67.48% (🟡 +0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 91.27 KB 246.08 KB 70.31% (🟡 +0.02%)
/(main)/(topbar)/(backer)/purchases/page 353 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 195.19 KB 350 KB 100.00% (🟡 +0.02%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 215.88 KB 370.68 KB 105.91% (🟡 +0.02%)
/(main)/(topbar)/(backer)/purchases/products/page 90.48 KB 245.29 KB 70.08% (🟡 +0.02%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 90.54 KB 245.35 KB 70.10% (🟡 +0.02%)
/(main)/(topbar)/(backer)/settings/page 261.97 KB 416.77 KB 119.08% (🟡 +0.02%)
/(main)/[organization]/portal/(topbar)/authenticate/page 72.19 KB 227 KB 64.86% (🟡 +0.01%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 195.08 KB 349.89 KB 99.97% (🟡 +0.02%)
/(main)/[organization]/portal/(topbar)/request/page 67.91 KB 222.71 KB 63.63% (🟡 +0.02%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 213.51 KB 368.31 KB 105.23% (🟡 +0.02%)
/(main)/dashboard/(create)/create/page 155.23 KB 310.04 KB 88.58% (🟡 +0.02%)
/(main)/dashboard/[organization]/storefront/page 382.73 KB 537.54 KB 153.58% (🟡 +0.02%)
/(main)/dashboard/[organization]/layout 46.05 KB 200.86 KB 57.39% (🟡 +0.02%)
/(main)/(landing)/(mdx)/layout 349 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 201.17 KB 355.98 KB 101.71% (🟡 +0.02%)
/(main)/(topbar)/(backer)/finance/layout 215.39 KB 370.2 KB 105.77% (🟡 +0.02%)
/(main)/(topbar)/(backer)/finance/incoming/page 236.07 KB 390.88 KB 111.68% (🟡 +0.02%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 252.9 KB 407.71 KB 116.49% (🟡 +0.02%)
/(main)/(topbar)/(backer)/(sidebar)/layout 137.88 KB 292.68 KB 83.62% (🟡 +0.02%)
/(main)/(topbar)/(backer)/finance/rewards/page 116.04 KB 270.85 KB 77.39% (🟡 +0.01%)
/(main)/(topbar)/(backer)/finance/outgoing/page 187.52 KB 342.33 KB 97.81% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/(home)/page 340.58 KB 495.38 KB 141.54% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/page 351 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/layout 259.61 KB 414.42 KB 118.40% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/analytics/page 396.78 KB 551.58 KB 157.59% (🟡 +0.04%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 292.95 KB 447.76 KB 127.93% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/benefits/page 359.93 KB 514.74 KB 147.07% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/customers/page 291.58 KB 446.39 KB 127.54% (🟢 -1.48%)
/(main)/dashboard/[organization]/(header)/initialize/page 143.93 KB 298.74 KB 85.35% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 262.13 KB 416.93 KB 119.12% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 262.22 KB 417.03 KB 119.15% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 286.88 KB 441.69 KB 126.20% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 301.92 KB 456.73 KB 130.49% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/meters/page 291.59 KB 446.4 KB 127.54% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/members/page 260.56 KB 415.36 KB 118.68% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 355.19 KB 510 KB 145.71% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/meters/[slug]/page 431.33 KB 586.14 KB 167.47% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 359.45 KB 514.25 KB 146.93% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 328.13 KB 482.93 KB 137.98% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/page 352 B 155.15 KB 44.33% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/page 295.25 KB 450.06 KB 128.59% (🟡 +0.03%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 274.97 KB 429.78 KB 122.79% (🟡 +0.24%)
/(main)/dashboard/[organization]/(header)/products/new/page 347.06 KB 501.86 KB 143.39% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/sales/page 308.44 KB 463.25 KB 132.36% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 298.37 KB 453.18 KB 129.48% (🟡 +0.30%)
/(main)/dashboard/[organization]/(header)/settings/page 279.85 KB 434.65 KB 124.19% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 299.15 KB 453.96 KB 129.70% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 280.45 KB 435.26 KB 124.36% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 298.85 KB 453.65 KB 129.62% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/finance/account/page 149.31 KB 304.12 KB 86.89% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/layout 259.62 KB 414.42 KB 118.41% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 184.07 KB 338.88 KB 96.82% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 135.14 KB 289.95 KB 82.84% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 64.61 KB 219.41 KB 62.69% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 259.62 KB 414.42 KB 118.41% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 63.89 KB 218.69 KB 62.48% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 63.89 KB 218.7 KB 62.48% (🟡 +0.02%)
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.

@emilwidlund emilwidlund merged commit bf860dd into main Jan 22, 2025
11 of 15 checks passed
@emilwidlund emilwidlund deleted the customer-portal-usage branch January 22, 2025 17:31
Copy link

sentry-io bot commented Jan 22, 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
  • ‼️ 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