Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 20, 2025

Description

  • Search now displays "No results found for '{keyword}'. Please try a different search term." when a query returns zero results
  • Message appears only when user has performed a search (keyword present in URL) and results are empty
  • Uses existing styling patterns (centered, gray-600 text)

Implementation:

) : keyword && searchResults.length === 0 ? (
  <div className="py-8">
    <p className="text-center text-gray-600">
      No results found for "{keyword}". Please try a different search term.
    </p>
  </div>
) : (

Screenshot (optional)

Search No Results Fix

Before: Empty page after searching "copilot_here"
After: Clear feedback message displayed

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>🐛 Bug - Search Functionality Issues</issue_title>
<issue_description>Requested by: @jakebayliss via YakShaver.ai 🦬
cc: @jakebayliss, @GordonBeeming, @Marxoz, @PothieuG, @Freego1783

Hi Team!

  🟥  Watch the video (1 min 36 sec)

  Url from screen share: https://www.ssw.com.au/rules/search?keyword=copilot_here

Pain

The search functionality on the Rules V3 (TinaCMS) site does not search the body of the rule and fails to indicate when no results are found.

Acceptance Criteria

  1. The search functionality should include the body of the rule in its search scope.
  2. When no results are found, the system should display a message indicating that the search has been conducted and no results were found.
  3. Ensure the search works correctly within the 'Tina.io' UR.

Reproduce Steps

  1. Navigate to the Rules V3 (TinaCMS) site.
  2. Enter 'copilot' in the search box and press enter.
  3. Observe that the search does not return results from the body of the rule.
  4. Note that no message is displayed when no results are found.
  5. Attempt the search within the 'Tina.io' UR and observe the functionality.

Screenshot

Screenshot
Figure: Search function does not search rule body and fails to indicate no results found.</issue_description>

<agent_instructions>Show a message letting the user know there were no records found for the search if there are none</agent_instructions>

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Display a user-friendly message when search returns 0 results
- Message only appears when a keyword is present and no results found
- Message does not appear on initial page load without search
- Follows existing styling patterns with centered gray text

Co-authored-by: jakebayliss <[email protected]>
Copilot AI changed the title [WIP] Fix search functionality to include rule body and no results message Add "No Results Found" message to search page Dec 20, 2025
Copilot AI requested a review from jakebayliss December 20, 2025 00:51
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.

🐛 Bug - Search Functionality Issues

2 participants