feat(discover): WebGL2 Voronoi movie discovery page#120
Open
GuillaumeBld wants to merge 1 commit into
Open
Conversation
Adds a new "Discover" page — a WebGL2 force-relaxed grid of movie poster thumbnails inspired by nothing-to-watch (MIT). Pan/zoom to explore, hover to preview, click to open MoviePage. Architecture: - src/discover/engine.js — OGL WebGL2 renderer: force-relaxed grid layout, instanced quad drawing, lazy poster texture loading, pan/zoom controls, hover hit-testing, touch support - src/discover/shaders.js — MIT GLSL shaders: rounded-rect poster cells + pulsing hover highlight overlay - src/discover/DiscoverPage.jsx — React component mounting the canvas, floating preview card (title/year/rating/genres/overview), loading progress bar - src/utils/discover.js — TMDB film fetcher: paginate popular + top_rated + now_playing + trending (10 pages each, ~2000 films), deduped by id, cached to localStorage for 24h - DiscoverIcon added to Icons.jsx - Discover nav item added to Sidebar.jsx - Lazy-loaded route added to App.jsx - CSS for all Discover components in global.css - ogl v1.0.11 added as dependency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Discover page — a WebGL2 force-relaxed grid of movie poster thumbnails inspired by nothing-to-watch (MIT). All shaders are original MIT-licensed code (no CC BY-NC-SA dependency).
How it works
Files added
src/discover/engine.jssrc/discover/shaders.jssrc/discover/DiscoverPage.jsxsrc/utils/discover.jsFiles modified
src/components/Icons.jsx—DiscoverIconaddedsrc/components/Sidebar.jsx— Discover nav itemsrc/App.jsx— lazy-loaded routesrc/styles/global.css— Discover + preview card stylespackage.json—oglv1.0.11 addedTest plan