feat(results): structured filtering & toolbar, extended recommend schema, unified action feedback - #58
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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.
Motivation
fitReasons,bestFor,limitations,confidenceScore).includesmatching with structured signals to enable reliable filters (pricing/skill/Chinese support) and stable sorting behavior.Description
fitReasons,bestFor,limitationsandconfidenceScoreand populate them in the API output with reasonable fallbacks and anormalizeConfidencerule (ui/lib/recommend.ts,ui/app/api/recommend/route.ts).use-search-flowto build a typedDisplayItem(addspricingType,skillLevel,chineseSupport,confidenceScore,fitReasons,bestFor,limitations), switch filtering from textincludesto structured predicates, and add sorting +clearConditionsAPI (ui/hooks/use-search-flow.ts).ResultsToolbarcomponent that exposes filter buttons, a sort select and a clear action, and integrate it into the results list (ui/components/results/results-toolbar.tsx,ui/components/results/results-list.tsx).ui/components/results/results-list.tsx,ui/app/[locale]/results/page.tsx).ui/messages/en.jsonandui/messages/zh.json.Testing
cd ui && npm run typecheck, which passed successfully.cd ui && npm run lint, which fails in this environment due to a missing ESLint flat config (this is an existing repo config issue and not introduced by these changes).Codex Task