Skip to content

Conversation

@denis-shvets
Copy link
Contributor

🎯 Changes

Quote from my article

Let your users speak: Seamless app interaction through Natural Language

Crafting effective search interfaces often presents a significant challenge. You rely on obligatory calendars for date selection and an abundance of dropdowns to manage parameters like status or region. Despite these efforts, users frequently encounter difficulties in efficiently locating information or navigating to the desired section.

What if we could offer a mechanism to bypass the friction and allow users to communicate their needs directly?

🔹 SV: "Visa mig alla utgångna ordrar från förra sommaren" (Show me all expired orders from last summer.)
🔹 EN: "Delayed air shipments to BR over 5kg this week"
🔹 EN: "I'm looking for red waterproof Nike shoes, size 44, under 100"

Introducing Natural Language Search as a solution to this challenge.

Commit message

  • Introduces a comprehensive React example demonstrating natural language search capabilities
  • Users can query merchant data (orders, disputes, settlements) using conversational language like "show me orders from last week"
  • AI converts natural language prompts into structured search parameters with proper filtering and date ranges
  • Includes full UI with data tables, filters, and responsive design using Tailwind CSS
  • Leverages TanStack Start, TanStack Router, TanStack AI

Preview

orders-preview

Next steps

  • At the moment, the filters and tables rely on the original implementation. The next phase will be migrating them to TanStack Form, TanStack Table, and TanStack Virtual(maybe?).
  • The data is also hardcoded for now. The plan is to transition to TanStack Query or TanStack DB.
  • Clean up the leftover TanStack Start artifacts.

✅ Checklist

  • 🤷 I have followed the steps in the Contributing guide. - The file does not exist. 🚨
  • I have tested this code locally with pnpm run test:pr

🚀 Release Impact

This change introduces only the new example.

@denis-shvets denis-shvets marked this pull request as draft December 7, 2025 14:25
- Introduces a comprehensive React example demonstrating natural language search capabilities
- Users can query merchant data (orders, disputes, settlements) using conversational language like "show me orders from last week"
- AI converts natural language prompts into structured search parameters with proper filtering and date ranges
- Includes full UI with data tables, filters, and responsive design using Tailwind CSS
- Leverages TanStack Start, TanStack Router, TanStack AI
@denis-shvets denis-shvets marked this pull request as ready for review December 7, 2025 16:32
- Added a new Navigation component with links to Home, Orders, Disputes, and Settlements pages
- Integrated navigation into the hero section for improved user experience
@denis-shvets
Copy link
Contributor Author

Added navigation between pages:
{D0E68615-FEAB-4DEE-9C60-C8ABDF80C7C3}

@nx-cloud
Copy link

nx-cloud bot commented Dec 8, 2025

View your CI Pipeline Execution ↗ for commit 54621f2

Command Status Duration Result
nx run-many --targets=build --exclude=examples/** ✅ Succeeded 35s View ↗
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 2m 18s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-09 23:32:11 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 8, 2025

Open in StackBlitz

@tanstack/ai

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai@114

@tanstack/ai-anthropic

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-anthropic@114

@tanstack/ai-client

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-client@114

@tanstack/ai-devtools-core

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-devtools-core@114

@tanstack/ai-gemini

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-gemini@114

@tanstack/ai-ollama

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-ollama@114

@tanstack/ai-openai

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-openai@114

@tanstack/ai-react

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-react@114

@tanstack/ai-react-ui

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-react-ui@114

@tanstack/ai-solid

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-solid@114

@tanstack/ai-solid-ui

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-solid-ui@114

@tanstack/ai-svelte

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-svelte@114

@tanstack/ai-vue

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-vue@114

@tanstack/ai-vue-ui

npm i https://pkg.pr.new/TanStack/ai/@tanstack/ai-vue-ui@114

@tanstack/react-ai-devtools

npm i https://pkg.pr.new/TanStack/ai/@tanstack/react-ai-devtools@114

@tanstack/solid-ai-devtools

npm i https://pkg.pr.new/TanStack/ai/@tanstack/solid-ai-devtools@114

commit: 54621f2

- Replace imported route objects with hardcoded string paths
- Remove unused route imports
- Moved api.search.ts to api/search.ts for better organization
- Updated route tree imports to reflect new file structure
- Maintains existing functionality while improving code organization
@jherr
Copy link
Contributor

jherr commented Dec 9, 2025

We should hold on this example until we have a structured output generation function.

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