Fix Discover swipe bounce-back, dice icon, homepage button, and Feeling Lucky improvements#15
Fix Discover swipe bounce-back, dice icon, homepage button, and Feeling Lucky improvements#15Copilot wants to merge 8 commits into
Conversation
…point Co-authored-by: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com>
Co-authored-by: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com>
|
@copilot when using the arrows it continues swiping even after releasing the key. Also ran into the case quickly where it ran out of recommendations. |
…stion Co-authored-by: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com>
Co-authored-by: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com>
|
@copilot the card bouncing back issue still happens when using the buttons or arrow keys. Also change the button's icon to dice Also pls add the button to the homepage below the search input |
Co-authored-by: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com>
|
@copilot the recommendations seem to differ a lot from the other ones in the app, they feel worse. Also if you swipe left / dismiss an item it shouldn't show up again the next time you open the feeling lucky interface. Also reduce the amount of tv shows and focus on movies. Also make the feeling lucky button / interface in the library show items that are ready to watch first. The one on the home page doesn't need that filter. |
Co-authored-by: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com>
Done in commit
|
Bounce-back on button/keyboard swipes persisted because
forcedSwipewas set andswipeRight/swipeLeftcalled simultaneously — the store update removed the card beforeforcedSwipewas cleared, so the next card inherited the animation and snapped back.Changes
DiscoverModal.svelte— MoveswipeRight/swipeLeftcalls into the 400 ms timeout alongsideforcedSwipe = null. Both happen in the same synchronous batch, so the incoming top card always seesforcedSwipe = null. Also updated title and stats labels to be mode-aware (library vs. home).SwipeCard.svelte— Removed the internal 350 ms reset timer from theforcedSwipe$effect. The card now stays in its exit position until the parent unmounts it, eliminating the snap-back window between the timer firing and the store update.library/+page.svelte— Changed "Feeling Lucky" button icon from star to dice (Lucide Dice5). Updated button to open in library mode.+page.svelte— Added "Feeling Lucky" button (with dice icon) below the homepage search input.discover.ts(store) — Dismissed (swiped-left) items are now persisted tolocalStorageand excluded from future opens of the interface. Introduces a'home' | 'library'mode foropenDiscover(). In library mode, the deck is pre-populated withonMediaServerwatchlist items (shuffled) first, then pending watchlist items, before padding with TMDB recommendations. Swipe-right on already-watchlisted items skips theaddToWatchlistcall./api/discover— Results are now interleaved 3:1 (movies:TV) so the deck is ~75% movies, reducing the proportion of TV show suggestions.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.