feat: UI improvements across Calendar, Cast, People, and Entry Details pages

Calendar:
- Add list/agenda view for mobile with view toggle button (defaults to list on small screens)
- Grid view: show entry poster cards (not episode stills) with S01E04 label for TV, title for movies
- Grid cells use grid-rows-6 to fill exact viewport height with no scrolling on desktop
- Clicking a day opens a dialog showing all episodes as a poster grid
- Cap grid cells to 3 visible posters with overflow badge
- Hide episodes with no known entry title

Cast & Crew Page:
- Increase people card size (h-32 w-32 avatar, larger text, fewer columns)
- Add search box filtering by name and role
- Restructure controls: search + count on left, filter + sort on right
- Default filter to "Cast", default sort to "Episode Count"

People Page:
- Mobile layout: search input takes full width, switch & filter move to second line

Entry Details Page:
- Remove favorite heart icon overlay from poster
- Add favorite pill in ratings row (gold background/star when active, dashed border when inactive)

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Mohammed AbadandCopilot committed 2026-04-29 16:56:19 +01:00
1 parent 5fa2556b43
commit 3b882c9c35
4 files changed
+362 -135

No files matched your search

+22 -5
View File
@@ -190,11 +190,6 @@ export function EntryDetailsPage() {
{/* LEFT: Sticky poster */}
<div className="sm:sticky sm:top-20 w-32 sm:w-44 shrink-0 self-start mx-auto sm:mx-0">
<div className="relative">
{e.favorit && (
<div className="absolute top-2 left-2 z-10 rounded-full bg-background/80 p-1 backdrop-blur-sm">
<Heart className="h-4 w-4 fill-red-500 text-red-500" />
</div>
)}
<img
src={poster}
alt={e.title}
@@ -364,6 +359,28 @@ export function EntryDetailsPage() {
Rate
</button>
)}
{/* Favorite pill */}
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<button
onClick={toggleFavorite}
disabled={updateEntry.isPending}
className={`inline-flex items-center gap-1 rounded-full border px-3 py-1 text-sm font-medium transition-colors ${
e.favorit
? 'bg-yellow-500/15 border-yellow-500/30 text-yellow-600 dark:text-yellow-400 hover:bg-yellow-500/25'
: 'border-dashed border-border text-muted-foreground hover:border-yellow-500/40 hover:text-yellow-500'
}`}
>
<Star className={`h-3.5 w-3.5 ${e.favorit ? 'fill-yellow-400 text-yellow-400' : ''}`} />
Favorit
</button>
</TooltipTrigger>
<TooltipContent>
<p>{e.favorit ? 'Remove from favorites' : 'Add to favorites'}</p>
</TooltipContent>
</Tooltip>
</TooltipProvider>
</div>
{/* Storyline */}