fix: season episode dialog, mark season watched, episode 404 handling

Seasons Page:
- Episode watch button now opens EpisodeSeenEditDialog instead of
  directly marking as watched, allowing date/seen-with input
- Added "Mark Season as Watched" button that sequentially marks all
  unwatched episodes in the season

Episode Page:
- Fixed UI not updating after deleting the last episode seen record;
  the backend returns 404 when no records exist for an episode, which
  caused the query to error instead of resolving to an empty array.
  The API layer now catches 404 and returns [] gracefully.
This commit is contained in:
Mohammed Abad committed 2026-04-03 17:49:16 +01:00
1 parent 984e2c8b50
commit 6bff2055b4
12 files changed
+380 -90

No files matched your search

+3 -3
View File
@@ -7,15 +7,15 @@ const entrySeenController = require('../controllers/entrySeenController');
// * GET - ALL ENTRY SEEN
entrySeenRouter.get('/', entrySeenController.getEntrySeens);
// * GET - ENTRY SEEN BY ENTRY ID (must be before /:id to avoid conflict)
entrySeenRouter.get('/by-entry/:entryId', entrySeenController.getEntrySeensByEntryId);
// * GET - ENTRY SEEN BY ID
entrySeenRouter.get('/:id', entrySeenController.getEntrySeenById);
// * POST - CREATE ENTRY SEEN
entrySeenRouter.post('/', entrySeenController.createEntrySeen);
// * GET - ENTRY SEEN BY ENTRY ID
entrySeenRouter.get('/by-entry/:entryId', entrySeenController.getEntrySeensByEntryId);
// * PUT - UPDATE ENTRY SEEN
entrySeenRouter.put('/:id', entrySeenController.updateEntrySeen);