Skip to content
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

New feature : Csv Export #2273

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

New feature : Csv Export #2273

wants to merge 8 commits into from

Conversation

Ajeett01
Copy link

@Ajeett01 Ajeett01 commented Jul 1, 2024

Description

Relates to issue: ZEUS-#1467

@@ -31,6 +31,7 @@
"fetch-libraries": "bash fetch-libraries.sh"
},
"dependencies": {
"@json2csv/plainjs": "^7.0.6",
Copy link
Contributor

@shubhamkmr04 shubhamkmr04 Jul 8, 2024

Choose a reason for hiding this comment

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

Lock the version here (remove ^ and run yarn again)

@@ -156,6 +157,7 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-transform-arrow-functions": "7.22.5",
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
Copy link
Contributor

Choose a reason for hiding this comment

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

here too

@shubhamkmr04
Copy link
Contributor

We might have to change the file name from JsonToCsv.tsx to something else.
@kaloudis your thoughts?

onChangeText={setCustomFileName}
/>
<View>
<Button title="Download CSV" onPress={downloadCsv} />
Copy link
Contributor

@kaloudis kaloudis Jul 8, 2024

Choose a reason for hiding this comment

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

this needs to be localized

Copy link
Contributor

Choose a reason for hiding this comment

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

@Ajeett01 look through locale files and add your used strings here

@kaloudis
Copy link
Contributor

kaloudis commented Jul 8, 2024

We might have to change the file name from JsonToCsv.tsx to something else. @kaloudis your thoughts?

ActivityToCsv, perhaps?

@shubhamkmr04
Copy link
Contributor

We might have to change the file name from JsonToCsv.tsx to something else. @kaloudis your thoughts?

ActivityToCsv, perhaps?

Yup we can, or maybe ImportActivity, lets iterate on that

type="feather"
color={themeColor('text')}
underlayColor="transparent"
size={30}
Copy link
Contributor

Choose a reason for hiding this comment

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

adjust the download icon size here as compared to filter and cross icons

Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-07-08 at 2 41 38 PM
  • Update the theme of 'Download csv' and 'close` button (try what would look better and how we have used that in other places)
  • they should cover the full width like the input box
'react-native-reanimated/plugin',
['@babel/plugin-transform-export-namespace-from']
]
Copy link
Contributor

Choose a reason for hiding this comment

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

why have we added that?

if (!csv) return;

try {
if (Platform.OS === 'android') {
Copy link
Contributor

Choose a reason for hiding this comment

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

we are not yet handling the downloading for iOS right ?

'cltv_expiry',
'creation_date',
'expiry'
];
Copy link
Contributor

Choose a reason for hiding this comment

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

@kaloudis would these keys be good to download in our csv data?

Copy link
Contributor

Choose a reason for hiding this comment

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

these look ok, definitely need to flesh them out though

@kaloudis kaloudis added this to the v0.9.1 milestone Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants