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

+31 -29
View File
@@ -93,8 +93,8 @@ export function PeoplePage() {
<h1 className="text-2xl font-bold">People</h1>
{/* Controls row */}
<div className="flex flex-wrap items-center gap-3">
<div className="relative flex-1 max-w-xs">
<div className="flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center">
<div className="relative w-full sm:flex-1 sm:max-w-xs">
<Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
<Input
placeholder="Search people..."
@@ -104,34 +104,36 @@ export function PeoplePage() {
/>
</div>
{/* Local DB toggle */}
<div className="flex items-center gap-2">
<Switch
id="local-toggle"
checked={localOnly}
onCheckedChange={setLocalOnly}
/>
<Label htmlFor="local-toggle" className="text-sm cursor-pointer">
Local DB
</Label>
</div>
<div className="flex items-center gap-3 sm:contents">
{/* Local DB toggle */}
<div className="flex items-center gap-2">
<Switch
id="local-toggle"
checked={localOnly}
onCheckedChange={setLocalOnly}
/>
<Label htmlFor="local-toggle" className="text-sm cursor-pointer">
Local DB
</Label>
</div>
{/* Filter tabs: All / Favorite — always visible, disabled when not local */}
<div className="ml-auto">
<Tabs
value={filter}
onValueChange={(v) => setFilter(v as PeopleFilter)}
>
<TabsList>
<TabsTrigger value="all" disabled={!localOnly}>
All
</TabsTrigger>
<TabsTrigger value="favorite" disabled={!localOnly}>
<Heart className="mr-1 h-3 w-3" />
Favorite
</TabsTrigger>
</TabsList>
</Tabs>
{/* Filter tabs: All / Favorite — always visible, disabled when not local */}
<div className="sm:ml-auto">
<Tabs
value={filter}
onValueChange={(v) => setFilter(v as PeopleFilter)}
>
<TabsList>
<TabsTrigger value="all" disabled={!localOnly}>
All
</TabsTrigger>
<TabsTrigger value="favorite" disabled={!localOnly}>
<Heart className="mr-1 h-3 w-3" />
Favorite
</TabsTrigger>
</TabsList>
</Tabs>
</div>
</div>
</div>