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:
1 parent
1aa0a84f4d
commit
4d88747649
6 files changed
+247
-13
No files matched your search
@@ -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),
|
||||
};
|
||||
Reference in new issue
Block a user