Skip to content

Extend global search result items rendering #6

@arina-tirreno

Description

@arina-tirreno

Feature/problem:
The global search result appears as nearly plain texted dropdown list.

Possible solution:
formatResult: function(suggestion, currentValue) {...} defined in autocomplete config.
It should have a switch case depending on category, so, for example, user result will receive renderClickableImportantUserWithScore() rendering and IP result will receive renderIpWithCountry().
Also this approach requires some extra data from backend about search results (country id for IP, score for user, etc). Search models are located here and data aggregating is performed here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions