Skip to content
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

Create a new template for activity page offline availability #1086

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

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 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
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.

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
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.

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

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.

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.

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

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.

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.

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

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.

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.

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
Copy link

@tuxology is deleting test VM ...

Copy link

Test VM deleted ✅✅✅

@yokwejuste
Copy link
Collaborator Author

Resolved conflicts after previous merge.

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
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
2 participants