Repository navigation
feat(search): show people in the quick search dialog - #1601
Conversation
The quick search dialog (Ctrl+K) now lists matching people next to titles, using the same scoped, access-filtered people search as the full search page. An exact name match leads; otherwise people follow the titles. When both kinds of result appear, each group gets a heading and a divider. Selection tracks the chosen result rather than its position, so a selected row stays selected when people results arrive and reorder the list. The people search hook moves into its own module so the dialog, which ships in the app shell, does not pull the rest of the people hooks into the launch bundle. The launch bundle budget rises by 1,064 B brotli for the new dialog code. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (14)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughGlobal search now includes people alongside catalog titles. The people-search hook has a dedicated module, and person catalog URLs encode person IDs. ChangesPeople search
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature · Severity of issue fixed: Low Sequence Diagram(s)sequenceDiagram
participant GlobalSearch
participant usePersonSearch
participant fetchPeopleSearchCapabilities
participant searchPeople
participant buildPersonCatalogHref
GlobalSearch->>usePersonSearch: Query, four-result limit, and media scope
usePersonSearch->>fetchPeopleSearchCapabilities: Check people-search capabilities
usePersonSearch->>searchPeople: Search normalized query when supported
GlobalSearch->>buildPersonCatalogHref: Build person URL from person ID
buildPersonCatalogHref-->>GlobalSearch: Return URL with encoded person ID
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The supplied evidence identifies no remaining issue that should hold the people-search change back from normal merge checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The dialog adds a way to find people, but it uses the existing viewer-aware search endpoint and does not introduce a new privileged operation. No access-control bypass was identified; detail-page authorization was not fully verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 16 functions across 13 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
This PR addresses the remaining #1294 gap in quick search. #1144 C3 is still recorded as Failed / blocked by #1294; the earlier handoff only made it ready to re-test after #1302 added people to the full Catalog search. This change adds people to Ctrl+K quick search, so C3 is ready to re-test on a published build containing this change, not passed. Suggested fix: Re-test C3 on a published build after merge and update #1144’s Results table; no source diff applies to this validation follow-up. Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
Person IDs are opaque strings in the API contract, so the person page link now encodes them for every caller of buildPersonCatalogHref. When no title matches and the people search fails, the quick search dialog shows its load error instead of "No matches". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Brings the branch up to date with main (78 commits) before it merges. - internal/requests: main's TVDB ID lookup (#1558) runs in the branch's claim-based submission: submitClaimed resolves the ID before planSubmission drops failed targets, the claim keeps the create call's lookup result, and direct and routed submissions explain a missing TVDB ID. Main's Retry TVDB tests now expect the branch's flow, where a submission error defers the reopened request instead of failing Retry. - GlobalSearch: main's people results (#1601) and the branch's request suggestion rows share one option sequence, keyed by result, with the request rows after the library and people results. - Tests and contracts: both sides' ledger entries and TMDB client tests are kept; OpenAPI, fixtures, route inventory and web types regenerated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Problem
Closes #1294
Related issue: #1138
Validation tasks: unblocks #1144 C3
The quick search dialog (Ctrl+K) only returned titles. Searching an actor or director by name there gave no way to open that person. #1302 added people to the full search page but not to this dialog, so #1294 stayed open. This change adds people results to the dialog.
Approach
The dialog uses the same people search as the full search page. It follows the profile's Media/Audiobooks/All scope, returns only people the viewer can access, and shows nothing when the server does not advertise that support. The dialog lists up to four people.
People whose name exactly matches the query come first, and only those. For other queries, people come after the titles, so a short query like "chris" does not bury titles under partial names. When both kinds of result appear, "People" and "Titles" each get a heading in the "Request to Add" style, with a divider between them. Title-only searches look the same as before.
Arrow keys and Enter move through both groups. The selection is tied to the chosen result rather than its position, so a selected row stays selected when people results arrive and reorder the list.
Person IDs are opaque strings in the v2 contract, so
buildPersonCatalogHrefnow URL-encodes them. That covers every person link, including cast and crew. Numeric IDs, the only kind in use today, are unchanged. If no title matches and the people search fails, the dialog shows its load error instead of "No matches".The people search hook moves out of
hooks/queries/people.tsintohooks/queries/personSearch.ts. The dialog ships in the app shell, and importing the old module pulled the person refresh and edit hooks into the launch bundle. Even after the split, the dialog code adds 1,165 B brotli overmain, which is 40 B past the checker's tolerance.perf-budget.jsonrises from 317,864 to 318,928 B.Validation
make test-webpassed (660 files, 5,353 tests). New dialog tests cover scope and limit, ordering, headings and dividers, keyboard and mouse selection, loading and empty states, and a failed people search.budget:checkpassed with the raised budget.make verify-local-pathspassed.src/pages/Catalog.test.tsx, whichmake test-webexcludes, fails the same way on unmodifiedmain. Its only change here is a mock path.Risks
The launch bundle grows by about 1.2 KB brotli. When the server does not advertise scoped people search, the dialog behaves as before. No API, migration, jellycompat, or native-client change.
Checklist
AI Disclosure
🤖 Generated with Claude Code