Skip to content

Migration stay-scout-hub to Tinyfish SDK - #215

Closed
KrishnaAgarwal7531 wants to merge 1 commit into
tinyfish-io:mainfrom
KrishnaAgarwal7531:st
Closed

KrishnaAgarwal7531 wants to merge 1 commit into
tinyfish-io:mainfrom
KrishnaAgarwal7531:st

Conversation

@KrishnaAgarwal7531

Copy link
Copy Markdown
Contributor

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.

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8f99137e-1ce9-4a7e-9f30-b6d6e9b9d87b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@simantak-dabhade simantak-dabhade left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants