Open ashrafchowdury opened 8 months ago
Thanks for putting in the effort @ashrafchowdury. I like your approach.
One way, I was thinking about it is you can trigger a function when the user presses the button which fetches the data from tinybird (probably via a new tinybird pipeline) and downloads it for the user.
Description
I propose integrating a robust document analytics data export functionality within the system so that users can easily export their data. This feature aims to enhance the platform's capabilities by allowing users to export detailed analytics data for further analysis and reporting.
Notes:
Technical issues:
I have created a custom hook to abstract all the necessary data from different components by hooks, but the problem is we don't have any
useEffect
hook or anyfunction
that will run when data loads. So there are two possible solutions in my mind:useEffect
hook in every component to send the analytics data on that custom hook.swr
hooks, likeuse-document
,use-stats
on that custom hook to fetch data on the spot and export the data.I want to know your opinion on which option is better or share a better suggestion.
Feature Preview
https://github.com/mfts/papermark/assets/87828904/29f45226-7013-4911-952d-810d505e11c2