Repository navigation
feat:search enhancements - browse results in a carousel and optionally post selected one in the channel - #57
Open
SpackledJim wants to merge 9 commits into
Open
SpackledJim wants to merge 9 commits into
SpackledJim wants to merge 9 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Name searches now load every match and show them one at a time in a private message, with a dropdown to jump to any match and previous/next buttons that wrap around. Matches without an IMDB id are dropped. Titles show the year, unless the TVDB name already ends in one. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Every successful search now shows a private card first. Its green Send button posts the current match to the channel as a public embed, with a small "user used search" line that doesn't mention anyone, then deletes the private card. If the post fails the card stays so Send can be retried. Searches by IMDB id or link, and name searches with one match, show the same card without the dropdown and previous/next buttons. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
Name searches can be narrowed to shows first aired in a given year. The year is ignored for IMDB ids and links, which already identify one show. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H6X9gSzpaW1Z5cEET9L1pt
This branch has not been deployed
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.
/searchnow shows up to 10 result in a private card. Pressing Send posts to the channel as a normal embed.Fixes
searchSeriesByNameread[0]on an empty list); they reply "Show not found".Name - (Name)is nowName (tt1234567)Smaller features
parseIMDBIds), and autocomplete understands links too.yearsearch param (ignored for IMDB IDs and links).The new flow
Title (Year)with the network underneath. It selects the current one, and Previous/Next buttons step through them (they wrap around).@user used searchline above it (no ping), then deletes the private card. If the post fails, the card stays so Send can be retried.Implementation notes
src/lib/carousel.ts(sendCarousel) owns the card, dropdown, buttons and Send. It listens for component interactions on its own reply message, because the existing router only supports fixed select-menu IDs and can't carry per-reply state.src/lib/tvdb.ts:getSeriesByNameis replaced bygetSeriesCandidates(returns up to 10 matches, optional year) andgetSeriesByTvdbId; the English-translation step is shared between lookups.buildShowEmbedis unchanged, so/linkand/postembeds look the same; the year in the title is added in/searchonly.