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

server/transaction: revamp dispute handling #4773

Merged
merged 5 commits into from
Jan 3, 2025
Merged

Conversation

frankie567
Copy link
Member

Do the work only when the dispute is resolved. This way, we avoid some back and forth, especially in case of win.

Do the work *only* when the dispute is resolved. This way, we avoid some back and forth, especially in case of win.
Copy link

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

Copy link
Contributor

github-actions bot commented Jan 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 155.27 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!

One Hundred 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.73 KB 269 KB 76.86% (+/- <0.01%)
/checkout/[clientSecret]/confirmation/page 279.39 KB 434.66 KB 124.19% (+/- <0.01%)
/checkout/[clientSecret]/page 273.86 KB 429.13 KB 122.61% (+/- <0.01%)
/(main)/layout 83.16 KB 238.43 KB 68.12% (+/- <0.01%)
/(main)/signup/page 138.51 KB 293.78 KB 83.94% (+/- <0.01%)
/(main)/login/page 165.3 KB 320.57 KB 91.59% (+/- <0.01%)
/(main)/(installation)/github/installation/page 127.85 KB 283.12 KB 80.89% (+/- <0.01%)
/(main)/(topbar)/layout 242.14 KB 397.41 KB 113.55% (+/- <0.01%)
/(main)/[organization]/(header)/layout 276.56 KB 431.83 KB 123.38% (+/- <0.01%)
/(main)/[organization]/(header)/issues/page 124.35 KB 279.61 KB 79.89% (+/- <0.01%)
/(main)/[organization]/(header)/page 138.17 KB 293.44 KB 83.84% (+/- <0.01%)
/(main)/[organization]/(header)/products/[productId]/page 192.31 KB 347.58 KB 99.31% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 201.11 KB 356.38 KB 101.82% (+/- <0.01%)
/(main)/[organization]/[repo]/layout 233.57 KB 388.84 KB 111.10% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 227.6 KB 382.87 KB 109.39% (+/- <0.01%)
/(main)/[organization]/[repo]/page 204.91 KB 360.18 KB 102.91% (+/- <0.01%)
/(main)/[organization]/portal/page 204.69 KB 359.96 KB 102.85% (+/- <0.01%)
/(main)/backoffice/badge/page 43.29 KB 198.56 KB 56.73% (+/- <0.01%)
/(main)/backoffice/layout 570.75 KB 726.02 KB 207.43% (🟡 +0.02%)
/(main)/backoffice/issue/[id]/page 53.21 KB 208.48 KB 59.57% (+/- <0.01%)
/(main)/backoffice/pledges/page 55.48 KB 210.74 KB 60.21% (+/- <0.01%)
/(main)/backoffice/rewards_pending/page 57.31 KB 212.58 KB 60.74% (+/- <0.01%)
/(main)/backoffice/rebadge/page 41.46 KB 196.72 KB 56.21% (+/- <0.01%)
/(main)/docs/api/[...endpoint]/page 500.95 KB 656.21 KB 187.49% (🟡 +0.02%)
/(main)/(landing)/page 261.43 KB 416.7 KB 119.06% (+/- <0.01%)
/(main)/(landing)/layout 216.01 KB 371.28 KB 106.08% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 90.15 KB 245.41 KB 70.12% (+/- <0.01%)
/(main)/(topbar)/(backer)/layout 81.3 KB 236.57 KB 67.59% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 174.1 KB 329.37 KB 94.11% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/page 90.21 KB 245.47 KB 70.14% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 195.12 KB 350.39 KB 100.11% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 200.54 KB 355.81 KB 101.66% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 90.09 KB 245.36 KB 70.10% (+/- <0.01%)
/(main)/(topbar)/(backer)/settings/page 263.5 KB 418.77 KB 119.65% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/authenticate/page 71.83 KB 227.09 KB 64.88% (🟡 +0.01%)
/(main)/[organization]/portal/(topbar)/request/page 67.53 KB 222.79 KB 63.66% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/orders/[id]/page 195.01 KB 350.28 KB 100.08% (+/- <0.01%)
/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page 198.13 KB 353.39 KB 100.97% (+/- <0.01%)
/(main)/dashboard/(create)/create/page 154.09 KB 309.36 KB 88.39% (+/- <0.01%)
/(main)/dashboard/[organization]/storefront/page 376.79 KB 532.06 KB 152.02% (+/- <0.01%)
/(main)/dashboard/[organization]/layout 45.73 KB 201 KB 57.43% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/better-pricing/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/mitchell-hashimoto-joins-polar-as-an-advisor/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/(mdx)/layout 500.77 KB 656.04 KB 187.44% (🟡 +0.02%)
/(main)/docs/(mdx)/customers/purchases/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/(mdx)/finance/payouts/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/(mdx)/onboarding/page 179.59 KB 334.86 KB 95.67% (+/- <0.01%)
/(main)/docs/(mdx)/payments-taxes/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/api/(mdx)/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/api/(mdx)/layout 500.76 KB 656.03 KB 187.44% (🟡 +0.01%)
/(main)/docs/api/(mdx)/authentication/page 228.18 KB 383.45 KB 109.56% (+/- <0.01%)
/(main)/docs/developers/(mdx)/layout 500.76 KB 656.03 KB 187.44% (🟡 +0.01%)
/(main)/docs/developers/guides/layout 500.76 KB 656.03 KB 187.44% (🟡 +0.01%)
/(main)/docs/developers/open-source/layout 500.77 KB 656.04 KB 187.44% (🟡 +0.02%)
/(main)/docs/developers/sandbox/layout 500.77 KB 656.04 KB 187.44% (🟡 +0.02%)
/(main)/docs/developers/sdk/layout 500.76 KB 656.02 KB 187.44% (🟡 +0.01%)
/(main)/docs/developers/sdk/polar-for-framer/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/developers/sdk/page 33.53 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/support/(mdx)/page 33.54 KB 188.8 KB 53.94% (+/- <0.01%)
/(main)/docs/support/layout 500.77 KB 656.04 KB 187.44% (🟡 +0.02%)
/(main)/docs/developers/webhooks/layout 501.03 KB 656.3 KB 187.51% (🟡 +0.02%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 250.94 KB 406.2 KB 116.06% (+/- <0.01%)
/(main)/(topbar)/(backer)/(sidebar)/layout 137.51 KB 292.78 KB 83.65% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/rewards/page 115.71 KB 270.98 KB 77.42% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/layout 213.62 KB 368.89 KB 105.40% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/outgoing/page 188.03 KB 343.3 KB 98.09% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 201.6 KB 356.87 KB 101.96% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/incoming/page 235.87 KB 391.14 KB 111.75% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/(home)/page 670.19 KB 825.46 KB 235.85% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/layout 570.74 KB 726.01 KB 207.43% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/analytics/page 703.73 KB 859 KB 245.43% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 604.6 KB 759.87 KB 217.11% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/customers/page 608.08 KB 763.35 KB 218.10% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/benefits/page 671.63 KB 826.9 KB 236.26% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/initialize/page 144.02 KB 299.29 KB 85.51% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 597.73 KB 753 KB 215.14% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 573.19 KB 728.46 KB 208.13% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/members/page 571.61 KB 726.87 KB 207.68% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 612.87 KB 768.13 KB 219.47% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 573.11 KB 728.38 KB 208.11% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 671.15 KB 826.42 KB 236.12% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/page 607.24 KB 762.51 KB 217.86% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 666.7 KB 821.97 KB 234.85% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 583.78 KB 739.05 KB 211.16% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 635.08 KB 790.34 KB 225.81% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/products/new/page 658.61 KB 813.88 KB 232.54% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/sales/page 615.29 KB 770.56 KB 220.16% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 607.71 KB 762.98 KB 217.99% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/page 590.46 KB 745.72 KB 213.06% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 610.85 KB 766.12 KB 218.89% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 609.33 KB 764.6 KB 218.46% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 591.36 KB 746.62 KB 213.32% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/account/page 149.37 KB 304.64 KB 87.04% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/layout 570.75 KB 726.02 KB 207.43% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 183.86 KB 339.13 KB 96.90% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 135.97 KB 291.23 KB 83.21% (🟡 +0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 64.27 KB 219.54 KB 62.73% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 570.75 KB 726.01 KB 207.43% (🟡 +0.02%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 63.56 KB 218.83 KB 62.52% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 63.56 KB 218.83 KB 62.52% (+/- <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.

@frankie567 frankie567 merged commit ac21878 into main Jan 3, 2025
14 of 15 checks passed
@frankie567 frankie567 deleted the fix/dispute-balance branch January 3, 2025 11:54
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