Repository navigation
Migration wing-command to Tinyfish SDK - #216
KrishnaAgarwal7531 wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
simantak-dabhade
left a comment
There was a problem hiding this comment.
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/scoutprompt to return these fields, OR - Simplify
ScoutingReportCardto only display the fields the API actually returns
2. DealsView and MenuModal call deleted routes
DealsView.tsxfetches/api/deals— this route was deleted → 404 at runtimeMenuModal.tsxfetches/api/menu— this route was deleted → 404 at runtime
Both are imported byScoutingReportCard.tsxand 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.tsxcomponents/ui/Badge.tsxcomponents/ui/Input.tsxcomponents/ui/Sheet.tsx
4. Dead code in lib/
lib/env.ts—validateEnv()exported but never importedlib/utils.ts— many unused exports:randomDelay,TOP_ZIP_CODES,getStatusBorderClass,deduplicateWingSpots,normalizeRestaurantName,normalizeAddress,formatPricePerWing,formatCountdown,getGoogleMapsUrl,getOrderSearchUrl,truncate,scoreSpotFlavor,scoreFlavorMatch,calculateStatuslib/types.ts— unused types:AgentStatus,SearchState,SearchParams,ScoutResponse,SuperBowlDeal,DealsResponse,MenuItem,MenuSection,MenuData,MenuResponse
5. README issues
- Still shows
/api/discoveras 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
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.