aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Looking crap but getting there - the basket...Matthew Lemon2024-09-192-2/+10
|
* wip: getting the thumbnails of resourcesMatthew Lemon2024-09-192-0/+9
|
* wip: testing adding resources to shopping cartMatthew Lemon2024-09-141-8/+0
|
* Removes apparently redundant checks on filepathMatthew Lemon2024-09-111-4/+0
|
* Cleaning up with ruff, typechecking, etc.Matthew Lemon2024-09-111-2/+3
| | | | | I am enabling lots of capability in neovim which is resulting in all this. Don't be scared.
* Some formatting changes and calming down ruff slightlyMatthew Lemon2024-09-118-30/+35
|
* Removed extraneous functionMatthew Lemon2024-09-101-10/+0
| | | | | - _write_pdf_to_tempdir(), don't know why i put this in in the first place
* Removes extranneous eMatthew Lemon2024-09-101-1/+1
|
* Removes exception object from logging statementMatthew Lemon2024-09-101-1/+1
|
* Fix bug in subcategories choices funcMatthew Lemon2024-09-101-1/+4
|
* Replace relative imports with absoluteMatthew Lemon2024-09-101-5/+5
|
* All tests pass and sign-up page is editableMatthew Lemon2024-09-103-46/+63
|
* resources tests passingMatthew Lemon2024-09-085-32/+51
|
* wip: implementing checkoutMatthew Lemon2024-09-083-20/+59
| | | | - also some formatting changes
* Fix for tabbed filter in resource list pageMatthew Lemon2024-09-031-6/+7
| | | | Previously the link selected on the tabbed filter navbar in resources list would filter the featured resources too. This fixes that.
* Another docstring onlyMatthew Lemon2024-09-031-0/+14
|
* Adds a docstring to a view functionMatthew Lemon2024-09-031-0/+14
|
* wip: implementing the tabbed filter for standard resourcesMatthew Lemon2024-09-011-2/+16
| | | | - it is filtering Featured resources too and it shouldn't. Fix.
* Added pagination to the resource list pageMatthew Lemon2024-09-011-1/+5
|
* Logo and new navbar and new detail designMatthew Lemon2024-09-011-6/+3
| | | | | | | - logo in place - new navbar - removed Joanna Lemon, etc - tidying up the detail page, using cards and nicer titles - better detail panel at the top of the page with a table in it
* The Cancel button is now managed by crispy forms.Matthew Lemon2024-08-082-5/+12
|
* wip: adding delete and replace buttons for PDFsMatthew Lemon2024-08-052-2/+2
|
* Add feature to add PDFs to resourcesMatthew Lemon2024-08-033-3/+89
| | | | Implemented the ability to upload and manage PDFs for resources. Added the necessary form, view, and templates to support this functionality. Updated routes and UI elements to integrate the new feature seamlessly.
* Add return type hint to upload_snapshotted_pages_to_s3Matthew Lemon2024-08-031-1/+1
| | | | This change explicitly specifies that the function upload_snapshotted_pages_to_s3 returns a boolean. Adding type hints helps improve code readability and maintainability by providing clear expectations on the function's return value.
* Add admin models for PDFResource and PDFPageSnapshotMatthew Lemon2024-08-032-1/+15
| | | | Expand the admin interface to include PDFResource and PDFPageSnapshot models. The new admin classes define `list_display` attributes to manage displayed columns in the admin list views.
* Removes blackism....Matthew Lemon2024-08-031-3/+1
|
* Remove Client created log line that is unnecessary.Matthew Lemon2024-08-031-1/+0
|
* Add S3 utility module and refactor S3 functions into itMatthew Lemon2024-08-034-113/+116
| | | | Created a new `s3.py` utility module for handling S3 interactions including file uploads and generating presigned URLs. Refactored views to utilize these new utility functions and moved the PDF collection type function to a new `utils.py` module to improve code organization and readability.
* Updated help text in form field.Matthew Lemon2024-08-031-1/+1
|
* Adds ability to update the thumbnail/feature imagesMatthew Lemon2024-08-032-7/+51
|
* wip: adding the update thumbnails formMatthew Lemon2024-08-034-4/+46
|
* Refactor PDF collection type conditions for readability.Matthew Lemon2024-08-011-5/+5
| | | | Simplify conditional checks for PDF collection types by removing unnecessary line continuations. Also, fix param format in hx_download_button docstring and adjust string formatting for error messages.
* Fix: bug where thumbnail image filenames were not being saved on the ↵Matthew Lemon2024-08-011-0/+1
| | | | resource object.
* Renamed additional_resource_categories to subcategories in ResourceInfo object.Matthew Lemon2024-08-011-2/+2
|
* Ordering the subcategories dropdown list on the update form.Matthew Lemon2024-08-011-0/+1
|
* Ordering the subcategories on the admin page.Matthew Lemon2024-08-011-1/+3
|
* Releasing the exception working to the error message.Matthew Lemon2024-08-011-2/+2
|
* Fix bug where new subcategories were being created on selectionMatthew Lemon2024-08-015-12/+56
|
* Fix error with validation on additional_resource_categoryMatthew Lemon2024-08-011-1/+0
|
* wip: Adds a new model for additional categoriesMatthew Lemon2024-07-297-9/+119
| | | | | | | | - Adds new ResourceSubcategory - Uses this for choices= in the Resource form (create) - Adds this new model to the admin Doesn't validate in the edit form yet,
* Formatting changes onlyMatthew Lemon2024-07-291-25/+24
|
* wip: creating a multiple choice field for additional categoriesMatthew Lemon2024-07-292-4/+12
|
* Added border and badge colour based on categoryMatthew Lemon2024-07-283-0/+21
| | | | - You have to define them on the ResourceCategory model in the database
* Adds ability to add colour class to main categoryMatthew Lemon2024-07-113-0/+21
| | | | | - Creates a new line in the database - Uses this in the template instead of the default bootstrap class
* Curriculum is optional and age ranges are fixedMatthew Lemon2024-07-114-6/+46
|
* Removed pypdfium2 which doesn't build on FreeBSDMatthew Lemon2024-06-231-17/+19
| | | | | | | | | | | | Libraries used: - PdPDF2 (to get basic PDF length) - https://pypi.org/project/PyPDF2/ - pdf2image (to extract images from each page) - https://github.com/Belval/pdf2image Reduction of quality of screenshotted image is in place. Reduced pdf screenshot quality considerably
* Fix erroneous return statementMatthew Lemon2024-06-221-3/+1
|
* Removes unnecessary commentMatthew Lemon2024-06-221-28/+0
|
* Better use of pytest-django markMatthew Lemon2024-06-221-3/+2
|
* Fixes bug where multiple PDFs not snappshottedMatthew Lemon2024-06-222-7/+38
| | | | | Includes test of new function which determines the length and composition of the snappshotted pages.