mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Search: display metadata * Search: update SortPicker icon * Search: display folder meta data * Search: reset sort picker on layout change * Search: align tags in Card component * Search: replace hyphen with dash * Search: preserve sort state on layout change * Search: update tests * Search: fix tests * Update pkg/services/search/hits.go Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Update public/app/features/search/components/SearchItem.tsx Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Update public/app/features/search/components/SearchItem.tsx Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Update public/app/features/search/types.ts Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Search: fix type error * Search: add General folder name and adjust icon margin Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
8 lines
325 B
TypeScript
8 lines
325 B
TypeScript
export const NO_ID_SECTIONS = ['Recent', 'Starred'];
|
|
// Height of the search result item
|
|
export const SEARCH_ITEM_HEIGHT = 62;
|
|
export const SEARCH_ITEM_MARGIN = 8;
|
|
export const DEFAULT_SORT = { label: 'A\u2013Z', value: 'alpha-asc' };
|
|
export const SECTION_STORAGE_KEY = 'search.sections';
|
|
export const GENERAL_FOLDER_ID = 0;
|