Export feature
Closed this issue ยท 8 comments
raae commented
A user should be able to export to analyse themselves, or if they are quitting.
raae commented
Also asked for by a cancelled user.
raae commented
How I would approach it @olavea:
First task:
- Create a
HousekeepingCard
component by copying theDangerCard
component. - Add it above the
DangerCard
inProfileIndexPage
- Change the content so it makes sense for export.
- Replace the onClick functionality and display an alert that says "Export"
Then change out the alert for:
- Get all the entries
- Create .csv file (I will find a library I have used before
- Trigger download of the file (not sure how this is done)
olavea commented
Changed my mind, I will start on this also. Playing to one of my strengths playfully starting up something new! ๐ธ ๐
olavea commented
https://userbase.com/docs/sdk/get-databases/
If getDatabases is ๐ or not, I will work on hoe to make it work ๐บ
raae commented
I gave som comments in the PR, you shall not talk to Userbase the data is already there in entries
.
Use and follow this to convert the entries into csv: https://www.papaparse.com/docs#json-to-csv.
raae commented
The we have to figure out how to trigger a download of this csv as a file...
olavea commented