Variables UI text edits (#32523)

* Update formatRegistry.ts

* text edits

* Update adapter.ts

* Update adapter.ts

* text edits

* Update SelectionOptionsEditor.tsx

* Update CustomVariableEditor.tsx

* Update DataSourceVariableEditor.tsx

* Update IntervalVariableEditor.tsx

* Update VariableEditorList.tsx

* Update adapter.ts

* Update actions.ts

* Update NetworkGraphModal.tsx

* Update actions.ts

* Update operators.ts

* text edits
This commit is contained in:
Diana Payton
2021-04-01 18:17:39 +02:00
committed by GitHub
parent a3d1cf03a9
commit e34b2c13d3
19 changed files with 41 additions and 41 deletions
@@ -93,7 +93,7 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
{
id: 'csv',
name: 'Csv',
description: 'Comma separated values',
description: 'Comma-separated values',
formatter: ({ value }) => {
if (isArray(value)) {
return value.join(',');
@@ -123,7 +123,7 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
{
id: 'percentencode',
name: 'Percent encode',
description: 'Useful for url escaping values',
description: 'Useful for URL escaping values',
formatter: ({ value }) => {
// like glob, but url escaped
if (isArray(value)) {
@@ -193,7 +193,7 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
{
id: 'glob',
name: 'Glob',
description: 'Format multi valued variables using glob syntax, example {value1,value2}',
description: 'Format multi-valued variables using glob syntax, example {value1,value2}',
formatter: ({ value }) => {
if (isArray(value) && value.length > 1) {
return '{' + value.join(',') + '}';
@@ -204,7 +204,7 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
{
id: 'text',
name: 'Text',
description: 'Format variables in their text representation. Example in multi variable scenario A + B + C.',
description: 'Format variables in their text representation. Example in multi-variable scenario A + B + C.',
formatter: (options, variable) => {
if (typeof options.text === 'string') {
return options.value === ALL_VARIABLE_VALUE ? ALL_VARIABLE_TEXT : options.text;
@@ -221,9 +221,9 @@ export const formatRegistry = new Registry<FormatRegistryItem>(() => {
},
{
id: 'queryparam',
name: 'Query Parameter',
name: 'Query parameter',
description:
'Format variables as url parameter. Example in multi variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.',
'Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.',
formatter: (options, variable) => {
const { name, type } = variable;
const adapter = variableAdapters.get(type);