-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Activity: CSV Export #2488
Conversation
Co-authored-by: Ajeett01 <abhitiwari501@gmail.com>
[activity-csv] Activity: CSV Export
Nice work! A few thoughts:
|
Oh and what about exporting notes as well? |
0bc40a7
to
287483e
Compare
There are 2 commas before the timestamp (in both, ln and onchain csv):
Else, edge case for notes: they can contain a comma char itself. so we should export notes in qoutes: "" nit: the csv files still start with "Payments" vs. "Transaction" |
485db43
to
b85e087
Compare
Expiry in invoices.csv also has a comma, but I think we should export "Original Expiry" (e.g.
The 2 commas are still there (in case no note is exported). |
1cb0837
to
723295f
Compare
My bad, the 2 commas totally make sense of course, because the data always has to match the headlines and in case there is no note the 2 commas will lead to an empty "note" field when importing the csv to e.g. Excel. But you now put everything in quotes, not sure why, I think that is unneeded. |
Excel, Numbers etc should be able to grok out the values with quotes in place. |
views/Activity/ActivityToCsv.tsx
Outdated
closeModal(); | ||
} catch (err) { | ||
console.error( | ||
localeString('views.ActivityToCsv.csvDownloadFailed'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need to localize this if it's only used for console errors
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Description
Relates to issue: ZEUS-1467