e-mission / op-admin-dashboard

An admin/deployer dashboard for the NREL OpenPATH platform
0 stars 10 forks source link

Token feat #9

Closed AlirezaRa94 closed 1 year ago

AlirezaRa94 commented 1 year ago

The functionalities discussed in #6 has added. To display QR codes in the data table, you need to change the QRCODE_PATH variable in the tokens.py file.

asiripanich commented 1 year ago

@AlirezaRa94 can you add a short video to illustrate the feature?

AlirezaRa94 commented 1 year ago

Sure, this is a demo video of the tokens page.

https://user-images.githubusercontent.com/50445403/215402817-18fe9316-c09c-4930-aa46-f132148c6888.mp4

asiripanich commented 1 year ago

@shankari this looks ok?

shankari commented 1 year ago

Looks fine. What does "export" do?

asiripanich commented 1 year ago

@shankari to export the table as a CSV file.

shankari commented 1 year ago

How would it export the QR codes? csv has to be plain text. I would suggest exporting the QR codes as individual image files, where the file name is the token. That's how the script currently saves the QR codes.

shankari commented 1 year ago

Couple of other high-level comments:

I have been handling both these requests by judicious specification of the program name but it might be better to make it more explicit for general use.

AlirezaRa94 commented 1 year ago

It saves QR codes as individual image files based on the script. For the export button to show all QR codes, we are trying to figure out how to export the table as, for instance, a PDF file.

shankari commented 1 year ago

I am not sure that a single pdf file would be best - they have to send out/print the codes individually to participants. I would suggest exporting as a zip file of QR code files.