JMCP: Papers - jmcp/search-and-discovery-skeleton-SU6U3feE#4
Closed
landigf wants to merge 1 commit into
Closed
Conversation
Owner
Author
|
Closing: will integrate valuable features directly on main to avoid cascade merge conflicts. |
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.
Review: Search & Discovery Skeleton
Change summary
searchInputSchema,searchResultSetSchema,discoverTopicGroupSchema,discoverSectionsSchemawith matching TS typesPapersRepositoryinterface —search()andgetDiscoverSections()— implemented inDemoRepositorywith in-memory substring matching/search(query-param?q=) and/discoverpages, both server-rendered RSC pages<Link>s added toSiteHeaderTotal unstaged delta: +151 lines across 3 files, plus 2 new page files (~220 lines).
Validation confidence: High
z.inferderives types from schemas — no drift risk.<form method="GET">, so it works without JS./searchand/discoveris correct (/search?q=...,/discover).Risks that still remain
searchInputSchemais declared but never called — the page readssearchParams.qraw. Fine for demo, but the schema max-length (200) isn't enforced at the boundary..includes()over all papers/users/conferences. Acceptable for demo data; won't scale to real volume without an index.getDiscoverSectionsviewer fallbackcrossDisciplinaryPicksdegenerates to top-scored papers (no interests to exclude). Intentional but worth documenting.loading.tsxorerror.tsx— a slow demo-store read would show a blank page.contracts/test/index.test.tsdoesn't cover the new schemas yet.No blocking issues. Good to commit.