fix(frontend): calendar thumbnail, episode delete confirm, mark-as-watched dialog

- CalendarPage: restore poster/still thumbnail (h-8 w-5) in episode items;
  add getTmdbPosterUrl import; extend EpisodeWithEntry type with poster_path
- EpisodeSeenEditDialog: add mode 'create'|'edit' support; record prop is now
  optional; create mode uses useCreateEpisodeSeen with today as default date
- EpisodePage: Mark as Watched button now opens EpisodeSeenEditDialog (create
  mode) instead of firing mutation directly; delete shows ConfirmDialog before
  deleting; remove unused useCreateEpisodeSeen import
This commit is contained in:
Mohammed Abad committed 2026-04-01 00:59:09 +01:00
1 parent 3ca24434d7
commit 191f4d6aae
8 files changed
+350 -101

No files matched your search

@@ -189,14 +189,14 @@ export function EntryDetailsPage() {
</Badge>
)}
</div>
{director && (
{director?.people?.name && (
<p className="text-sm text-muted-foreground">
by{' '}
<Link
to={`/people/${director.people_id}`}
className="font-medium text-foreground hover:underline"
>
{director.people?.name}
{director.people.name}
</Link>
</p>
)}