Skip to content

Unify search and AI into a single input field - #127

Merged
RivianTrackr merged 1 commit into
mainfrom
claude/add-ai-search-feature-laTDQ
Feb 21, 2026
Merged

Unify search and AI into a single input field#127
RivianTrackr merged 1 commit into
mainfrom
claude/add-ai-search-feature-laTDQ

Conversation

@RivianTrackr

Copy link
Copy Markdown
Owner

Merge the previously mutually exclusive search input and AI prompt input into one seamless experience. When AI is enabled, the single #searchInput field shows both local search suggestions (brands, models, sizes, categories) and an "Ask AI" option in the dropdown.

  • Template: Replace if/else with unified input using #searchInput ID plus AI submit button (wand icon) when AI is enabled
  • search.js: Append "Ask AI" suggestion to dropdown when AI is enabled and query is >= 2 chars; show dropdown even with no local matches so AI option is always accessible
  • ai-recommend.js: Read from #searchInput instead of #rtgAiInput; export submitAiQuery for the search module; auto-clear AI state when user types new text
  • Enter key always filters locally; AI is triggered explicitly via the dropdown suggestion or the wand submit button

https://claude.ai/code/session_01L25u1HZi7acxZHn63zQBai

Merge the previously mutually exclusive search input and AI prompt
input into one seamless experience. When AI is enabled, the single
#searchInput field shows both local search suggestions (brands,
models, sizes, categories) and an "Ask AI" option in the dropdown.

- Template: Replace if/else with unified input using #searchInput ID
  plus AI submit button (wand icon) when AI is enabled
- search.js: Append "Ask AI" suggestion to dropdown when AI is
  enabled and query is >= 2 chars; show dropdown even with no local
  matches so AI option is always accessible
- ai-recommend.js: Read from #searchInput instead of #rtgAiInput;
  export submitAiQuery for the search module; auto-clear AI state
  when user types new text
- Enter key always filters locally; AI is triggered explicitly via
  the dropdown suggestion or the wand submit button

https://claude.ai/code/session_01L25u1HZi7acxZHn63zQBai
@RivianTrackr
RivianTrackr merged commit 41f5ef6 into main Feb 21, 2026
4 checks passed
@RivianTrackr
RivianTrackr deleted the claude/add-ai-search-feature-laTDQ branch February 21, 2026 00:50
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.

2 participants