feat: entry details overhaul, navigation, rating half-stars, library growth "all", accuracy field

- SeasonPage: add back navigation link to entry details page
- EpisodePage: add breadcrumb navigation back to entry and season pages
- EntryCard: non-library entries now open a details dialog on click with overview, rating, and add-to-library button
- EntryDetailsPage: move favorite and mark-watched buttons into grouped dropdown menu with separators
- EntryDetailsPage: add favorite badge (heart icon) on top-left of poster
- EntryDetailsPage: add "mark as watched" clickable text next to runtime for unwatched movies
- EntryDetailsPage: genre pills are now clickable links that navigate to library page with genre filter
- EntryDetailsPage: hide status pill for movies; show status as text next to release date for TV series
- EntryDetailsPage: add delete entry option in dropdown menu with confirmation dialog and redirect to library
- EntryDetailsPage: add TMDB and IMDb external links under poster using entry.entryIds
- EntryDetailsPage: group all dropdown actions by relevance (Watch/Rate, Organize, Manage, Danger) with separators
- RatingDialog: support half-star ratings (0.5 increments) with left/right click zones per star
- RatingDialog: fix clear rating button by syncing state on dialog open and using dedicated handleClear function
- LibraryGrowthChart: add "All" option to year selector (default) showing cumulative growth across all years
- Frontend: add SeenAccuracy type to types/index.ts, update API layers and hooks to support accuracy
- EntrySeenDialog: add Date Accuracy selector (Exact/Estimated/Unknown) with EXACT default
- EpisodeSeenEditDialog: add Date Accuracy selector, updated overrideSubmit signature
- SeasonPage: pass accuracy through bulk mark-all-watched flow
This commit is contained in:
Mohammed Abad committed 2026-04-20 01:24:55 +01:00
1 parent ebdef6ba6c
commit 63fdc00ac2
15 files changed
+396 -109

No files matched your search

+15 -2
View File
@@ -8,9 +8,10 @@ import { Skeleton } from '@/components/ui/skeleton';
import { Progress } from '@/components/ui/progress';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Eye, CheckCircle2, ListChecks } from 'lucide-react';
import { Eye, CheckCircle2, ListChecks, ArrowLeft } from 'lucide-react';
import { getTmdbPosterUrl, getYear, formatDate } from '@/lib/media-utils';
import type { Episode } from '@/types';
import type { SeenAccuracy } from '@/types';
export function SeasonPage() {
const { entryId, seasonId } = useParams<{
@@ -25,6 +26,7 @@ export function SeasonPage() {
const [showMarkAllDialog, setShowMarkAllDialog] = useState(false);
const [markAllDate, setMarkAllDate] = useState(new Date().toISOString().split('T')[0]);
const [markAllSeenWith, setMarkAllSeenWith] = useState('');
const [markAllAccuracy, setMarkAllAccuracy] = useState<SeenAccuracy>('EXACT');
const [showMarkAllConfirm, setShowMarkAllConfirm] = useState(false);
if (isLoading || !season) {
@@ -52,6 +54,15 @@ export function SeasonPage() {
return (
<div className="space-y-8 animate-page-enter">
{/* Back to entry */}
<Link
to={`/entry/${entryId}`}
className="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors"
>
<ArrowLeft className="h-4 w-4" />
Back to entry
</Link>
{/* Header */}
<div className="flex gap-6">
<img
@@ -205,9 +216,10 @@ export function SeasonPage() {
episodeId={-1}
entryId={parseInt(entryId!, 10)}
seasonId={parseInt(seasonId!, 10)}
overrideSubmit={(date, seenWith) => {
overrideSubmit={(date, seenWith, accuracy) => {
setMarkAllDate(date);
setMarkAllSeenWith(seenWith);
setMarkAllAccuracy(accuracy);
setShowMarkAllDialog(false);
setShowMarkAllConfirm(true);
}}
@@ -233,6 +245,7 @@ export function SeasonPage() {
episode_id: ep.id,
date_seen: markAllDate,
seen_with: markAllSeenWith || undefined,
accuracy: markAllAccuracy,
season_id: parseInt(seasonId!, 10),
});
}