Skip to content

chore: update display for offer on top of limited partner offer#16908

Merged
oxaudo merged 2 commits intomainfrom
oxaudo/partner_offer
Mar 11, 2026
Merged

chore: update display for offer on top of limited partner offer#16908
oxaudo merged 2 commits intomainfrom
oxaudo/partner_offer

Conversation

@oxaudo
Copy link
Member

@oxaudo oxaudo commented Mar 9, 2026

Address final variation for https://artsyproduct.atlassian.net/browse/EMI-3108

Current look:
Screenshot 2026-03-09 at 12 21 39 PM

@oxaudo oxaudo requested a review from starsirius March 9, 2026 17:01
@oxaudo oxaudo self-assigned this Mar 9, 2026
List price: {artworkData.price}
</Text>
{isOfferOnTopOfPartnerOffer &&
orderData.lineItems?.[0]?.listPrice?.__typename === "Money" &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: can we extract these conditions to a separate variable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rquartararo - updated :)

timer.hasValidRemainingTime && (
<Text variant="sm" color="blue100" textAlign="left">
Gallery offer: {orderData.lineItems[0].listPrice.display}{" "}
<span style={{ whiteSpace: "nowrap" }}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious what this looks like on mobile when the text overflows. Do you have a screenshot?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually more for the web if the screen is smaller. For mobile the whole thing is rendered as one column and things fit in one row:
Screenshot 2026-03-10 at 11 11 30 AM

const isOfferOnTopOfPartnerOffer =
isOffer && orderData.source === "PARTNER_OFFER"

// Calculate timer for partner offer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: this might be nice to have in a util file if we feel it's going to be reused

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole timer at some point should probably be consolidated. I created a separate ticket for that on CMS side (https://artsyproduct.atlassian.net/browse/EMI-3024) We probably want to do it here as well. I'll add one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Added one for Force as well: https://artsyproduct.atlassian.net/browse/EMI-3115

@relativeci
Copy link

relativeci bot commented Mar 10, 2026

#7110 Bundle Size — 8.65MiB (-0.08%).

855961c(current) vs 6e64382 main#7107(baseline)

Warning

Bundle contains 31 duplicate packages – View duplicate packages

Bundle metrics  Change 4 changes Improvement 1 improvement
                 Current
#7110
     Baseline
#7107
Improvement  Initial JS 2.84MiB(-0.13%) 2.84MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 19.53% 15.84%
No change  Chunks 110 110
No change  Assets 113 113
Change  Modules 5520(-0.04%) 5522
No change  Duplicate Modules 618 618
Change  Duplicate Code 4.94%(+0.2%) 4.93%
No change  Packages 250 250
No change  Duplicate Packages 30 30
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#7110
     Baseline
#7107
Improvement  JS 8.5MiB (-0.08%) 8.51MiB
No change  Other 152.75KiB 152.75KiB

Bundle analysis reportBranch oxaudo/partner_offerProject dashboard


Generated by RelativeCIDocumentationReport issue

@oxaudo oxaudo merged commit 275ed55 into main Mar 11, 2026
12 checks passed
@oxaudo oxaudo deleted the oxaudo/partner_offer branch March 11, 2026 15:36
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.

2 participants