Phase 4: Real GSMArena research, engine refactor, UI improvements - #1
Merged
Conversation
- New server/utils/gsmarenaParser.ts — parses GSMArena HTML into PhoneModel (search results + specs page with dimensions, screen, camera, features) - New server/routes/research.ts — POST /api/v1/research endpoint (scrapes GSMArena via axios + cheerio, validates with Zod) - New src/utils/researchCache.ts — client-side 24h localStorage cache - Rewrote ExternalResearchPanel.tsx — real GSMArena search with: - RESEARCHED badge, Promote to Catalog button - Edit specs before adding, view raw GSMArena data - Cache-first strategy, automatic duplicate skipping - Research tab now always visible (replaces hidden demo tab) - Separated server deps (express, cors, pg, ssh2) into optionalDependencies - Added axios + cheerio for server-side scraping - 39 tests total (+12 new): gsmarenaParser (5), researchCache (7) - Production build succeeds (356KB JS, 43KB CSS) - Clean TypeScript compilation Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Какво включва този PR
Фаза 0 — Demo изчистен (code hygiene)
Фаза 1 — Реално търсене на модели
Фаза 2 — Engine & scoring
Фаза 3 — UI за гише
🌐 Фаза 4 — Реално GSMArena търсене
Тестове
39 теста, 4 test suites, всички минават
Build