Loading workspace insights... Statistics interval
7 days30 daysLatest CI Pipeline Executions
04a9cab0 feat(examples): add AI-powered search example (#114)
* feat(examples): add AI-powered search example
- 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
* feat(examples/ts-react-search): add navigation component to hero section
- Added a new Navigation component with links to Home, Orders, Disputes, and Settlements pages
- Integrated navigation into the hero section for improved user experience
* refactor(navigation): simplify route references in Navigation component
- Replace imported route objects with hardcoded string paths
- Remove unused route imports
* refactor(routes): restructure API search route into directory
- 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
* feat(examples): integrate TanStack DB for client-side data management
- Replace server functions with TanStack DB collections and live queries
- Add @tanstack/react-db, @tanstack/query-db-collection, and related packages
- Implement disputes, orders, and settlements collections with Zod validation
- Create useLiveQuery hooks for reactive data filtering and searching
- Update components to use client-side collections instead of server functions
* feat(examples): update search API to use server-sent events streaming
- Migrated from `toStreamResponse` to `toServerSentEventsResponse` for improved streaming
- Updated OpenAI adapter to use `openaiText` with model specification
- Updated multiple dependencies including React, TanStack Router, and TailwindCSS
* refactor(search): migrate search API from streaming to synchronous with structured validation
- Replaced Server-Sent Events with React Query mutation for search requests
- Added Zod schema validation for structured output in search API
- Updated search component to handle JSON responses instead of streaming
- Improved error handling and type safety for search parameters
* refactor(search): extract search mutation logic into reusable hook
- Moved search API mutation logic from Search component into dedicated useSearchMutation hook
- Improves code reusability and separation of concerns
- Enables search functionality to be used across multiple components
- Reduces code duplication and improves maintainability
* build(ts-react-search): bump TanStack Router stack and refresh lockfile
- Align the ts-react-search example with newer @tanstack/react-router, react-start, router-plugin, and devtools packages so it stays compatible with current TanStack releases
- Regenerated route tree types so the layout route reports fullPath as '/' instead of an empty string, matching the updated router codegen
- Updated the workspace lockfile so installs resolve consistently with the new dependency graph
* feat(ts-react-search): switch AI search adapter from OpenAI to Groq
- Example depends on @tanstack/ai-groq and uses groqText with openai/gpt-oss-20b
- Server checks GROQ_API_KEY instead of OPENAI_API_KEY
- Output schema is wrapped with toGroqCompatibleSchema so Groq accepts JSON Schema unions (additionalProperties on anyOf)
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>