-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Added feature Export Visits to download the csv of Visits and Views #840
Conversation
… File Detail page dropdown menu.
@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 ✍️ ✅ |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aryany9 the package you used is abandoned! please make sure you review packages before adding anything external.
please change the approach to do it without an external library.
for example, something like this: https://dev.to/graciesharma/implementing-csv-data-export-in-react-without-external-libraries-3030
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing! Thanks so much for following the request and making it native without an external parser :)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Awarding aryany9: 750 points 🕹️ Well done! Check out your new contribution on oss.gg/aryany9 |
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](https://private-user-images.githubusercontent.com/31789393/375971363-9f01e963-c53c-4642-8771-68ae4f4b7420.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDMxNzUsIm5iZiI6MTczODk0Mjg3NSwicGF0aCI6Ii8zMTc4OTM5My8zNzU5NzEzNjMtOWYwMWU5NjMtYzUzYy00NjQyLTg3NzEtNjhhZTRmNGI3NDIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE1NDExNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjNGRlMTkyZDJkNDNmNzRjMmM3MGZhN2IwYjRkOTZiMGMzODU4OWExODAzODBmMmI0M2QxMjM3MDU4MDBhNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.aZxskeu8_SLZDCFxPTw66Zf1uTveiOVfX26cTRw2kF8)
Based on the Response, I am creating the CSV blob and downloading it on button click.
![image](https://private-user-images.githubusercontent.com/31789393/375971324-c4e45b8e-5d9d-4872-83c8-5086b072a56e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDMxNzUsIm5iZiI6MTczODk0Mjg3NSwicGF0aCI6Ii8zMTc4OTM5My8zNzU5NzEzMjQtYzRlNDViOGUtNWQ5ZC00ODcyLTgzYzgtNTA4NmIwNzJhNTZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE1NDExNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzNmU3YWY0YTZlOGZiNDJhNThmYTRkOGZmYWZjY2VlOGJmMzIxOTY1NTlkNzk4ZWM2OTBjNzEyZWE2YTAxZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wNwyi0Bbgt6S9NxKozjBjjHvmuaBa22QTqLTazCm7Do)
Checklist before requesting a review
20241012_214432357.mp4