raae/pow-app

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 the DangerCard component.
  • Add it above the DangerCard in ProfileIndexPage
  • 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)

I'll finish up #184 first

Changed my mind, I will start on this also. Playing to one of my strengths playfully starting up something new! ๐Ÿ˜ธ ๐Ÿ‘

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...

One step in the right direction ๐Ÿ˜ธ
What is next step?

POW-eport-317