unlock icon indicating copy to clipboard operation
unlock copied to clipboard

Bulk export receipts

Open julien51 opened this issue 2 years ago • 10 comments

Currently, receipts have to be downloaded one by one. This is a bit cumbersome for lock managers. Let's add the ability to download all receipts as an async job. A background job should be triggered when the user clicks the button to download all receipts. the background job will generate every single receipt as a PDF and combine them in a large zip file.

Once completed, the user should be able to download the file.

Since the export can take a while, we should probably create a specific model in the database that will keep track of all the "exports". The table will keep track of the status of the job (pending, completed). The Settings UI should list any "recent" export (last 30 days) and allow users to download the ones that are completed.

julien51 avatar Nov 27 '23 15:11 julien51

I'm interested in this bounty

0xRowdy avatar Mar 05 '24 22:03 0xRowdy

Thanks @0xRowdy ! Please feel free to ask any question that arises here or on Discord!

julien51 avatar Mar 05 '24 22:03 julien51

The backend was done. There is an API endpoint if you look into the openapi spec. The only change needed is to create a button which makes a request to that endpoint on the frontend.

searchableguy avatar Mar 08 '24 08:03 searchableguy

The backend was done. There is an API endpoint if you look into the openapi spec. The only change needed is to create a button which makes a request to that endpoint on the frontend.

Great to hear. Thanks for the update.

0xRowdy avatar Mar 08 '24 16:03 0xRowdy

The backend was done. There is an API endpoint if you look into the openapi spec. The only change needed is to create a button which makes a request to that endpoint on the frontend.

@searchableguy Can you confirm this is the correct API for this issue? https://docs.unlock-protocol.com/api/locksmith/get-receipts

0xRowdy avatar Mar 10 '24 14:03 0xRowdy

Yes @0xRowdy

searchableguy avatar Mar 10 '24 14:03 searchableguy

@0xRowdy still working on this? 👀

iMac7 avatar Jun 18 '24 09:06 iMac7

@iMac7 It's yours if you want it!

julien51 avatar Jul 22 '24 17:07 julien51

yup!

iMac7 avatar Jul 24 '24 15:07 iMac7

0x88751a1a1fCC8ae52a9eE596e9B6B5b26409e562

iMac7 avatar Jul 25 '24 11:07 iMac7