mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 12:36:15 -08:00
feat(details): redesigned episode list, section rhythm and hero fade (#1859)
* fix(details): continue the hero artwork under the first section The vertical scrim stopped at the hero's bottom edge, so a bright backdrop ended in a visible band above the Episodes heading. The hero now grows by a 140px tail that the shell pulls the sections up over, and the scrim resolves to the exact page surface behind the heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(details): one section header and a 56px rhythm below the hero Episodes, Cast & crew and Similar now share app-detail-section-header: an 18px/600 title, a muted tabular counter and lead/end slots. The Episodes counter adds the watched count ("8 episodes · 3 watched"), and sections sit 56px apart, with 56px after the last one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(details): flat episode rows with a reserved action slot Each episode is now one app-episode-item, a list row or a grid card: - a number column, a 168px thumbnail with a watched check, a progress bar only for started episodes and a play overlay - title with "46 min · 12 Jan" (time left once started) and a plot clamped to two lines at 74ch - mark watched, download and a "…" menu in a 112px slot that is always reserved and shows on hover or keyboard focus, so nothing shifts - the whole item is one stretched button: Tab focuses it, Enter plays - the playing or last unfinished episode is highlighted The "…" menu holds Episode details and, for a started episode, Play from beginning, which Xtream and Stalker now start at 0. TMDB's episode runtime fills the meta line when the provider sends none. The list is the default view for anyone who has not chosen one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(details): segmented list/grid switch and a 30px season pill The view toggle becomes a 2px-padded segmented track with 30×26 segments and a neutral checked segment; the season pills and the season dropdown share the section header's 30px pill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(details): no season synopsis that repeats the series description Providers often send the series plot, or its first sentences, as every season's description, so the same text showed twice a few hundred pixels apart. The season strip now drops a synopsis that equals the hero's description, or is cut short from it, and clamps its own to two lines at 72ch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(details): draw the episode thumbnail hairline as a border An inset shadow over the artwork is invisible to the surface-contrast checks and to forced-colors mode; a 1px border is what both read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(e2e): follow the list-first, flat episode items The list is now the default view, rows and cards share .episode-item classes, and grid titles no longer carry the "N." prefix. The surface checks measure the thumbnail hairline instead of a row border, assert that hovering a row does not move its title, and capture list, grid and hover screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(ui): episode list, section rhythm and hero tail contracts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(dashboard): continue the hero artwork under the first rail The dashboard hero's fade ended at its edge, so the artwork stopped just above the Continue Watching heading. Like the details hero, it now grows by a 160px tail that the rails are pulled up over: the art fades behind the first rail's heading and reaches the page colour before its cards, so the rail's scroll-edge fades never show as a box. The narrow layout, whose slide carries its own scrim block, keeps no tail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(changes): note the smoother hero fade Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(details): season chips up to four, a counts menu from five, no season art The season picker drops every poster: chips for up to four seasons, a menu button from five whose rows read the season and "N episodes · M watched". The season synopsis loses its cover, sits on the number column 24px above the list and renders nothing without a plot of its own. The player's episode panel shares the picker and loses its dropdown thumbnails too; its season strip stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(details): bare rows for seasons without metadata, skeletons while it loads A season whose final episode data has no plot and no usable still (the series poster or season cover repeated as a still counts as none) renders 44px rows: number, title, meta and an inline check or progress bar, the same action slot, no grid toggle. While the provider list or a TMDB lookup that could still fill a bare-looking season is outstanding, the episodes are skeleton rows at the full row's exact geometry instead of a spinner; a season the provider already describes renders at once. Xtream tracks the show match and each season's enrichment in the store; Stalker tracks its show match in the selection state and settled season fetches in its TMDB service, and now reports a regular series' season request as loading instead of an empty series. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(details): loading skeletons laid out like the loaded page The hero skeleton targeted ngx-skeleton-loader's old `.loader` class, so its blocks kept the library's light default fill and margins; `display: block` stacked the chips and buttons into columns; and the details column sat at the top while the loaded one is bottom-aligned, so the title dropped ~150px on load. It is now plain shimmer blocks at the loaded hero's geometry with the stage height kept while loading. The Xtream series page shows an episodes section skeleton under it, and the Stalker series hero holds the Play button's place while seasons load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(e2e): the modeled Stalker series renders bare rows Its episodes repeat the series poster and carry no plots, so the shared series surface check now expects 44px bare rows without thumbnails or a grid toggle in both themes. The thumbnail hairline and grid checks stay in the Xtream suite, whose episodes have stills. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style(details): format the season picker stylesheet Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(details): episode skeletons never outlive their metadata The loading state added for TMDB-enriched episode rows could stick or flicker: - an empty season is never enriched, so its host never settled it and the season showed six skeleton rows forever instead of its empty state; - Xtream re-marked an enriched season pending on every selection write, turning rendered rows back into skeletons (and dropping row focus) for each cache read; - a superseded lookup of a reopened series, or of a Stalker item without an id, could settle a newer lookup's pending state or never clear it; - TMDB requests have no timeout, so a blocked TMDB host held provider episodes back for minutes. Metadata now only holds back a season that has episodes, the wait is capped at 4s per season, only the latest lookup of a key (or selection) settles it, a settled Xtream season stays settled within a visit and a new visit starts its seasons afresh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(details): described seasons render at once; room for titles on phones Metadata lookups held every season as skeletons until TMDB answered, even one the provider had already described with plots and stills. The state now waits for metadata only when the current data would render bare; described rows show at once and the metadata lands in place. At a pane width of 480px or less the list row kept the 112px thumbnail and the action slot beside the text, leaving a 320px phone about 18px for the title. The thumbnail shrinks to 96px there and the actions take their own row under the text. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): keep phone-width grid cards stacked The phone-width grid-area placements applied to grid cards too, which declare no template areas, so a card's artwork and text overlapped in a narrow pane. The placements are scoped to list rows; the surface check now also asserts a card's text stays under its artwork at 360px. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): a still that only one episode carries is not a repeat The distinct-stills check counted unique image URLs and treated a single one as the series poster repeated, so a season where one episode has a genuine still and the rest have none lost that still and went bare, with its grid toggle. One image on one episode is now a still; only one image on several episodes counts as a repeat. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): phone-width skeleton rows match the rows they precede At a pane width of 480px or less the finished list row uses a 96px thumbnail and an action row under the text, but its skeleton kept the 112px single-row layout, so pictures and text moved when loading ended. The skeleton row now carries an empty 34px action slot and mirrors the phone layout. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): no air date from a placeholder or an impossible day The Date constructor turned a provider's "0000-00-00" into a day in 1899 and rolled "2025-02-31" into March, so the episode meta line showed dates nobody sent. An ISO day is now validated part by part and an invalid one leaves the date out. The season menu's container colour goes through mat.menu-overrides(), as the UI guidelines require. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * style(details): spinner colours through mat.progress-spinner-overrides() The episode item set the spinner's indicator colour as raw --mat-* declarations; the UI guidelines want Material tokens set through the component's overrides mixin, which rejects unknown names at build time. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): unknown season counts, resume position, hero-skeleton spec A lazy Stalker VOD season the portal has not answered yet showed "0 episodes" in the season menu: the picker now takes the per-season load states and shows no count for such a season. A started episode whose duration nobody knows (no provider or TMDB runtime, none saved with the position) lost its saved position from the meta line; it now reads "Resume at 12:34". The downloads offline-detail spec queried the ngx-skeleton-loader the hero skeleton no longer uses; it queries the hero-skeleton test id. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(playback): a reused external player starts each load at its own offset MPV and VLC are launched with a global --start / --start-time for a resumed title, and a reused process applies that to every later load: "Play from beginning", the next episode and a later resume all began at the first launch's offset. The seek sent right after loadfile does not help — mpv rejects it before the file is loaded, and the command sender never reads the reply (verified against a real mpv over IPC). Every reuse load now carries a per-file start (0 unless an offset is requested): mpv's loadfile options and VLC's :start-time input option. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): loading flags follow the detail container, menus know unloaded seasons The fullscreen episode picker reports its season through the same onSeasonSelected as the detail container, so the Stalker view's episode-list and metadata loading flags followed whichever season was picked last: choosing another lazy season in fullscreen turned the detail page's loaded season into skeletons until the portal answered. Both flags now follow the detail container's own selection. The fullscreen panel also shares the season picker but never forwarded its per-season load states, so a lazy season read "0 episodes" in its menu; the states are forwarded now. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(details): Xtream metadata loading follows the detail container too Like the Stalker view, the Xtream seasons service keyed its metadata loading flag off the season selected last, which the fullscreen episode picker also sets: picking another season there could hide the detail page's settled bare rows behind skeletons for up to four seconds. The flag now reads the detail container's own selection; the picker's choice still gets enriched. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2dff91c9f2
commit
50d45bc7c0
119 files changed
+5065
-2341
No files matched your search
@@ -286,19 +286,16 @@ episode" chip appears when the playing episode is outside the opened
|
||||
season. Season descriptions come from `get_series_info` seasons (Xtream)
|
||||
or `TmdbEnrichmentService.getSeason` (Stalker).
|
||||
|
||||
The tabs and description sit in a **season card** with an optional cover
|
||||
column: the selected season's own poster (`seasonPosters` input, keyed like
|
||||
`seasonDescriptions`; TMDB season poster first, provider `seasons[].cover_big`
|
||||
next — see "Season/Episode Enrichment" in `tmdb-metadata-enrichment.md`).
|
||||
The column is sized by `--season-cover-width` (96 / 120 / 144px for
|
||||
`Settings.coverSize` small / medium / large, `apps/web/src/_cover-size.scss`;
|
||||
medium matches the About block's poster) and is not rendered at all — the
|
||||
card collapses to one column and the tabs render exactly as before — when
|
||||
the selected season has no poster, when the item has a single season (that
|
||||
poster is the show poster a few hundred pixels below the hero), or when the
|
||||
image request failed. The hero poster never follows the season: the show
|
||||
keeps its identity element, the season gets its own picture next to its own
|
||||
text. The fullscreen episode panel shows the same poster as a compact season
|
||||
The season picker carries no artwork: chips up to four seasons, a menu
|
||||
button with "N episodes · M watched" rows from five. The selected season's
|
||||
synopsis sits under the header, offset to the episode number column, only
|
||||
when it is non-empty and does not repeat the series description. The season
|
||||
posters (`seasonPosters` input, keyed like `seasonDescriptions`; TMDB season
|
||||
poster first, provider `seasons[].cover_big` next — see "Season/Episode
|
||||
Enrichment" in `tmdb-metadata-enrichment.md`) are not drawn on the detail
|
||||
page; the container only uses them to recognise an episode still that is the
|
||||
season cover again. The hero poster never follows the season.
|
||||
The fullscreen episode panel shows the same poster as a compact season
|
||||
strip (poster, season name, episode count — `PORTALS.EPISODE_COUNT_ONE` /
|
||||
`PORTALS.EPISODE_COUNT_OTHER`) above its season tabs, under the
|
||||
same gates, from `PortalInlinePlayerComponent.seasonPosters` through
|
||||
|
||||
@@ -65,6 +65,7 @@ in `apps/web/src/m3-theme.scss`):
|
||||
- `--app-widget-border` / `--app-rail-border` — hairlines
|
||||
- `--app-on-surface` — primary text
|
||||
- `--app-eyebrow-color` — secondary/muted text
|
||||
- `--app-success-color` — done/watched status (episode watched toggle)
|
||||
|
||||
Angular Material mixins and Material-component overrides may use the tokens
|
||||
owned by that component. Outside a Material-owned component, prefer the
|
||||
@@ -158,8 +159,11 @@ VOD and series detail screens share `app-portal-detail-shell` and
|
||||
kind label ("Movie · playlist") → title → chips → description (three lines,
|
||||
"More") → resume bar → action row → credits, with the poster bottom-aligned
|
||||
on the left and the backdrop filling the hero behind a two-layer scrim built
|
||||
from `--app-content-bg`. The hero keeps `min(480px, 60vh)` of stage for a
|
||||
16:9 backdrop. Without one, or when the provider sends the poster as the
|
||||
from `--app-content-bg`. The hero keeps `min(520px, 60vh)` of stage for a
|
||||
16:9 backdrop. The shell gives it a 140px `--hero-tail` and pulls the first
|
||||
section up over it, so the artwork continues under that section's heading and
|
||||
the vertical scrim ends on the exact page surface there, never as a band at
|
||||
the hero's edge. Without one, or when the provider sends the poster as the
|
||||
backdrop, the hero is compact (`hero--compact`, sized by its content) over
|
||||
the blurred poster. The layout is decided once per title, so a backdrop that
|
||||
TMDB enrichment adds a moment later fills the compact hero instead of
|
||||
@@ -177,7 +181,10 @@ keys, Escape, hosts the alternative-sources panel), `app-detail-credits`
|
||||
`app-detail-rail`/`app-similar-rail` (hidden scrollbar, prev/next arrows,
|
||||
title + year) and `TrailerDialogService`. The dashboard hero reuses the same
|
||||
light primary (`light-primary-button` in `libs/ui/styles/_detail-view-actions.scss`)
|
||||
and chip. Series titles drop their season marker (`splitSeasonSuffix`) into a
|
||||
and chip, and the same kind of tail: its artwork runs 160px under the first
|
||||
rail, whose heading keeps a trace of it, and reaches the page colour before
|
||||
that rail's cards (their scroll-edge fades are drawn in the page colour), with
|
||||
no tail in the narrow layout. Series titles drop their season marker (`splitSeasonSuffix`) into a
|
||||
"Season N" chip. Rows a provider cannot serve are left out of the menu, never
|
||||
disabled. The page-level Sass mixin (`libs/ui/styles/_detail-view.scss`)
|
||||
only carries the page shell, meta items and the episodes section.
|
||||
@@ -317,10 +324,7 @@ Movie and series covers render in three surfaces: the catalog grid
|
||||
recent card (`app-content-card`, same lib) and the dashboard rails. All of
|
||||
them size from the `--cover-grid-min-width` / `--cover-rail-width` /
|
||||
`--cover-gap` tokens that `Settings.coverSize` writes onto `<html>` as
|
||||
`data-cover-size` (`apps/web/src/_cover-size.scss`). The same file carries
|
||||
`--season-cover-width` (96 / 120 / 144px) for the season cover beside the
|
||||
season tabs on series detail pages; medium equals the About block's 120px
|
||||
poster so browse and watch share one secondary-poster size.
|
||||
`data-cover-size` (`apps/web/src/_cover-size.scss`).
|
||||
|
||||
### Posters-only wall
|
||||
|
||||
@@ -599,7 +603,7 @@ A title's watch progress (its resume share, `progressPercent`) has exactly one
|
||||
colour per context, and never a literal of its own:
|
||||
|
||||
- **App chrome** — dashboard rail cards and the hero, catalog grids and season
|
||||
episodes (`app-progress-capsule`, and the season list rows' own fill):
|
||||
episodes (`app-progress-capsule`, and the episode items' own 3px bar):
|
||||
`--app-progress-color`, declared per theme in `apps/web/src/m3-theme.scss`
|
||||
as that theme's `--app-selection-color`, and declared again inside
|
||||
`.dark-theme` because a derived custom property resolves where it is
|
||||
@@ -685,6 +689,14 @@ page down. For the same reason it stays until every source that can fill it
|
||||
has loaded, not only the first one. Use the same rules for any page that
|
||||
stacks independently loading blocks.
|
||||
|
||||
The movie and series detail hero has an immediate skeleton too, built from
|
||||
the shared shimmer (`libs/ui/components/src/lib/styles/_skeleton-shimmer.scss`)
|
||||
at the loaded hero's geometry: stage height, bottom-aligned eyebrow, title,
|
||||
one row of chips, two description lines, the action row and two credit lines.
|
||||
The Xtream series page adds an episodes section skeleton under it, and the
|
||||
Stalker series hero holds the Play button's place
|
||||
(`app-detail-action-skeleton`) while its seasons load.
|
||||
|
||||
### Reload with content on screen: non-destructive indicator
|
||||
|
||||
A reload of a list that is already rendered (the collection page's
|
||||
@@ -735,17 +747,55 @@ If the label is too long for the rail, shorten the label key instead of shrinkin
|
||||
The action row never wraps on a desktop window: the primary, the Trailer
|
||||
button, then the 44px icon buttons and the "…" menu. Season and series
|
||||
actions (mark watched, download season, reset progress) live in that menu
|
||||
and drive the season container's presenters; the container's header is
|
||||
"Episodes" with the season pills and the episode count, plus the grid/list
|
||||
toggle. The checked toggle uses `--app-selection-surface` and
|
||||
`--app-selection-color`; hover uses the app's neutral surface treatment.
|
||||
and drive the season container's presenters.
|
||||
|
||||
Episode cards are flat: a 16:9 thumbnail (with a light hairline so its edge
|
||||
survives the light theme) and a 3px watched bar at its bottom edge, "N. Title", the plot clamped to two lines and a "42 min ·
|
||||
18m left / watched" line. List rows keep a subtle neutral fill. The selected
|
||||
season's cover and synopsis sit in a compact strip under the header only
|
||||
when present. Keep these treatments in the shared season components so
|
||||
Xtream and Stalker share the same behavior.
|
||||
Every section below the hero (Episodes, Cast & crew, Similar) uses
|
||||
`app-detail-section-header`: an 18px/600 title, a muted 12.5px tabular
|
||||
counter, a lead slot (the season pills or dropdown, a 30px pill) and an end
|
||||
slot (the list/grid toggle, rail arrows). Sections sit 56px apart, with 16px
|
||||
between a header and its content and 56px after the last one. The Episodes
|
||||
counter reads "N episodes · M watched". The list/grid switch is a segmented
|
||||
track whose checked segment is a neutral raised fill with heading ink; the
|
||||
list is the default view.
|
||||
|
||||
Episodes render through `app-episode-item` as a flat list row or grid card,
|
||||
never a bordered box. A row is a number column, a 168px 16:9 thumbnail (with
|
||||
a light hairline border so its edge survives the light theme), the title with
|
||||
a "46 min · 12 Jan" meta line (time left once started, "Resume at 12:34" when
|
||||
no runtime is known) and the plot clamped to
|
||||
two lines at 74ch, and a 112px action slot. Rows are separated by a hairline
|
||||
that gives way around a hovered, focused or highlighted row. Watched episodes
|
||||
carry a check badge on the thumbnail and muted text, and never a bar; a
|
||||
started one gets a 3px bar and the time left. Mark watched, download and "…"
|
||||
(Episode details, Play from beginning) are always laid out and only fade in on
|
||||
`:hover`/`:focus-within`, so nothing shifts. The whole item is one stretched
|
||||
button: Tab focuses it and Enter plays. The playing episode, else the most
|
||||
recently watched unfinished one, is highlighted. Without distinct stills the
|
||||
thumbnails show a dimmed fallback, not a column of bright posters. The season
|
||||
picker never shows a season poster: chips up to four seasons, a menu button
|
||||
from five whose rows read "Season N" and "N episodes · M watched" (the second
|
||||
part left out at zero, and no count at all for a lazy Stalker VOD season the
|
||||
portal has not answered yet — `seasonLoadStates`). The selected season's
|
||||
synopsis sits under the header,
|
||||
offset 52px to the number column and 24px above the list, only when present;
|
||||
one that repeats the series description (or is cut short from it) is dropped,
|
||||
and without one no row renders.
|
||||
|
||||
A season whose final episode data has no plot and no usable still (a still
|
||||
equal to the series poster or the season cover counts as none) renders bare:
|
||||
44px rows of number, title, meta and an inline check or 72px bar, the same
|
||||
action slot, and no grid toggle. Only some stills or plots missing keeps full
|
||||
rows (dimmed tile, line left out). While the provider list is outstanding,
|
||||
and while a TMDB lookup that could still fill a season that would otherwise
|
||||
render bare is outstanding, the episodes are skeleton rows at the full row's
|
||||
geometry (`app-episode-skeleton`); a season the provider already describes
|
||||
renders at once and the metadata lands in place. The state is decided from
|
||||
data (`episode-meta-state.util.ts`); the metadata wait is only capped
|
||||
(`EPISODE_METADATA_WAIT_MS`, 4s) because TMDB requests carry no timeout, and
|
||||
it never applies to a season without episodes, which no host enriches. At a
|
||||
pane width of 480px or less the thumbnail shrinks to 96px and the actions
|
||||
take their own row under the text. Keep these treatments in the shared season
|
||||
components so Xtream and Stalker share the same behavior.
|
||||
|
||||
Browser regression coverage measures the composited neutral edges and selected
|
||||
toggle fill, in addition to capturing light/dark grid and list screenshots.
|
||||
|
||||
Reference in new issue
Block a user