Skip to content

Add CSV export for shipments#2617

Merged
pylipp merged 18 commits intomasterfrom
copilot/add-export-csv-button-functionality
Mar 24, 2026
Merged

Add CSV export for shipments#2617
pylipp merged 18 commits intomasterfrom
copilot/add-export-csv-button-functionality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 12, 2026


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits March 12, 2026 13:06
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
@sentry
Copy link
Copy Markdown

sentry bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.29%. Comparing base (a9e0348) to head (0de0bcf).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2617      +/-   ##
==========================================
+ Coverage   78.27%   78.29%   +0.01%     
==========================================
  Files         280      281       +1     
  Lines       20363    20611     +248     
  Branches     2060     2102      +42     
==========================================
+ Hits        15940    16137     +197     
- Misses       4375     4426      +51     
  Partials       48       48              
Flag Coverage Δ
backend 99.50% <ø> (ø)
frontend 70.57% <ø> (+0.15%) ⬆️
sharedComponents 68.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Copilot AI changed the title [WIP] Add functionality to download shipment data as CSV Add CSV export for shipments with filtering Mar 12, 2026
@pylipp
Copy link
Copy Markdown
Contributor

pylipp commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

@pylipp pylipp left a comment

Choose a reason for hiding this comment

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

@copilot work on my comments.
Try harder to fix the new test. It verify the new functionality and pass

Comment thread front/src/views/Transfers/ShipmentsOverview/components/ShipmentExportButton.tsx Outdated
Comment thread front/src/views/Transfers/ShipmentsOverview/components/ShipmentExportButton.tsx Outdated
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Copilot AI changed the title Add CSV export for shipments with filtering Extend shipment export test to verify backend request and CSV download Mar 19, 2026
Copilot AI requested a review from pylipp March 19, 2026 11:12
pylipp added 3 commits March 19, 2026 12:18
…csv-button-functionality' into copilot/add-export-csv-button-functionality
@pylipp pylipp changed the title Extend shipment export test to verify backend request and CSV download Add CSV export for shipments Mar 19, 2026
@pylipp pylipp requested a review from Copilot March 19, 2026 12:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a CSV export capability to the Transfers → Shipments overview so users can download shipment + shipment detail data as a .csv file.

Changes:

  • Adds an Export .csv UI button (with popover options for Sending/Receiving) to the Shipments overview page.
  • Introduces a new GraphQL query to fetch shipment data for export using ShipmentFields.
  • Adds a frontend test covering the export popover interaction and download trigger.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
front/src/views/Transfers/ShipmentsOverview/ShipmentsOverviewView.tsx Renders the new ShipmentExportButton in the page actions.
front/src/views/Transfers/ShipmentsOverview/ShipmentsOverview.test.tsx Adds a test for export popover behavior and download triggering.
front/src/views/Transfers/ShipmentsOverview/components/ShipmentExportButton.tsx New component implementing export UI, fetching, flattening, and CSV download.
front/src/queries/queries.ts Adds SHIPMENT_DATA_FOR_EXPORT_QUERY to retrieve shipments { ...ShipmentFields }.

Copilot AI changed the title Add CSV export for shipments Add validation states to shipment export button Mar 19, 2026
- Disable export button until shipments load, or no data available (rowData.length > 0)
- Show warning alert when no shipments match selected filters
- Add tests for new scenarios
@pylipp pylipp force-pushed the copilot/add-export-csv-button-functionality branch from bf20db2 to e134371 Compare March 20, 2026 19:50
@pylipp pylipp marked this pull request as ready for review March 20, 2026 20:38
@pylipp pylipp changed the title Add validation states to shipment export button Add CSV export for shipments Mar 20, 2026
@pylipp pylipp merged commit 1c31d69 into master Mar 24, 2026
14 checks passed
@pylipp pylipp deleted the copilot/add-export-csv-button-functionality branch March 24, 2026 11:55
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