Skip to content

Conversation

@yokwejuste
Copy link
Collaborator

@yokwejuste yokwejuste commented Jan 15, 2024

Summary

For this PR, we will be using waesyprint python library to convert an html jinja template to a PDF. This will include us using variables in a context passed from the view endpoint.
Closes #899

Changes

  • Establish a util function for PDF rendering
  • Create the Jinja template for the Activity page download (conditioning, filters...)
  • Create a view route for the activity download for each activity
  • Optimize the loading of images on the PDF (pdf rendering optimization)
    • From Robodash
    • From the Cloudinary
  • Build a QR code generator for the Activity link
  • Performing test

@yokwejuste yokwejuste marked this pull request as ready for review January 20, 2024 09:10
@yokwejuste yokwejuste requested a review from kamthamc January 20, 2024 09:10
@yokwejuste yokwejuste self-assigned this Jan 31, 2024
@yokwejuste yokwejuste added the create-test-vm this issue needs a test vm to be auto created by github action label Mar 5, 2024
@github-actions
Copy link

github-actions bot commented Mar 5, 2024

@yokwejuste is creating a test VM for this PR 🚀🚀🚀
This may take a few minutes so relax and grab a cup of coffee ☕
We will notify you when the VM is ready.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

1 similar comment
@github-actions
Copy link

github-actions bot commented Mar 5, 2024

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

Test VM is ready ✅✅✅
You can access it with the url:
https://zubhub-test-1086.unstructured.studio
Default username: dummy
default password: dummy_password

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

@yokwejuste is creating a test VM for this PR 🚀🚀🚀
This may take a few minutes so relax and grab a cup of coffee ☕
We will notify you when the VM is ready.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

Test VM is ready ✅✅✅
You can access it with the url:
https://zubhub-test-1086.unstructured.studio
Default username: dummy
default password: dummy_password

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

@yokwejuste is creating a test VM for this PR 🚀🚀🚀
This may take a few minutes so relax and grab a cup of coffee ☕
We will notify you when the VM is ready.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

Test VM is ready ✅✅✅
You can access it with the url:
https://zubhub-test-1086.unstructured.studio
Default username: dummy
default password: dummy_password

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

@yokwejuste is creating a test VM for this PR 🚀🚀🚀
This may take a few minutes so relax and grab a cup of coffee ☕
We will notify you when the VM is ready.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

@github-actions
Copy link

github-actions bot commented Mar 5, 2024

Test VM is ready ✅✅✅
You can access it with the url:
https://zubhub-test-1086.unstructured.studio
Default username: dummy
default password: dummy_password

@tuxology tuxology removed the create-test-vm this issue needs a test vm to be auto created by github action label May 14, 2024
@github-actions
Copy link

@tuxology is deleting test VM ...

@github-actions
Copy link

Test VM deleted ✅✅✅

@yokwejuste
Copy link
Collaborator Author

Resolved conflicts after previous merge.

@github-actions
Copy link

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

add utils for qr code and pdf rendering
implements template for pdf
routes and views for endpoint
utils for downloadable binaries
updates to pdf template
@NdibeRaymond NdibeRaymond changed the base branch from master to staging July 18, 2024 06:45
@github-actions
Copy link

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design a PDF template for activity

3 participants