Closed AlirezaRa94 closed 1 year ago
@AlirezaRa94 can you add a short video to illustrate the feature?
Sure, this is a demo video of the tokens page.
@shankari this looks ok?
Looks fine. What does "export" do?
@shankari to export the table as a CSV file.
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.
Couple of other high-level comments:
nrelop
(e.g. nrelop_uprm_civic_<random_string>
. You might want to put the prefix into the dynamic config in case other apps want to use a different prefix.test
substring in them (e.g. nrelop_program_test_<random_string>
. We could just have deployers manually insert the _test_
string, but IMHO it is better to have a checkbox rather than rely on the deployer to remember how to mark test tokensI 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.
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.
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.
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.