aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Removes extraneous code create_resource_objectsMatthew Lemon2024-05-261-20/+0
|
* Correctly handles the unique constraint on feature_slotMatthew Lemon2024-05-264-54/+68
|
* Better presentation of the feature resourcesMatthew Lemon2024-05-266-3/+77
|
* Removes breakpointMatthew Lemon2024-05-261-1/+0
|
* Basic feature slot presentation in index pageMatthew Lemon2024-05-265-6/+27
|
* wip: create form now as a feature fieldMatthew Lemon2024-05-262-2/+6
|
* Tests validation of resource create formMatthew Lemon2024-05-243-8/+39
| | | | | | | | In particular related to the new feature_slot field. Ensures that the feature_slot integer must be unique when attempts to save to the database and that the value given in the form is between 1 and 3.
* Fixed the failing form testMatthew Lemon2024-05-221-38/+23
| | | | | We now pass a MultiValueDict object to which allows self.files.getlist() to work properly inside clean_pdf_files()
* Resource now has a feature slot fieldMatthew Lemon2024-05-226-6/+80
|
* wip: starting to test the featured resource viewMatthew Lemon2024-05-224-0/+19
|
* wip:Matthew Lemon2024-05-203-2/+26
| | | | | | - Passing test for raw ORM handling to find snapshot files from an object - Quietens down pytest output
* Removes unnwanted tests.py fileMatthew Lemon2024-05-191-1/+0
|
* wip: improving the test setup - againMatthew Lemon2024-05-161-1/+5
|
* wip: improving the test setupMatthew Lemon2024-05-162-24/+19
|
* wip: working on setting up the testsMatthew Lemon2024-05-162-4/+43
|
* wip: starting to test feature resource functionality with factoriesMatthew Lemon2024-05-165-2/+68
|
* wip: replacing os.path.basename with PathMatthew Lemon2024-05-161-3/+5
|
* wip: markdown implemented for description field but working on help_textMatthew Lemon2024-05-165-2/+55
|
* Moving to pytest syntax for testsMatthew Lemon2024-05-161-13/+13
|