Commit Graph
18 Commits
Author SHA1 Message Date
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
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 735c63471a feat(seo): slugged show urls, sr-only homepage intro, ISR detail pages
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 17:46:01 +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 74bfe5726e fix: preview layout 2024-11-16 20:36:50 +02:00
ner 183c7231a1 feat: show page 2024-11-06 22:12:19 +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 29b22f88ae feat: virtual list of credits 2024-10-20 13:54:05 +03:00
ner dc8dde4dbb fix: modal frame 2024-10-19 23:31:45 +03:00
ner 9702f027ed fix: border radius 2024-10-19 23:00:53 +03:00
ner 8858e47d38 feat: favorite & watch lists 2024-10-19 16:09:15 +03:00
ner c31058c4f7 feat: vidstack 2024-10-12 22:26:39 +03:00
ner 058ecd452f feat: scroll navigation 2024-10-10 15:55:25 +03:00
ner 3b03df3ff5 fix: order of tailwind classes 2024-10-05 17:23:37 +03:00
ner ebf599eed6 refactor: clean code and remove unnecessary dependencies 2024-09-30 18:54:13 +03:00