DanDiplo / Umbraco.AuditLogViewer

An audit and content log table viewer for Umbraco CMS
https://www.diplo.co.uk/blog/web-development/diplo-audit-log-viewer-for-umbraco-10/
16 stars 7 forks source link

Adding Export to CSV Feature #15

Closed s4net closed 3 months ago

s4net commented 3 months ago

Hello, This pull request adds an "Export to CSV" feature to the application. This feature allows users to export data from the application into a CSV file, making it easier to share and analyze the data using spreadsheet software.

Changes Made New Functionality:

Relates to #Export/Save function from audit log viewer #1

DanDiplo commented 3 months ago

Apologies for not looking at this sooner, but it looks really promising. I'm just going to spend a bit of time reviewing... but massive thanks!

DanDiplo commented 3 months ago

OK, I've merged this in and released a new version 10.1.0 - https://www.nuget.org/packages/Diplo.AuditLogViewer/10.1.0

There seemed to be an error in your code as it was calling var timestamp = getFormattedTimestamp(); but the function didn't exist. However, this didn't seem to be used, so I removed it.

I also moved the Export button to the header, as I thought it looked neater.

CSV can be quite a tricky format, so there is potential for issues with encoding, so we'll have to see what happens :) At some point I might move it be server side.

But thanks for this - really appreciated 👍