Feat: Added feature Export Visits to download the csv of Visits and Views
close #786
This PR adds the Export functionality to download the Visits & Views counts in an csv file on "Export Visits" button click.
Describe your changes
I have added an API to fetch the Views and Visits as per the document id and provide the JSON response in return.
Based on the Response, I am creating the CSV blob and downloading it on button click.
Checklist before requesting a review
- [x] I have performed a self-review of my code
- [x] If it is a core feature, I have added thorough tests.
- [x] I have added quick video solution as requested below.
https://github.com/user-attachments/assets/eee3d12f-0164-4fad-8583-0214de0be8ea
@aryany9 is attempting to deploy a commit to the mftsio Team on Vercel.
A member of the Team first needs to authorize it.
All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.
I have read the CLA Document and I hereby sign the CLA
recheck
@mfts Please attach the oss.gg labels as well. They were not assigned by the bot.
Hi @mfts, Thankyou for pointing out the abandoned package. It has been removed and the approach has been changed as well. I have tested it with the new approach it is working as expected. Do let me know if you require any more changes. Thankyou.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| papermark | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 16, 2024 5:37am |
Awarding aryany9: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/aryany9