Repository navigation
Migration stay-scout-hub to Tinyfish SDK - #215
KrishnaAgarwal7531 wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
simantak-dabhade
left a comment
There was a problem hiding this comment.
Hey Krishna, build passes and the core issues from the previous PR are fixed (type mismatch, Groq → Gemini) — nice work there. But the README is still significantly out of sync with the actual code. Here's what needs fixing:
1. README still references deleted API routes
The architecture diagram, flow section, project structure tree, and constraint checklist all still mention /api/discover-platforms and /api/check-platform — both routes were deleted. Only /api/discover-areas and /api/research-area exist now. Please update:
- Architecture diagram (lines ~22-23)
- Flow steps 3 and 5 (lines ~59, 61)
- Project structure listing (lines ~118, 120)
- Constraint checklist "Platform check via real browser" row (line ~144)
2. Dead legacy types in types/hotel.ts
Platform, Hotel, PlatformResult, SSEEvent, and SSEEventType are defined but never imported anywhere. They're labeled "Legacy Types (for backwards compatibility)" but there's no backwards-compat scenario in a fresh migration. Please remove them.
3. Missing component in README project structure
AreaResultsSection.tsx exists in the code but isn't listed in the README project structure.
4. README API snippet uses wrong casing
The README shows client.fetch.get_contents() (snake_case) but the actual code uses client.fetch.getContents() (camelCase). Please fix the snippet.
Migrates Stay Scout Hub to the official TinyFish SDK and makes the code match what the README was already promising. The app now genuinely uses all three TinyFish APIs — Search, Fetch, and Agent — each for what it does best.
discover-areas now uses the Search API to find real travel guides for the city, the Fetch API to extract neighborhood content from those pages, and Groq to structure it into recommendations. Previously it was just prompting Groq to hallucinate neighborhood names from training data. discover-platforms similarly uses Search to discover which booking platforms actually operate in the destination, rather than hardcoding a regional list.