Skip to content

export installed packages and updates to CSV#5175

Merged
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
feat/export-packages-csv
Jul 22, 2026
Merged

export installed packages and updates to CSV#5175
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
feat/export-packages-csv

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request adds a feature to export the list of packages to a CSV file from both the Installed Packages and Software Updates pages. It introduces a new toolbar button for this action and handles the export process, including CSV formatting and error handling.

CSV Export Feature:

  • Added an Export to CSV toolbar button to both the Installed Packages (InstalledPackagesPage.cs) and Software Updates (SoftwareUpdatesPage.cs) pages, allowing users to export the current package list or selection.
  • Implemented the ExportPackagesToCsvAsync method in AbstractPackagesPage.axaml.cs to handle CSV export, including file selection, CSV building, and user notifications.
  • Added CSV formatting helpers (BuildCsv and CsvEscape) to ensure proper CSV output, including UTF-8 BOM for compatibility with Excel and correct escaping of special characters.

Dependency and Import Updates:

  • Added necessary imports for file handling, encoding, and Avalonia file picker support in AbstractPackagesPage.axaml.cs.

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 CSV export support for installed packages and available updates.

Changes:

  • Adds export toolbar actions to both package pages.
  • Exports selected or filtered packages with CSV escaping and UTF-8 BOM.
  • Provides save notifications and error handling.

Reviewed changes

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

File Description
AbstractPackagesPage.axaml.cs Implements shared CSV export logic.
InstalledPackagesPage.cs Adds the CSV export button.
SoftwareUpdatesPage.cs Adds the CSV export button.

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

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit 74a3082 into main Jul 22, 2026
6 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the feat/export-packages-csv branch July 22, 2026 18:02
@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jul 22, 2026 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Offer an option to export selected reports to .csv file

3 participants