Skip to content

Migration wing-command to Tinyfish SDK - #216

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

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

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 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: 0c32b269-368b-4a85-b344-f70bc21a09fd

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, the build passes now but the app is broken at runtime. The 129 TypeScript errors were silenced by making WingSpot fields optional, but the API never populates them — so the UI renders placeholder/fallback data everywhere. Here's the full list:

1. Runtime broken — WingSpot fields never populated

/api/scout only returns core fields (name, address, rating, etc.) but ScoutingReportCard references price_per_wing, delivery_time_mins, deal_text, image_url, zip_code, etc. — all always undefined. The card shows "MARKET PRICE", "N/A", and placeholder emojis for everything. Making the types optional silenced the compiler but didn't fix the problem. Either:

  • Enrich the /api/scout prompt to return these fields, OR
  • Simplify ScoutingReportCard to only display the fields the API actually returns

2. DealsView and MenuModal call deleted routes

  • DealsView.tsx fetches /api/deals — this route was deleted → 404 at runtime
  • MenuModal.tsx fetches /api/menu — this route was deleted → 404 at runtime
    Both are imported by ScoutingReportCard.tsx and render in the UI. Either restore the routes or delete these components and remove them from ScoutingReportCard.

3. Dead UI components

These are never imported anywhere — please delete:

  • components/ui/Accordion.tsx
  • components/ui/Badge.tsx
  • components/ui/Input.tsx
  • components/ui/Sheet.tsx

4. Dead code in lib/

  • lib/env.ts — validateEnv() exported but never imported
  • lib/utils.ts — many unused exports: randomDelay, TOP_ZIP_CODES, getStatusBorderClass, deduplicateWingSpots, normalizeRestaurantName, normalizeAddress, formatPricePerWing, formatCountdown, getGoogleMapsUrl, getOrderSearchUrl, truncate, scoreSpotFlavor, scoreFlavorMatch, calculateStatus
  • lib/types.ts — unused types: AgentStatus, SearchState, SearchParams, ScoutResponse, SuperBowlDeal, DealsResponse, MenuItem, MenuSection, MenuData, MenuResponse

5. README issues

  • Still shows /api/discover as a separate POST endpoint (lines ~16-17, 47-48) — it was inlined into /api/scout
  • Says "Next.js 15" but package.json has next: ^14.2.35

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