Skip to content

Migration wing-command to Tinyfish SDK - #224

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

simantak-dabhade merged 2 commits into
tinyfish-io:mainfrom
KrishnaAgarwal7531:migwi

Conversation

@KrishnaAgarwal7531

Copy link
Copy Markdown
Contributor

Migrates Wing Command from raw TinyFish HTTP calls to the official SDK, and tears out the Supabase + Redis infrastructure that was never needed for this use case. The app now runs entirely in-memory — no database to provision, no cache to configure, just two API keys and you're running.
The app itself finds the best chicken wing spots near you by zip code. Pick a flavor persona, and it fires parallel browser agents at DoorDash, Uber Eats, Grubhub, and Google simultaneously, streaming results back as each source finishes rather than waiting for all of them.

@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: 3b92234a-3aca-43b4-9b58-93d0ab1d49a9

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 the thorough cleanup on this one — all five issues from PR #216 are resolved:

✅ WingSpot types and data flow fixed — API now populates the same fields the UI reads
✅ DealsView, MenuModal, and their broken /api/deals + /api/menu routes deleted
✅ Dead UI components removed (Accordion, Badge, Input, Sheet)
✅ Dead code cleaned up in lib/env.ts, lib/utils.ts, lib/types.ts
✅ README rewritten — no stale /api/discover reference, Next.js version correct

Same note as on #223: please don't open new PRs when changes are requested — just push new commits to the existing branch/PR. It keeps the review history in one thread and makes it easier for reviewers to track what was fixed. PRs #215 and #216 had detailed feedback that's now stranded on closed PRs.

Will do a full review shortly.

- Generate missing package-lock.json
- Add TINYFISH_API_KEY and GEMINI_API_KEY validation in /api/scout
- Add tsconfig.tsbuildinfo to .gitignore
- Fix missing trailing newline in package.json
@simantak-dabhade

Copy link
Copy Markdown
Contributor

Pushed 1 fix commit:

  1. Generated missing package-lock.json — was deleted in the migration but never regenerated. Without it, npm install gets unpinned transitive deps.
  2. Added TINYFISH_API_KEY and GEMINI_API_KEY validation in /api/scout — both were used via process.env.X! (non-null assertion) which would throw opaque errors if missing. Now returns clear 500s before the stream starts.
  3. Added tsconfig.tsbuildinfo to .gitignore — was missing.
  4. 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.

@simantak-dabhade
simantak-dabhade merged commit c01680f into tinyfish-io:main Jul 13, 2026
2 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