* Refactor Explore query field - extract typeahead field that only contains logic for the typeahead mechanics - renamed QueryField to PromQueryField, a wrapper around TypeaheadField that deals with Prometheus-specific concepts - PromQueryField creates a promql typeahead by providing the handlers for producing suggestions, and for applying suggestions - The `refresher` promise is needed to trigger a render once an async action in the wrapper returns. This is prep work for a composable query field to be used by Explore, as well as editors in datasource plugins. * Added typeahead handling tests - extracted context-to-suggestion logic to make it testable - kept DOM-dependent parts in main onTypeahead funtion * simplified error handling in explore query field * Refactor query suggestions - use monaco's suggestion types (roughly), see https://github.com/Microsoft/monaco-editor/blob/f6fb545/monaco.d.ts#L4208 - suggest functions and metrics in empty field (ctrl+space) - copy and expand prometheus function docs from prometheus datasource (will be migrated back to the datasource in the future) * Added prop and state types, removed unused cwrp * Split up suggestion processing for code readability
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
_alerts.scss | Loading commit data... | |
_buttons.scss | Loading commit data... | |
_cards.scss | Loading commit data... | |
_code_editor.scss | Loading commit data... | |
_color_picker.scss | Loading commit data... | |
_dashboard_grid.scss | Loading commit data... | |
_dashboard_list.scss | Loading commit data... | |
_dashboard_settings.scss | Loading commit data... | |
_description-picker.scss | Loading commit data... | |
_drop.scss | Loading commit data... | |
_dropdown.scss | Loading commit data... | |
_empty_list_cta.scss | Loading commit data... | |
_filter-controls.scss | Loading commit data... | |
_filter-list.scss | Loading commit data... | |
_filter-table.scss | Loading commit data... | |
_footer.scss | Loading commit data... | |
_form_select_box.scss | Loading commit data... | |
_gf-form.scss | Loading commit data... | |
_infobox.scss | Loading commit data... | |
_json_explorer.scss | Loading commit data... | |
_jsontree.scss | Loading commit data... | |
_modals.scss | Loading commit data... | |
_navbar.scss | Loading commit data... | |
_navs.scss | Loading commit data... | |
_old_stuff.scss | Loading commit data... | |
_page_header.scss | Loading commit data... | |
_panel_add_panel.scss | Loading commit data... | |
_panel_alertlist.scss | Loading commit data... | |
_panel_dashlist.scss | Loading commit data... | |
_panel_gettingstarted.scss | Loading commit data... | |
_panel_graph.scss | Loading commit data... | |
_panel_heatmap.scss | Loading commit data... | |
_panel_pluginlist.scss | Loading commit data... | |
_panel_singlestat.scss | Loading commit data... | |
_panel_table.scss | Loading commit data... | |
_panel_text.scss | Loading commit data... | |
_popper.scss | Loading commit data... | |
_query_editor.scss | Loading commit data... | |
_query_part.scss | Loading commit data... | |
_row.scss | Loading commit data... | |
_scrollbar.scss | Loading commit data... | |
_search.scss | Loading commit data... | |
_settings_permissions.scss | Loading commit data... | |
_shortcuts.scss | Loading commit data... | |
_sidemenu.scss | Loading commit data... | |
_slate_editor.scss | Loading commit data... | |
_submenu.scss | Loading commit data... | |
_switch.scss | Loading commit data... | |
_tabbed_view.scss | Loading commit data... | |
_tables_lists.scss | Loading commit data... | |
_tabs.scss | Loading commit data... | |
_tags.scss | Loading commit data... | |
_tagsinput.scss | Loading commit data... | |
_timepicker.scss | Loading commit data... | |
_tooltip.scss | Loading commit data... | |
_typeahead.scss | Loading commit data... | |
_user-picker.scss | Loading commit data... | |
_view_states.scss | Loading commit data... | |
edit_sidemenu.scss | Loading commit data... |