mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
VisualizationSuggestions: Support image & text instead of real previews. Adds suggestions for all non data panels when there are no data (#42074)
* Make suggestion cards support img & text mode instead of only preview * Generic solution for non data panels * minor review tweaks
This commit is contained in:
@@ -57,21 +57,6 @@ export const VisualizationSelectPane: FC<Props> = ({ panel, data }) => {
|
||||
dispatch(toggleVizPicker(false));
|
||||
};
|
||||
|
||||
// const onKeyPress = useCallback(
|
||||
// (e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
// if (e.key === 'Enter') {
|
||||
// const query = e.currentTarget.value;
|
||||
// const plugins = getAllPanelPluginMeta();
|
||||
// const match = filterPluginList(plugins, query, plugin.meta);
|
||||
|
||||
// if (match && match.length) {
|
||||
// onPluginTypeChange(match[0], false);
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// [onPluginTypeChange, plugin.meta]
|
||||
// );
|
||||
|
||||
if (!plugin) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user