Skip to content

feat(EMI-3174): create offer history component#17405

Merged
dariakoko merged 7 commits into
review-app-counterofferfrom
daria/EMI-3174/create-offer-history-component
Jul 6, 2026
Merged

feat(EMI-3174): create offer history component#17405
dariakoko merged 7 commits into
review-app-counterofferfrom
daria/EMI-3174/create-offer-history-component

Conversation

@dariakoko

@dariakoko dariakoko commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The type of this PR is: Feat

This PR solves EMI-3174

Description

Adds an "Offer history" expandable (Palette Expandable, toggle arrow) to the respond/counteroffer page so a collector can review the full negotiation.

Renders only when there are submitted offers

⚠️ Note - incomplete offers: buyerTotal (the offer total incl. shipping & taxes) is not defined for incomplete/original offers. Shipping & taxes can't be computed until the order is further along. For those rows the last column renders "INCOMPLETE ORDER" instead of an amount. The bare offer amount is still shown. So an offer history can legitimately contain a mix of complete rows (with a total) and incomplete rows (without). I will raise it during the QA or earlier to confirm the approach and/or copy.

Web folded Web expanded Mobile expanded
image image image

@dariakoko dariakoko changed the title feat(EMI-3174)create offer history component feat(EMI-3174): create offer history component Jun 30, 2026
@dariakoko dariakoko force-pushed the daria/EMI-3174/create-offer-history-component branch from 10d6ea5 to b481afd Compare June 30, 2026 13:19
@relativeci

relativeci Bot commented Jun 30, 2026

Copy link
Copy Markdown

#9086 Bundle Size — 8.96MiB (+0.15%).

e7fac50(current) vs aa73561 main#9083(baseline)

Warning

Bundle contains 29 duplicate packages – View duplicate packages

Bundle metrics  Change 7 changes Regression 2 regressions
                 Current
#9086
     Baseline
#9083
Regression  Initial JS 2.91MiB(~+0.01%) 2.91MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 100% 97.44%
Change  Chunks 112(+0.9%) 111
Change  Assets 115(+0.88%) 114
Change  Modules 5641(+0.2%) 5630
Regression  Duplicate Modules 663(+1.07%) 656
Change  Duplicate Code 4.95%(+0.2%) 4.94%
No change  Packages 248 248
No change  Duplicate Packages 28 28
Bundle size by type  Change 2 changes Regression 2 regressions
                 Current
#9086
     Baseline
#9083
Regression  JS 8.72MiB (+0.13%) 8.71MiB
Regression  Other 236.63KiB (+1.06%) 234.14KiB

Bundle analysis reportBranch daria/EMI-3174/create-offer-hist...Project dashboard


Generated by RelativeCIDocumentationReport issue

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an “Offer history” expandable to the Order2 Respond / Counteroffer flow so collectors can review the full negotiation when submitted offers exist.

Changes:

  • Render a new Order2OfferHistory section on the respond page and spread its Relay fragment.
  • Implement Order2OfferHistory UI to list submitted offers with amount and (when available) buyer total.
  • Add Jest coverage for the expandable rendering behavior and the “INCOMPLETE ORDER” fallback.

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Apps/Order2/Routes/Respond/Order2RespondApp.tsx Renders the new offer history component and includes its fragment spread.
src/Apps/Order2/Routes/Respond/Components/Order2OfferHistory.tsx New expandable UI to display submitted offer rows (date/source/amount/total).
src/Apps/Order2/Routes/Respond/Components/tests/Order2OfferHistory.jest.tsx New RTL tests for rendering, expanding, and incomplete total behavior.
src/generated/order2Routes_RespondQuery.graphql.ts Relay artifact update to fetch submitted offers and related fields for respond route.
src/generated/Order2RespondApp_order.graphql.ts Relay fragment artifact update to include the new Order2OfferHistory spread.
src/generated/Order2OfferHistoryTestQuery.graphql.ts New Relay test operation artifact for the offer history component tests.
src/generated/Order2OfferHistory_order.graphql.ts New Relay fragment artifact for Order2OfferHistory.
Files not reviewed (4)
  • src/generated/Order2OfferHistoryTestQuery.graphql.ts: Generated file
  • src/generated/Order2OfferHistory_order.graphql.ts: Generated file
  • src/generated/Order2RespondApp_order.graphql.ts: Generated file
  • src/generated/order2Routes_RespondQuery.graphql.ts: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Apps/Order2/Routes/Respond/Components/Order2OfferHistory.tsx
Comment thread src/Apps/Order2/Routes/Respond/Components/Order2OfferHistory.tsx Outdated
dariakoko and others added 2 commits June 30, 2026 20:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
backgroundColor={isSeller ? "mono0" : "mono5"}
>
<Box flex={COLUMNS[0]}>
<Text variant="sm" justifySelf="flex-start">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On mobile, the table text is xm in the design, which will help some of the crowding

@rquartararo rquartararo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! just left a comment about text size on mobile

@dariakoko dariakoko merged commit 18d1e11 into review-app-counteroffer Jul 6, 2026
12 checks passed
@dariakoko dariakoko deleted the daria/EMI-3174/create-offer-history-component branch July 6, 2026 13:23
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.

3 participants