Skip to content

Migration loan-decision-copilot to Tinyfish SDK #207

Merged
simantak-dabhade merged 2 commits into
tinyfish-io:mainfrom
KrishnaAgarwal7531:loan
May 19, 2026
Merged

Migration loan-decision-copilot to Tinyfish SDK #207
simantak-dabhade merged 2 commits into
tinyfish-io:mainfrom
KrishnaAgarwal7531:loan

Conversation

@KrishnaAgarwal7531
Copy link
Copy Markdown
Contributor

Full rewrite from a Vite + Supabase Edge Functions app to Next.js App Router. Supabase is completely removed — no client, no Edge Functions, no VITE_SUPABASE_* env vars. Everything routes through Next.js API routes directly.
The biggest improvement is in discovery: the original discover-banks function called Lovable's AI gateway (Gemini) to hallucinate bank URLs from training data — results were often wrong or outdated. The new /api/discover-banks runs two parallel TinyFish Search queries targeted at the user's specific location, deduplicates by domain, and filters out aggregator sites so only real bank pages reach the agents.
/api/analyze-loan replaces the raw Mino SSE fetch with client.agent.stream — typed EventType.STREAMING_URL, EventType.PROGRESS, EventType.COMPLETE + RunStatus.COMPLETED, with result content validation (COMPLETED status alone is not treated as success). Agents run in parallel via Promise.allSettled and stream results back as each bank finishes.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

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: 3f7d2fc4-e806-40fa-8b8a-ff782f55f4ce

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.

- Remove unused isSearching variable from page.tsx
- Escape apostrophe in AgentCard.tsx
- Remove unused FileText import from BankDetailPanel.tsx
- Remove committed next-env.d.ts and add to .gitignore
Copy link
Copy Markdown
Contributor

@simantak-dabhade simantak-dabhade left a comment

Choose a reason for hiding this comment

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

Clean migration. Fixed ESLint errors, removed next-env.d.ts. Build passes.

@simantak-dabhade simantak-dabhade merged commit 7d6c094 into tinyfish-io:main May 19, 2026
3 checks passed
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