Skip to content

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

Merged
simantak-dabhade merged 3 commits into
tinyfish-io:mainfrom
KrishnaAgarwal7531:migst
Jul 13, 2026
Merged

simantak-dabhade merged 3 commits into
tinyfish-io:mainfrom
KrishnaAgarwal7531:migst

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 Jun 16, 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: a55d8156-c777-4228-8bb9-5374a80c9cda

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.

@simantak-dabhade

Copy link
Copy Markdown
Contributor

Hey Krishna, thanks for addressing the feedback from PR #215 — all four issues are resolved:

✅ README no longer references deleted routes (/api/discover-platforms, /api/check-platform)
✅ Dead legacy types removed from types/hotel.ts
✅ AreaResultsSection.tsx added to README project structure
✅ API snippet fixed to use getContents() (camelCase)

One process note: please don't open new PRs when changes are requested — just push new commits to the existing branch/PR. That way the review history stays in one place and reviewers can see what changed. PRs #215 and #216 had detailed feedback that's now orphaned on closed PRs.

Will review the full diff shortly.

@simantak-dabhade

Copy link
Copy Markdown
Contributor

Pushed 2 fix commits:

  1. Added tsconfig.tsbuildinfo to .gitignore — was missing, could get committed on build
  2. Added GEMINI_API_KEY validation in discover-areas/route.ts — was using process.env.GEMINI_API_KEY! (non-null assertion) which would throw an opaque Gemini SDK error if the key was missing. Now returns a clear 500 with error message, consistent with the TINYFISH_API_KEY guard above it. Also fixed missing trailing newline in package.json.

Build verified locally — compiles clean. LGTM, merging.

@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.

LGTM — all prior feedback addressed, build verified locally.

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