Skip to content

Commit

Permalink
Update suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-vl committed May 23, 2024
1 parent e910abb commit 62df4f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
9 changes: 2 additions & 7 deletions src/constants/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@ export const FORMAT_OPTIONS = [
];

/**
* Suggestions
* Code Suggestions
*/
export const CODE_EDITOR_SUGGESTIONS: CodeEditorSuggestionItem[] = [
/**
* Context
*/
...codeParameters.suggestions,
];
export const CODE_EDITOR_SUGGESTIONS: CodeEditorSuggestionItem[] = codeParameters.suggestions;

/**
* Visual Code Editor Suggestions
Expand Down
12 changes: 6 additions & 6 deletions src/utils/code-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const baseParametersConfig = {
'Interpolate variables.',
CodeEditorSuggestionItemKind.Method
),
theme: new CodeParameterItem<GrafanaTheme2>('Location service.'),
theme: new CodeParameterItem<GrafanaTheme2>('Theme object.'),
notifySuccess: new CodeParameterItem<(payload: AlertPayload) => void>(
'Display successful notification.',
CodeEditorSuggestionItemKind.Method
Expand All @@ -38,11 +38,11 @@ const baseParametersConfig = {
'Display error notification.',
CodeEditorSuggestionItemKind.Method
),
refresh: new CodeParameterItem<() => void>('Refresh dashboard.', CodeEditorSuggestionItemKind.Method),
refresh: new CodeParameterItem<() => void>('Refresh dashboard panels using application events.', CodeEditorSuggestionItemKind.Method),
},
},
echarts: new CodeParameterItem<typeof echarts>('ECharts library.'),
ecStat: new CodeParameterItem<typeof echartsStat>('ECharts statistical.'),
echarts: new CodeParameterItem<typeof echarts>('Apache ECharts library.'),
ecStat: new CodeParameterItem<typeof echartsStat>('A statistical and data mining tool for Apache ECharts.'),
},
};

Expand All @@ -61,8 +61,8 @@ export const visualCodeParameters = new CodeParametersBuilder({
editor: {
detail: 'Editor properties.',
items: {
dataset: new CodeParameterItem<{ source: [string[], ...unknown[]] }>('Echarts dataset.'),
series: new CodeParameterItem<SeriesItem[]>('Echarts series.'),
dataset: new CodeParameterItem<{ source: [string[], ...unknown[]] }>('ECharts dataset.'),
series: new CodeParameterItem<SeriesItem[]>('ECharts series.'),
},
},
},
Expand Down

0 comments on commit 62df4f5

Please sign in to comment.