-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Milestone
Description
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")
- recent-search-panel-action
- panel-body
- search-suggestion-result-list
- panel
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
- panel-header
- panel
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)