canonical / ubuntu.com

The official website for the Ubuntu operating system
https://ubuntu.com
Other
189 stars 190 forks source link

WD-11633 distributor checkout page #13889

Closed minkyngkm closed 1 month ago

minkyngkm commented 2 months ago

This PR needs to be merged first https://github.com/canonical/ubuntu.com/pull/13917

Done

QA

  1. Go to /pro/distributor
  2. Click Initiate order
  3. Complete all the steps /pro/distributor/shop (click "proceed to checkout" without updating anything in the /pro/distributor/shop to see VAT working)
  4. Proceed to checkout
  5. Click Checkout button in the /pro/distributor/order page 6.Check it goes /account/checkout page and all the details in the page

Issue / Card

Fixes #https://warthogs.atlassian.net/browse/WD-11633

webteam-app commented 2 months ago

Demo

Jenkins

demos.haus

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 15.25424% with 100 lines in your changes missing coverage. Please review.

Project coverage is 70.66%. Comparing base (d6a26f9) to head (cb204af). Report is 57 commits behind head on distributor.

:exclamation: Current head cb204af differs from pull request most recent head f65ac71

Please upload reports for the commit f65ac71 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## distributor #13889 +/- ## =============================================== - Coverage 74.45% 70.66% -3.80% =============================================== Files 107 109 +2 Lines 2862 3078 +216 Branches 962 1058 +96 =============================================== + Hits 2131 2175 +44 - Misses 707 879 +172 Partials 24 24 ``` | [Files](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | Coverage Δ | | |---|---|---| | [static/js/src/advantage/distributor/utils/utils.ts](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fdistributor%2Futils%2Futils.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2UvZGlzdHJpYnV0b3IvdXRpbHMvdXRpbHMudHM=) | `31.09% <ø> (ø)` | | | [.../offers/components/PaymentButton/PaymentButton.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Foffers%2Fcomponents%2FPaymentButton%2FPaymentButton.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvb2ZmZXJzL2NvbXBvbmVudHMvUGF5bWVudEJ1dHRvbi9QYXltZW50QnV0dG9uLnRzeA==) | `100.00% <ø> (ø)` | | | [...react/components/Subscriptions/Content/Content.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Freact%2Fcomponents%2FSubscriptions%2FContent%2FContent.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2UvcmVhY3QvY29tcG9uZW50cy9TdWJzY3JpcHRpb25zL0NvbnRlbnQvQ29udGVudC50c3g=) | `73.33% <ø> (ø)` | | | [...ents/Subscriptions/RenewalButton/RenewalButton.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Freact%2Fcomponents%2FSubscriptions%2FRenewalButton%2FRenewalButton.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2UvcmVhY3QvY29tcG9uZW50cy9TdWJzY3JpcHRpb25zL1JlbmV3YWxCdXR0b24vUmVuZXdhbEJ1dHRvbi50c3g=) | `94.73% <ø> (ø)` | | | [...blender/components/PaymentButton/PaymentButton.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Fblender%2Fcomponents%2FPaymentButton%2FPaymentButton.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL2JsZW5kZXIvY29tcG9uZW50cy9QYXltZW50QnV0dG9uL1BheW1lbnRCdXR0b24udHN4) | `100.00% <100.00%> (ø)` | | | [...scribe/checkout/components/FreeTrial/FreeTrial.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Fcheckout%2Fcomponents%2FFreeTrial%2FFreeTrial.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL2NoZWNrb3V0L2NvbXBvbmVudHMvRnJlZVRyaWFsL0ZyZWVUcmlhbC50c3g=) | `84.61% <100.00%> (ø)` | | | [...tage/subscribe/checkout/components/Taxes/Taxes.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Fcheckout%2Fcomponents%2FTaxes%2FTaxes.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL2NoZWNrb3V0L2NvbXBvbmVudHMvVGF4ZXMvVGF4ZXMudHN4) | `73.00% <ø> (ø)` | | | [...e/react/components/PaymentButton/PaymentButton.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Freact%2Fcomponents%2FPaymentButton%2FPaymentButton.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL3JlYWN0L2NvbXBvbmVudHMvUGF5bWVudEJ1dHRvbi9QYXltZW50QnV0dG9uLnRzeA==) | `53.33% <100.00%> (ø)` | | | [...dvantage/subscribe/checkout/hooks/useCalculate.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Fcheckout%2Fhooks%2FuseCalculate.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL2NoZWNrb3V0L2hvb2tzL3VzZUNhbGN1bGF0ZS50c3g=) | `33.33% <0.00%> (-8.34%)` | :arrow_down: | | [.../subscribe/checkout/components/Summary/Summary.tsx](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree&filepath=static%2Fjs%2Fsrc%2Fadvantage%2Fsubscribe%2Fcheckout%2Fcomponents%2FSummary%2FSummary.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical#diff-c3RhdGljL2pzL3NyYy9hZHZhbnRhZ2Uvc3Vic2NyaWJlL2NoZWNrb3V0L2NvbXBvbmVudHMvU3VtbWFyeS9TdW1tYXJ5LnRzeA==) | `77.21% <76.47%> (+0.82%)` | :arrow_up: | | ... and [2 more](https://app.codecov.io/gh/canonical/ubuntu.com/pull/13889?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=canonical) | |