Add season refresh, rating display, and actions dropdown to SeasonPage

Backend: Added PUT /seasons/:id/refresh endpoint that fetches updated
TMDB data for a single season.

Frontend:
- New SeasonRatingDialog for rating seasons via StarRating
- useRefreshSeason and useUpdateSeason hooks with query invalidation
- SeasonPage now shows inline season rating (user + TMDB)
- Mark Watched, Rate, and Refresh actions moved under a dropdown menu
This commit is contained in:
X4Lo committed 2026-07-05 20:58:40 +01:00
1 parent 1aa0a84f4d
commit 4d88747649
6 files changed
+247 -13

No files matched your search

+3
View File
@@ -17,4 +17,7 @@ export const seasonsApi = {
api.put<Season>(`/seasons/${id}`, data).then((r) => r.data),
delete: (id: number) => api.delete(`/seasons/${id}`).then((r) => r.data),
refresh: (id: number) =>
api.put<Season>(`/seasons/${id}/refresh`).then((r) => r.data),
};