aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-10-15Renamed from pyblackbird_cc to alphabetlearning - everywhereMatthew Lemon41-2243/+0
2024-10-09wip: implementing CSS classes for category colours on detail pageMatthew Lemon1-0/+1
2024-10-07wip: redesigning the detail pageMatthew Lemon1-0/+1
2024-09-19Looking crap but getting there - the basket...Matthew Lemon2-2/+10
2024-09-19wip: getting the thumbnails of resourcesMatthew Lemon2-0/+9
2024-09-14wip: testing adding resources to shopping cartMatthew Lemon1-8/+0
2024-09-11Removes apparently redundant checks on filepathMatthew Lemon1-4/+0
2024-09-11Cleaning up with ruff, typechecking, etc.Matthew Lemon1-2/+3
I am enabling lots of capability in neovim which is resulting in all this. Don't be scared.
2024-09-11Some formatting changes and calming down ruff slightlyMatthew Lemon8-30/+35
2024-09-10Removed extraneous functionMatthew Lemon1-10/+0
- _write_pdf_to_tempdir(), don't know why i put this in in the first place
2024-09-10Removes extranneous eMatthew Lemon1-1/+1
2024-09-10Removes exception object from logging statementMatthew Lemon1-1/+1
2024-09-10Fix bug in subcategories choices funcMatthew Lemon1-1/+4
2024-09-10Replace relative imports with absoluteMatthew Lemon1-5/+5
2024-09-10All tests pass and sign-up page is editableMatthew Lemon3-46/+63
2024-09-08resources tests passingMatthew Lemon5-32/+51
2024-09-08wip: implementing checkoutMatthew Lemon3-20/+59
- also some formatting changes
2024-09-03Fix for tabbed filter in resource list pageMatthew Lemon1-6/+7
Previously the link selected on the tabbed filter navbar in resources list would filter the featured resources too. This fixes that.
2024-09-03Another docstring onlyMatthew Lemon1-0/+14
2024-09-03Adds a docstring to a view functionMatthew Lemon1-0/+14
2024-09-01wip: implementing the tabbed filter for standard resourcesMatthew Lemon1-2/+16
- it is filtering Featured resources too and it shouldn't. Fix.
2024-09-01Added pagination to the resource list pageMatthew Lemon1-1/+5
2024-09-01Logo and new navbar and new detail designMatthew Lemon1-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
2024-08-08The Cancel button is now managed by crispy forms.Matthew Lemon2-5/+12
2024-08-05wip: adding delete and replace buttons for PDFsMatthew Lemon2-2/+2
2024-08-03Add feature to add PDFs to resourcesMatthew Lemon3-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.
2024-08-03Add return type hint to upload_snapshotted_pages_to_s3Matthew Lemon1-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.
2024-08-03Add admin models for PDFResource and PDFPageSnapshotMatthew Lemon2-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.
2024-08-03Removes blackism....Matthew Lemon1-3/+1
2024-08-03Remove Client created log line that is unnecessary.Matthew Lemon1-1/+0
2024-08-03Add S3 utility module and refactor S3 functions into itMatthew Lemon4-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.
2024-08-03Updated help text in form field.Matthew Lemon1-1/+1
2024-08-03Adds ability to update the thumbnail/feature imagesMatthew Lemon2-7/+51
2024-08-03wip: adding the update thumbnails formMatthew Lemon4-4/+46
2024-08-01Refactor PDF collection type conditions for readability.Matthew Lemon1-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.
2024-08-01Fix: bug where thumbnail image filenames were not being saved on the ↵Matthew Lemon1-0/+1
resource object.
2024-08-01Renamed additional_resource_categories to subcategories in ResourceInfo object.Matthew Lemon1-2/+2
2024-08-01Ordering the subcategories dropdown list on the update form.Matthew Lemon1-0/+1
2024-08-01Ordering the subcategories on the admin page.Matthew Lemon1-1/+3
2024-08-01Releasing the exception working to the error message.Matthew Lemon1-2/+2
2024-08-01Fix bug where new subcategories were being created on selectionMatthew Lemon5-12/+56
2024-08-01Fix error with validation on additional_resource_categoryMatthew Lemon1-1/+0
2024-07-29wip: Adds a new model for additional categoriesMatthew Lemon7-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,
2024-07-29Formatting changes onlyMatthew Lemon1-25/+24
2024-07-29wip: creating a multiple choice field for additional categoriesMatthew Lemon2-4/+12
2024-07-28Added border and badge colour based on categoryMatthew Lemon3-0/+21
- You have to define them on the ResourceCategory model in the database
2024-07-11Adds ability to add colour class to main categoryMatthew Lemon3-0/+21
- Creates a new line in the database - Uses this in the template instead of the default bootstrap class
2024-07-11Curriculum is optional and age ranges are fixedMatthew Lemon4-6/+46
2024-06-23Removed pypdfium2 which doesn't build on FreeBSDMatthew Lemon1-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
2024-06-22Fix erroneous return statementMatthew Lemon1-3/+1