Skip to content

Nav Bar || Search Suggestions Panel components #7

@vikasrohit

Description

@vikasrohit

In this task, we are required to implement 4 components. Create a branch off of master and make a PR to master

Main panel

This panel contains two sub components. One for recent search suggestions and one for popular search suggestions.

Component tree

  • search-suggestion-panel
    • recent-search-suggestions
    • popular-search-suggestions

Requirements

  • Should have a configurable field to show/hide of any of the panels

Recent Search Suggestions Panel

This component reuses the panel component and transcludes the required DOM into it.

Component tree

  • recent-search-suggestions
    • panel
      • panel-header
      • label(text="Recent Search")
      • recent-search-panel-actions
        • recent-search-panel-action
          • a(text="Edit")
    • panel-body
      • search-suggestion-result-list

Requirements:

  • The functionality of the Edit button is not ironed out yet. So, it can be a dummy link for now.

Popular Search Suggestions Panel

This component reuses the panel component and transcludes the required DOM into it.

Component tree

  • popular-search-suggestions
    • panel
      • panel-header
        • label(text="Popular")
      • panel-body
        • search-suggestion-result-list

Search Suggestion Result List

This is a wrapper component for containing all suggestion items as std-list-item component.

Component tree

  • search-suggestion-result-list
    • std-list-item(.search-suggestion-result-list-item)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions