Skip to content

[SEARCH-101] Search Scenario on CraftMerge Platform #77

Description

@mehalyna

Story Overview

As a
platform visitor or registered user,

I want to
search for companies, services, or keywords using the search bar,

So that I can
quickly find relevant participants or offerings on the CraftMerge platform.


Acceptance Criteria

# Criteria
1 A search bar must be available in the header on all pages
2 Users must be able to input a keyword and click the search icon (🔍) or press Enter to trigger search
3 The search must be case-insensitive and allow partial keyword matching
4 The search results page should display: Результати пошуку “<keyword>” : <count>
5 If results are found, display company cards in a grid layout
6 Each result must include company name, sector tag, location, and logo/image
7 If one result is found, show a single card with standard styling
8 If zero results are found, show a message: Пошук не дав результатів
9 Include a clear (X) button to remove the query and reset the input field
10 The footer should remain visible on all search result states

UI/UX Notes

  • Keep search input width consistent with existing design (aligned with other header elements)
  • Results page should reuse the same layout style used on “Усі підприємства”
  • Use visual emphasis on the keyword in the results title (e.g., bold or highlighted)
  • "Clear" button resets the search field but does not auto-refresh results unless re-submitted

Search Result States

State Behavior
✅ Multiple Match Show keyword + count + list of cards
✅ Single Match Display single result in full card format
❌ No Match Show Пошук не дав результатів and keep visual structure consistent

Navigation Summary

  • Header search available site-wide
  • Clicking a card from the result list should link to the respective Company Profile Page
  • Clear (X) in the search bar empties the search field without navigating away

Example Output Text

  • "Результати пошуку “Сільпо” : 12"
  • "Пошук не дав результатів"

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions