chore(EMI-3293): unify order offer summary components#17423
Conversation
… create Order2OrderSummary
#9092 Bundle Size — 8.96MiB (+0.2%).f4ba87e(current) vs aa73561 main#9083(baseline) Warning Bundle contains 29 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
Bundle analysis report Branch daria/EMI-3293/unify-order-offer... Project dashboard Generated by RelativeCI Documentation Report issue |
| artwork: Order2OrderSummaryArtwork | ||
| isPricingLoading?: boolean | ||
| /** Extra line rendered within the artwork block, below the list price. */ | ||
| artworkExtraContent?: React.ReactNode |
There was a problem hiding this comment.
#suggestion: might be fine to be explicit and call this limitedTimeOffer? or something.
| </Text> | ||
| <Text overflowEllipsis variant="sm" color="mono60" textAlign="left"> | ||
| {[artworkTitle, date].join(", ")} | ||
| </Text> |
There was a problem hiding this comment.
This reminds me that we are missing the gallery's name in the summary (which is displayed in the details page summary). Let's use this opportunity to add it back? I'll see if we created a ticket for it.
There was a problem hiding this comment.
Hmmm I actually dont see it in the design for either the order or the counteroffer
I'll catchup with Viv and address in a separate PR if needed
* feat(EMI-3172): create counteroffer step - offer details (#17386) * feat: add respond to offer component, draft * feat: add price breakdown, adjust text sizes * chore: cleanup * feat: add counter offer amount text input * chore: cleanup * feat: animate the OfferDetails component * feat: collapce the offer component on submit * feat: handle submit * chore: adjust styling * chore: remove mutation as its our of scope, will be done in a different ticket * chore: add tests * fix: fix smoke test (not related to the pr) * chore: address review comments * chore: ui changes * chore: tests * chore * feat(EMI-3292): implement address shipping and payment components (#17400) * feat: refactor address, shipping, payment collapsed states and add them to the order screen * chore: add tests * chore: adjust tests * chore * feat(EMI-3174): create offer history component (#17405) * feat: add order history table * feat: adjust styling * chore: add tests * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * chore: address review comments --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * chore(EMI-3293): unify order offer summary components (#17423) * chore: refactor Order2RespondSummary and Order2ReviewStep components, create Order2OrderSummary * chore: refactor * chore: remane title to header * chore: address review comments * feat: add offer exp component (#17437) * feat(EMI-3288): submit counteroffer step (#17442) * feat: add continue to review offer * feat: add RespondCompletedView state * chore: add a todo comment for edit cta * chore: adjust the copy * chore: cleanup the types * feat: add create counter offer * feat: display gallery offer after discarding buyer counter offer * chore: refactor * chore: pre-fill the counter offer amount on page refresh" * feat: submit counter offer, accept, decline * fix: add hasCurrentCounterofferDraft to ensure correct data is displayed on repeated counter offer * chore: adjust comments * chore: refactor, cleanup * chore(EMI-3282): counteroffer tracking (#17444) * chore: add toggledOfferHistory and clickedCounterOfferOption tracking * chore: add clickedOrderProgression call * refactor: extract select action * fix: merge conflict * chore: add clickedOrderProgression and submittedCounterOffer on submit * feat: add terms and conditions link (#17453) * fix: update total for incomplete offer for history to say N/A (#17466) --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Rachel Quartararo <50849237+rquartararo@users.noreply.github.com> Co-authored-by: Oksana <oksana@artsymail.com>
The type of this PR is: Chore
This PR solves EMI-3293
Description
Extracts the shared order-summary card (artwork row + pricing breakdown + buyer-guarantee message) into a single reusable
Order2OrderSummarycomponent, consumed by bothOrder2ReviewStep(checkout) andOrder2RespondSummary(respond).The components on Respond and Checkout routes have identical structure (TODO: in another PR add missing parts to the component on Respond (offer exp data, Submit cta)