60 Commits
Author SHA1 Message Date
ner 6cff846f94 feat(search): unified movie+series search, results ranked by rating 2026-10-23 21:01:35 +03:00
ner f22f3c45b4 feat(show-type): path-based /series filter and infinite trending galleries
Persist the show-type filter in the path via a /series prefix: movies
keep bare URLs, series use /series across random, popular, top,
favorites and watchlist. The path is the single source of truth - the
jotai atom is removed and the toggle navigates with router.replace so
the server prefetches the target variant. Legacy ?type=tv deep links
redirect to the prefixed URLs.

Trending and similar/recommendations queries are now paginated and feed
useInfiniteList like the main lists. Gallery wires fetchNextPage to a
new ScrollNavigation onEndReached callback (fires within two slides of
the end, once per approach), so all gallery tabs load more on scroll.
The show page prefetches the first similar page with
prefetchInfiniteQuery, and trending/similar/recommendations are added
to the analytics ListName.
2026-09-24 15:54:40 +03:00
ner 0824090c6d feat(show-type): global movie/series toggle, type-aware pages and search, ?type=tv in URL 2026-09-24 15:40:01 +03:00
ner c52d798221 feat(torrents): launched state, year-scoped Toloka search, stacked modal backdrops
- replace pin-to-top with persistent launched-once state (filled play/cast icons)
- move download/vlc actions into a more-options dropdown when cast is available
- scope Toloka search query by show year (no IMDB filter on the tracker)
- strip session sid from Toloka download hrefs so cached magnets stay valid
- restore row hover, subtle row borders, taller rows; drop table rounding
- stacked modal backdrops: :has(~ [data-overlay]) instead of :not(:last-of-type)
- only count search in analytics after the query has settled (1s debounce)
2026-09-13 14:06:27 +03:00
nerandClaude Opus 5 01753d4eb6 refactor(analytics): method per event instead of track(name, props)
analytics.showViewed({...}) reads better than track('show_viewed', {...}) and
drops the track_ alias Captions needed, where vidstack already exports track.

The methods are derived from the event catalogue with a mapped type plus a
Proxy rather than written out, so the catalogue stays the only place an event
is declared and the two cannot drift. Names stay snake_case on the wire.
Emitters are cached so a method is referentially stable and safe to pass to a
hook or use as an effect dependency.

Events with no payload are typed void and take no arguments.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 12:39:54 +03:00
nerandClaude Opus 5 d67a0d4df6 feat(analytics): self-hosted openpanel with a typed event catalogue
Replaces Vercel Analytics with OpenPanel, driven entirely by env vars so the
whole layer is inert until NEXT_PUBLIC_OPENPANEL_CLIENT_ID is set.

Zero initial load cost. next/script emits a rel=preload even on lazyOnload,
which pulls the sdk during the first paint, so the component skips it: it
inlines the 416 byte official stub (window.op queues calls immediately) and
appends the real script itself on window load plus requestIdleCallback. The
built html carries no preload and no script src for the analytics host.

Events live in one typed catalogue (lib/analytics/events.ts) and track() is
keyed to it, so a wrong name or payload is a type error rather than a silent
bad row. Emitters sit in the hooks that already own the behaviour instead of
being sprinkled through components:

- useShowState covers every favourite and watchlist toggle
- useInfiniteList covers pagination for all six lists
- useTorrents covers all three providers
- Preview, Person and useSearch use a shared useTrackOnce hook

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-14 12:08:16 +03:00
nerandClaude Fable 5 8b56268430 refactor(preview): restore in-place modal, keep crawlable links
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 16:48:11 +03:00
nerandClaude Fable 5 25a5d535a4 feat(seo): crawlable show links, intercepted preview modal, real 404s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 16:33:59 +03:00
ner cd3fabc0d8 feat: customer's torrent streamer can be set 2025-08-14 14:29:30 +03:00
ner 3615d5538d fix: titles 2024-11-19 14:44:17 +02:00
ner bbae7abaf5 fix: auth retry 2024-11-16 15:43:37 +02:00
ner fbbd7b52e3 fix: authorization 2024-11-11 19:32:52 +02:00
ner 183c7231a1 feat: show page 2024-11-06 22:12:19 +02:00
ner 18b110a269 fix: theme color 2024-11-04 13:45:25 +02:00
ner 25866b9eb9 feat: static generation 2024-11-04 12:35:39 +02:00
ner 99255f4f13 fix: search 2024-11-03 19:22:19 +02:00
ner e509bb8127 feat: dark favicon 2024-10-30 13:27:46 +02:00
ner 3b954279f7 fix: proper prefetch 2024-10-29 19:39:41 +02:00
ner a268f7c38d feat: change torrents search query 2024-10-29 16:45:32 +02:00
ner 97d55b24a1 refactoring: server actions => tmdb proxy 2024-10-28 20:04:36 +02:00
ner dfdfb79169 fix: SITE_URL 2024-10-28 17:20:05 +02:00
ner 1fe912f4bd log: migration 2024-10-27 16:49:12 +02:00
ner 2cf6291470 fix: font-size 2024-10-27 16:27:38 +02:00
ner 5cbf93b3b8 refactoring: server actions data fetching -> api routes 2024-10-26 21:33:39 +03:00
ner 38aebcbe28 refactoring: improvements for lighthouse 2024-10-21 15:35:08 +03:00
ner 988085ac8b feat: current episode by magnet is saved into localstorage 2024-10-20 17:41:57 +03:00
ner 8858e47d38 feat: favorite & watch lists 2024-10-19 16:09:15 +03:00
ner 043375f44a feat: account 2024-10-18 18:56:34 +03:00
ner df0f7c943b feat: auth using sse 2024-10-17 21:47:55 +03:00
ner fdec33ae64 feat: auth 2024-10-16 22:44:14 +03:00
ner 22ad393a44 fix: modal border radius 2024-10-15 22:25:45 +03:00
ner a747461505 fix: search autocomplete 2024-10-15 20:06:10 +03:00
ner c31058c4f7 feat: vidstack 2024-10-12 22:26:39 +03:00
ner 3b03df3ff5 fix: order of tailwind classes 2024-10-05 17:23:37 +03:00
ner 6788dea0cd fix: search fetch order 2024-09-30 19:44:35 +03:00
ner ebf599eed6 refactor: clean code and remove unnecessary dependencies 2024-09-30 18:54:13 +03:00
ner e3b9ed78f2 feat: movie groups on main page 2024-09-13 15:27:28 +03:00
ner 279a61ddcd feat: aspect-ratio instead of width measurer 2024-08-31 21:36:16 +03:00
ner 375ebf93d9 feat: reduced countries list 2024-08-29 22:03:33 +03:00
ner 29f6de300b feat: upgrade nextjs 2024-08-29 17:06:53 +03:00
ner 750d5b12c8 feat: new nav 2024-08-29 12:58:49 +03:00
ner 5733bc0af0 feat: native carousel 2024-08-25 21:48:03 +03:00
ner 1e31520c92 feat: series 2024-06-19 18:28:17 +03:00
ner b2eef6c494 fix: search autofocus 2024-04-04 18:30:11 +03:00
ner a903752f9d feat: pull to close modal window 2024-04-03 20:20:12 +03:00
ner 0357f23cae fix: image aspect ration 2024-03-25 18:11:24 +02:00
ner 1aa145a98c fix: swiper 2024-03-25 15:31:17 +02:00
ner 12223b79d5 feat: swiper 2024-03-23 11:20:30 +02:00
ner cd8928ab54 fix: mobile menu 2024-03-22 14:28:49 +02:00
ner 1a762d00c5 fix: header 2024-03-22 13:41:31 +02:00