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

Add more details to product interface #32

Merged

Conversation

kianz20
Copy link
Owner

@kianz20 kianz20 commented Sep 7, 2024

Closes #14
Product details interface now has more properties:
imgPath: Path to product image in server filesystem
stockCount: Stock remaining
franchise: Franchise product is from (e.g. one piece, genshin, etc)
rating: User rating (currently, rating is not implemented yet, so this is empty for all products)

All API have been changed to send and receive this data.
Add, edit, and view products admin page also edited to display and handle this.
Product images are stored at server/src/resource/prodcutPictures

Added image path, stock count, category, franchise, rating to product
Created new document schema for product reviews
#14
Added ability to create product with all of the new fields
Image paths are saved to the image in the database
Added new "uploads" route and controller to handle resource uploads
Added backend url const file
Changed placeholder images to img of product when available
Slight styling and spacing changes

#14
#14
Refactored category list into constant file. (May be better to store in db so categories can be added from frontend, needs discussion)
Made category input a select in admin dashboard add product
Removed random console logs
Fixed bug that meant search was case-sensitive
Random styling improvements
@kianz20 kianz20 self-assigned this Sep 7, 2024
Copy link

sonarqubecloud bot commented Sep 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@kianz20
Copy link
Owner Author

kianz20 commented Sep 8, 2024

SonarCloud security fail is incorrect and the file size is limited.

@kianz20 kianz20 merged commit f5f5c11 into main Sep 8, 2024
2 of 3 checks passed
@kianz20 kianz20 deleted the origin/improvement/Add-more-details-to-product-interface branch September 8, 2024 06:41
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.

Add more details to product interface
1 participant