Fix project recommendations, org connection, star freshness, and UI coherence - #131
Merged
Merged
Conversation
- Thread Vectorize embedding similarity into the project reranker so semantic matches survive past retrieval instead of being dropped when they lack literal topic/tool overlap. - Surface the GitHub OAuth-app org grant URL in the repo picker with a refresh action, so additional organizations can be connected after the initial consent. - Track repos.fetched_at (migration 0006) and refresh stale rows on repo detail reads (12h TTL); the weekly seed job now refreshes stored rows still in the GitHub source set and records star snapshots on change. - Consolidate star-count formatting, language colors, and relative-time helpers into src/lib/repo-display.ts; TopBar only marks Library active on /stars and /lists. Refs #130 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
6 tasks
Refs #130 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Refs #130 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Closes #130
Summary
rankProjectRecommendationsonly scored literal topic/tool/token overlap, so embedding-nearest repos with no shared vocabulary scored 0 and fell below the specific-match threshold. Normalized similarity (0–1) is now threaded from retrieval through hydration into the reranker as a weighted signal, with honest evidence copy.GET /api/github/projectsreturnsorgAccessUrl(the OAuth app's GitHub connection page), and the repo picker gains a persistent grant hint + Refresh action so users can grant additional organizations and reload without leaving the product.repos.fetched_at(migration 0006, already applied to remote D1). Repo detail reads refresh rows older than 12h;fetched_atis stamped on every upsert path and on any completed GitHub response so failures retry per TTL window, not per view. The weekly seed job now refreshes stored∩source rows (stars,repo_updated_at, star snapshots on change) from search metadata it already fetches — no extra GitHub calls.src/lib/repo-display.ts(LANGUAGE_COLORS,formatCompactCount,timeAgo) adopted across repo-card, explore, lists, catalog-updates, tools, and recommendation cards —12krenders the same everywhere; TopBar only marks Library active on/starsand/lists.Test plan
pnpm typecheck,pnpm lint,pnpm test(317 pass),pnpm docs:checkGenerated with Devin