GitLab - https://gitlab.com/nfra190
- Renamed title and headers to reflect Noah's Computer Shop.
- mainscreen.html
- 14, 19, 21, 53.
- Added about page describing Noah's Computer Shop and some of the services we provide.
- about.html and mainscreen.html
- 1 - 31 for about.html page.
- 19 - 22 for mainscreen.html
- Added a sample inventory that runs when part and product tables are empty.
- BootStrapData.java
- lines 50 - 106.
- Added a buy now button in products so users can purchase a product.
- When users purchases a product successfully we decrement the inventory of that product by one.
- The user is able to see a success screen or a failed screen depending on if they purchased a product successfully or not.
- AddProductController.java
- mainscreen.html
- boughtproducterror.html
- boughtproductsuccessfully.html
- In AddProductController.java file lines 179 - 195.
- In mainscreen.html file line 89.
- In boughtproducterror.html new file so lines 1 - 16.
- In boughtproductsuccessfully.html new file so lines 1 - 13.
- Added minInv and maxInv.
- Added min and max inputs and display.
- Added inventory validators.
- Modify the sample inventory to have min and max.
- Enforce that the inventory is between or at the minimum and maximum value.
- BootStrapData.java
- InhousePartForm.html
- InventoryValidator.java
- ValidInventory.java
- mainscreen.html
- OutsourcedPartForm.html
- Part.java
- BootStrapData.java
- 73, 74 adds minInv and maxInv to Apple part.
- 83, 84 adds minInv and maxInv to Dell part.
- 93, 94 adds minInv and maxInv to HP part.
- 103, 104 adds minInv and maxInv to Logitech part.
- 113, 114 adds minInv and maxInv to Nvidia part.
- InhousePartForm.html
- 24 - 29 min and max inventory inputs.
- 32 - 35 handles display input validation errors.
- InventoryValidator.java
- 1 - 31 added new validator to enforce that the inventory is between or at the minimum and maximum value.
- ValidInventory.java
- 1 - 17 added new validator interface.
- mainscreen.html
- 41 - 42 Min and Max Inventory tab.
- 51 -52 minInv and maxInv values.
- OutsourcedPartForm.html
- 24 - 29 min and max inventory inputs.
- 33 - 36 handles display input validation errors.
- Part.java
- 34 - 37 added min and max int.
- 51 -52 added min and max to Part class.
- 96 - 104 added min and max get and set methods.
- Added logic to isValid function in EnufPartsValidator to check if adding to product inventory decreases the parts in associated parts inventory amount less than that parts minimum inventory.
- Added to productForm the min and max tab and values.
- Already displaying error messages for low inventor (handled this in part G).
- Already displaying error messages when adding and updating parts if the inventory is greater than the maximum (handled this in part G).
- EnufPartsValidator.java
- productForm.html
- 38 - 44 in EnufPartsValidator.java
- EnufPartsValidator.java
- 40 -41
- 50 -51
- 64 - 65
- 74 - 75
- Added four test to PartTest for getMinInv, setMinInv, getMaxInv, and setMaxInv methods.
- PartTest.java
- 103 - 139
- Removed unused DeletePartValidator class.
- DeletePartValidator
- removed file.