api icon indicating copy to clipboard operation
api copied to clipboard

Export data to excel

Open AndreyGoranov opened this issue 3 years ago • 5 comments

Issue: https://github.com/podkrepi-bg/frontend/issues/700

  • Add Export module.
  • Export service to be used around the app in different services that would require exporting.
  • There is an option to specify everything about the template in a single JSON or you could use a default setup with all columns from the data provided for exporting.
  • Add new dependency: https://github.com/exceljs/exceljs
  • Use types for the exportable data and add types for the template as well

AndreyGoranov avatar Dec 09 '22 10:12 AndreyGoranov

❌ Not all tests have run for this PR. Please add the run tests label to trigger them.

github-actions[bot] avatar Dec 09 '22 10:12 github-actions[bot]

@kachar yes will do I had a merge conflict on it and probably I didn't resolve it right

AndreyGoranov avatar Dec 09 '22 13:12 AndreyGoranov

@AndreyGoranov You can delete the local file and run yarn to regenerate it.

I hope you're using yarn 3 (yarn set version berry)

kachar avatar Dec 09 '22 13:12 kachar

@AndreyGoranov I think this yarn update has messed up the versions of a couple of dependencies, for example, @prisma/client has been updated from 4.3.1 to 4.7.1 because it's defined with ^ prefix in package.json

image

kachar avatar Dec 09 '22 17:12 kachar

@kachar I think its ok now ?

AndreyGoranov avatar Dec 09 '22 17:12 AndreyGoranov

@AndreyGoranov Can you please create a PR with the update that @igoychev mentioned above?

kachar avatar Dec 12 '22 14:12 kachar

@kachar https://github.com/podkrepi-bg/api/pull/396

AndreyGoranov avatar Dec 12 '22 14:12 AndreyGoranov