Skip to content

Conversation

Copy link

Copilot AI commented Nov 14, 2025

Implements client-side search filtering for prompts by name and description.

Changes

  • Search Input: Added search box with icon in prompts list header
  • Filtering Logic: Real-time case-insensitive filtering across prompt name and description fields
  • Empty States: Contextual "no results" message when search returns no matches

Implementation

Modified frontend/src/components/prompts/PromptsList.tsx:

const [searchQuery, setSearchQuery] = useState('');

const filteredPrompts = promptList.filter((prompt) => {
  if (!searchQuery.trim()) return true;
  
  const query = searchQuery.toLowerCase();
  const name = prompt.name.toLowerCase();
  const description = (prompt.description || prompt.messages[0]?.content || '').toLowerCase();
  
  return name.includes(query) || description.includes(query);
});

Screenshots

Search with results:
Filtered results

No matches state:
No results

Original prompt

This section details on the original issue you should resolve

<issue_title>PLAY-76 st001` Text Search for Tasks</issue_title>
<issue_description> Implement the work described in Jira ticket PLAY-76, including looking at any Figma files mentioned. When finished, transition the ticket to "In Reivew".

To do the work use the following prompt chain which describes steps for best implementing the feature:

  1. Open the repository on GitHub: https://github.com/bitovi/ai-enablement-prompts.
  2. Execute the prompt writing-code/generate-feature/generate-feature.md</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: BitoviAI <226138784+BitoviAI@users.noreply.github.com>
Copilot AI changed the title [WIP] Add text search feature for tasks Add text search to prompts list Nov 14, 2025
Copilot AI requested a review from BitoviAI November 14, 2025 22:01
Copilot finished work on behalf of BitoviAI November 14, 2025 22:01
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.

PLAY-76 st001` **Text Search for Tasks**

2 participants