peterportal-client icon indicating copy to clipboard operation
peterportal-client copied to clipboard

Add ability to edit/delete reviews, refactor review components

Open js0mmer opened this issue 4 months ago • 0 comments

Description

  • Add edit and delete buttons to reviews you've written
  • Updated author icon to match style of verified icon
  • refactored review, subreview, reviewform, userreviews components
  • link reviews on reviews page to respective course/professor

Screenshots

image image image

Steps to verify/test this change:

  • [ ] Edit and delete buttons appear on authored reviews on the user reviews page and course/professor pages
  • [ ] Edit review form shows correct course and/or professor in title
  • [ ] Current values of the review form should be preloaded
  • [ ] Form validation should be reset if a user edits the same review twice in a row (should not see any green outlines or checkmarks when editing the second time)
  • [ ] Should NOT be able to change course or professor when editing from user reviews page
  • [ ] Should be able to change professor but not course when editing from course page
  • [ ] Should be able to change course but not professor when editing from professor page
  • [ ] Changes (edit or delete) should reflect immediately
  • [ ] Changes (edit or delete) should persist after reloading the page
  • [ ] Adding a review for a professor still functions as normal
  • [ ] Adding a review for a course still functions as normal

Next steps

  • Use professor name not ucinetid for reviews and edit review form on user page
    • include space between course department & number too for consistency

Final Checks:

  • [ ] Verify successful deployment

(optional)

  • [ ] Write tests
  • [ ] Write documentation

Issues

Closes #273, closes #428

js0mmer avatar Oct 10 '24 06:10 js0mmer