@@ -10,17 +10,38 @@ We build a use case diagram for my [first user story](https://git.cs.usask.ca/vr
**Summary**: This use case allows a user of the website to read, add, or edit a review on the website.
**Actors**: The main actor is the website user, the secondary actor is the website data base.
**Actors**: Website user (primary), website data base (secondary).
**Version**: 1.2
**Person in Charge**: Hakeem Hannoon
**Preconditions**: None
**Preconditions**: The character limit for a review is 250.
After submitting the review, the rating of the item/user will be updated in the system, and the comment (if the user left one) will be added to the item posting/user profile.
Scenario example: Leaving, deleting or editing a review on a tool
1. User opens the website login page
2. User enters their username and password
3. System compares the user password and username and confirms that they are matching
4. The system logs the user to the website, displaying product postings by them and other users, as well as the history of products the user lent or rented
5. The user chooses a product posting, including the user who posted the product
6. When the user presses the posting, the system will show them all previous reviews for both the product and the user that posted the product
7. If the user had left a review before, the review will appear on top
8. The user can then press the edit review button to the side of the review, which opens a new window showing the user's previous review
9. The user can then edit the existing review
10. When the user is done editing their review and rating, they can press the "confirm update" button
11. The system will verify that the number of characters in the review is less than or equal to 250
12. The system updates the review of the item/user in the system data base.
13. If the user chooses the "delete review" option, the system displays a message saying "confirm delete"
14. If the user confirms their request, the review is no longer visible and is no longer in the data base
15. If the user hadn't left a review before, a "leave review" button will show under the item, the user then presses the button
16. The system then confirms that the user has rented the tool, and opens a new window
17. The user can then choose a rating for the item, and leave a review comment of maximum length of 250 characters
18. Once the user is done entering their review, the user presses the "post review" button
19. The system checks that the review obeys the character limit, and the review is added to the system database.