papermark icon indicating copy to clipboard operation
papermark copied to clipboard

Feat: Added feature Export Visits to download the csv of Visits and Views

Open aryany9 opened this issue 1 year ago • 6 comments

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

Based on the Response, I am creating the CSV blob and downloading it on button click. image

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 avatar Oct 12 '24 16:10 aryany9

@aryany9 is attempting to deploy a commit to the mftsio Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 12 '24 16:10 vercel[bot]

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Oct 12 '24 16:10 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

aryany9 avatar Oct 12 '24 16:10 aryany9

recheck

aryany9 avatar Oct 12 '24 16:10 aryany9

@mfts Please attach the oss.gg labels as well. They were not assigned by the bot.

aryany9 avatar Oct 13 '24 06:10 aryany9

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.

aryany9 avatar Oct 15 '24 10:10 aryany9

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

vercel[bot] avatar Oct 16 '24 05:10 vercel[bot]

Awarding aryany9: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/aryany9

oss-gg[bot] avatar Oct 16 '24 05:10 oss-gg[bot]