Skip to content

Commit 7e2b25e

Browse files
Refactor displayName and description fields to follow style guide
Co-authored-by: rita-gorokhod <60586879+rita-gorokhod@users.noreply.github.com>
1 parent 5854870 commit 7e2b25e

168 files changed

Lines changed: 404 additions & 447 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/blocks/ai/src/lib/actions/askAi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const askAi = createAction({
6464
required: true,
6565
}),
6666
additionalInput: Property.Array({
67-
displayName: 'Additional input',
67+
displayName: 'Additional Input',
6868
description: 'Array of inputs to use for analysis or transformation',
6969
required: false,
7070
}),

packages/blocks/anodot/src/lib/api-filters/annual-savings-property.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ import { Property } from '@openops/blocks-framework';
33
export function annualSavingsProperty() {
44
return {
55
useAnnualSavings: Property.Checkbox({
6-
displayName: 'Filter by annual savings',
6+
displayName: 'Filter by Annual Savings',
77
required: false,
88
}),
99

1010
annualSavingsProperty: Property.DynamicProperties({
11-
displayName: 'Annual savings greater than',
12-
description:
13-
'Only get recommendations where the annual savings are greater than.',
11+
displayName: 'Annual Savings Greater Than',
12+
description: 'Only get recommendations where the annual savings are greater than',
1413
required: true,
1514
refreshers: ['useAnnualSavings'],
1615
props: async ({ useAnnualSavings }): Promise<{ [key: string]: any }> => {
@@ -20,9 +19,8 @@ export function annualSavingsProperty() {
2019

2120
return {
2221
annualSavingsMin: Property.Number({
23-
displayName: 'Annual savings greater than',
24-
description:
25-
'Only get recommendations where the annual savings are greater than.',
22+
displayName: 'Annual Savings Greater Than',
23+
description: 'Only get recommendations where the annual savings are greater than',
2624
required: true,
2725
}),
2826
};

packages/blocks/anodot/src/lib/api-filters/category-property.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Property } from '@openops/blocks-framework';
22

33
export function categoryProperty() {
44
return Property.StaticMultiSelectDropdown({
5-
displayName: 'Category id',
6-
description: 'Get only recommendations from the selected category.',
5+
displayName: 'Category Id',
6+
description: 'Get only recommendations from the selected category',
77
required: false,
88
options: {
99
disabled: false,

packages/blocks/anodot/src/lib/api-filters/closed-and-done-recommendations-property.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { dateProperty, operatorProperty } from './property-helpers';
33

44
export function closedAndDoneRecommendationsProperty() {
55
return Property.DynamicProperties({
6-
displayName: 'Date filters for closed and done recommendations',
7-
description: 'Filter closed and done recommendations by date range.',
6+
displayName: 'Date Filters for Closed and Done Recommendations',
7+
description: 'Filter closed and done recommendations by date range',
88
required: true,
99
refreshers: ['statusFilter'],
1010
props: async ({ statusFilter }): Promise<{ [key: string]: any }> => {

packages/blocks/anodot/src/lib/api-filters/custom-status-property.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { booleanProperty } from './property-helpers';
33

44
export function customStatusProperty() {
55
return Property.DynamicProperties({
6-
displayName: 'Custom status properties',
6+
displayName: 'Custom Status Properties',
77
description:
8-
'User defined conditions as set in the "is open" and "user status" fields, with logical "and" between them.',
8+
'User defined conditions as set in the "is open" and "user status" fields, with logical "and" between them',
99
required: true,
1010
refreshers: ['statusFilter'],
1111
props: async ({ statusFilter }): Promise<{ [key: string]: any }> => {

packages/blocks/anodot/src/lib/api-filters/list-filter-property.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function listFilterProperty(
3333

3434
eq: Property.Array({
3535
displayName: `(${displayName}) Values`,
36-
description: 'List of values ​​to be checked.',
36+
description: 'List of values ​​to be checked',
3737
required: true,
3838
}),
3939
};

packages/blocks/anodot/src/lib/api-filters/opened-recommendations-property.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { dateProperty } from './property-helpers';
33

44
export function openedRecommendationsProperty() {
55
return Property.DynamicProperties({
6-
displayName: 'Date filters for open recommendations',
7-
description: 'Filter open recommendations by date range.',
6+
displayName: 'Date Filters for Open Recommendations',
7+
description: 'Filter open recommendations by date range',
88
required: true,
99
refreshers: [],
1010
props: async (): Promise<{ [key: string]: any }> => {

packages/blocks/anodot/src/lib/api-filters/status-property.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Property } from '@openops/blocks-framework';
33
export function statusProperty() {
44
return Property.StaticDropdown({
55
displayName: 'Status',
6-
description: 'Define what status of recommendations should be displayed.',
6+
description: 'Define what status of recommendations should be displayed',
77
options: {
88
options: statusFilters,
99
},

packages/blocks/anodot/src/lib/api-filters/tags-property.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ export function tagsProperty(
3333

3434
tag: Property.LongText({
3535
displayName: `(${propertyName}) Tag`,
36-
description: '',
36+
description: 'Tag name to filter by',
3737
required: true,
3838
}),
3939

4040
eq: Property.Array({
41-
displayName: `(${propertyName}) Equal values`,
42-
description: 'List of values ​​to be checked for equality.',
41+
displayName: `(${propertyname}) Equal Values`,
42+
description: 'List of values ​​to be checked for equality',
4343
required: false,
4444
}),
4545

4646
like: Property.Array({
47-
displayName: `(${propertyName}) Like values`,
48-
description: 'List of values ​​​​to check if they are like.',
47+
displayName: `(${propertyname}) Like Values`,
48+
description: 'List of values ​​​​to check if they are like',
4949
required: false,
5050
}),
5151

packages/blocks/anodot/src/lib/api-filters/virtual-tags-property.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { Property } from '@openops/blocks-framework';
33
export function virtualTagsProperty() {
44
return {
55
useVirtualTag: Property.Checkbox({
6-
displayName: 'Filter by virtual tags',
6+
displayName: 'Filter by Virtual Tags',
77
required: false,
88
}),
99
virtualTag: Property.DynamicProperties({
10-
displayName: 'Virtual tag filters',
11-
description: 'Each virtual tag represents a collection of custom tags.',
10+
displayName: 'Virtual Tag Filters',
11+
description: 'Each virtual tag represents a collection of custom tags',
1212
required: true,
1313
refreshers: ['useVirtualTag'],
1414
props: async ({ useVirtualTag }): Promise<{ [key: string]: any }> => {
@@ -18,20 +18,20 @@ export function virtualTagsProperty() {
1818

1919
return {
2020
uuid: Property.LongText({
21-
displayName: '(Virtual tag) uuid',
22-
description: '',
21+
displayName: '(virtual Tag) Uuid',
22+
description: 'UUID of the virtual tag to filter by',
2323
required: true,
2424
}),
2525

2626
eq: Property.Array({
27-
displayName: '(Virtual tag) Equal values',
28-
description: 'List of values ​​to be checked for equality.',
27+
displayName: '(virtual Tag) Equal Values',
28+
description: 'List of values ​​to be checked for equality',
2929
required: false,
3030
}),
3131

3232
like: Property.Array({
33-
displayName: '(Virtual tag) Like values',
34-
description: 'List of values ​​​​to check if they are like.',
33+
displayName: '(virtual Tag) Like Values',
34+
description: 'List of values ​​​​to check if they are like',
3535
required: false,
3636
}),
3737
};

0 commit comments

Comments
 (0)