Commit Graph
32 Commits
Author SHA1 Message Date
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
ner 3460041115 feat: added m3u handler support 2025-08-23 21:44:57 +03:00
ner f78af76da5 feat: safari autoplay 2025-08-17 20:40:34 +03:00
ner 82c14c1d5c feat: added download status 2025-08-14 21:38:24 +03:00
ner cd3fabc0d8 feat: customer's torrent streamer can be set 2025-08-14 14:29:30 +03:00
ner bbae7abaf5 fix: auth retry 2024-11-16 15:43:37 +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 995342f18a feat: proxy cache 2024-11-03 17:42:40 +02:00
ner 32e7885791 refactoring: poster 2024-10-30 21:14:15 +02:00
ner 3b954279f7 fix: proper prefetch 2024-10-29 19:39:41 +02:00
ner c9ca262da8 fix: back to prefetch 2024-10-29 18:25:52 +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 5cbf93b3b8 refactoring: server actions data fetching -> api routes 2024-10-26 21:33:39 +03:00
ner 1111712d2c fix: toloka auth 2024-10-26 15:11:23 +03:00
ner 0cface89bf refactoring: first render improvements 2024-10-21 18:57:49 +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 38f0ca26da fix: favorites pagination 2024-10-19 19:33:02 +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 8fd18afcf5 fix: player menu height 2024-10-15 21:56:57 +03:00
ner 9291898490 fix: dialog pull down for close feature readability 2024-10-11 17:00:00 +03:00
ner 0e3e50344f feat: torrent player 2024-10-03 22:28:13 +03:00
ner ebf599eed6 refactor: clean code and remove unnecessary dependencies 2024-09-30 18:54:13 +03:00
ner c256b7fb7c feat: torrents modal view for mobile 2024-09-01 16:20:46 +03:00
ner 5de54fd03f fix: random movie index preservation 2024-09-01 14:57:46 +03:00
ner 1e31520c92 feat: series 2024-06-19 18:28:17 +03:00
ner a903752f9d feat: pull to close modal window 2024-04-03 20:20:12 +03:00
ner cd8928ab54 fix: mobile menu 2024-03-22 14:28:49 +02:00
ner 3c1050898e feat: Initialize project 2023-08-05 12:28:04 +03:00