Add review and rating features with sorting and filtering options

- Implemented a new ReviewController to handle review creation, updates, and retrieval for library items.
- Added pagination, sorting, and filtering capabilities for reviews in the API.
- Updated frontend components to support review display, including a new ReviewsTable and enhanced ratings UI.
- Introduced new strings for user interface elements related to reviews and ratings.
- Added tests for the ReviewController and Review model to ensure functionality and validation.
- Enabled the option to toggle the review feature in server settings.
This commit is contained in:
fannta1990 2026-02-09 21:08:18 +08:00
parent e4e2770fbd
commit 41e8906312
12 changed files with 603 additions and 43 deletions

View file

@ -241,10 +241,19 @@
"LabelAddedDate": "Added {0}",
"LabelAdminUsersOnly": "Admin users only",
"LabelAll": "All",
"LabelAllReviews": "All Reviews",
"LabelAllEpisodesDownloaded": "All episodes downloaded",
"LabelAllUsers": "All Users",
"LabelAllUsersExcludingGuests": "All users excluding guests",
"LabelAllUsersIncludingGuests": "All users including guests",
"LabelFilterByRating": "Filter by Rating",
"LabelFilterByUser": "Filter by User",
"LabelSortHighestRated": "Highest Rated",
"LabelSortLowestRated": "Lowest Rated",
"LabelSortNewestFirst": "Newest First",
"LabelSortOldestFirst": "Oldest First",
"LabelSortTitleAZ": "Title A-Z",
"PlaceholderSearchReviews": "Search by title or author...",
"LabelAlreadyInYourLibrary": "Already in your library",
"LabelApiKeyCreated": "API Key \"{0}\" created successfully.",
"LabelApiKeyCreatedDescription": "Make sure to copy the API key now as you will not be able to see this again.",