Skip to content

Commit cd5c5ca

Browse files
authored
Release v1.43.0 (#1027)
* UI Revamp: Side drawer * Fix: update notifications selection on save
2 parents 5686ead + a88f315 commit cd5c5ca

File tree

142 files changed

+5382
-2219
lines changed

Some content is hidden

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

142 files changed

+5382
-2219
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,5 @@
106106
"tsconfig-paths": "^4.2.0",
107107
"type-fest": "4.10.3"
108108
},
109-
"version": "1.42.2"
109+
"version": "1.43.0"
110110
}

packages/backend/src/apps/aisay/common/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const getValidationError = (
2828
fieldName === 'attachments' && stepErrorName.includes('not a S3 ID')
2929
const stepErrorSolution = isAttachmentNotStoredError
3030
? 'This attachment was not stored in the last submission. Please make a new submission with attachments to successfully configure this pipe.'
31-
: 'Click on set up action and reconfigure the invalid field.'
31+
: 'Reconfigure the invalid field and try again.'
3232

3333
return { stepErrorName, stepErrorSolution }
3434
}

packages/backend/src/apps/calculator/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ const app: IApp = {
1212
primaryColor: '000000',
1313
actions,
1414
description: 'Perform calculations on numbers in your data',
15-
substepLabels: {
16-
settingsStepLabel: 'Set up calculator',
17-
},
1815
category: 'data',
1916
}
2017

packages/backend/src/apps/custom-api/actions/http-request/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const action: IRawAction = {
7171
type: 'string' as const,
7272
required: true,
7373
variables: true,
74-
customStyle: { flex: 3, minWidth: 0 },
74+
customStyle: { flex: 3, minWidth: 0, maxWidth: '60%' },
7575
},
7676
],
7777
},
@@ -159,7 +159,7 @@ const action: IRawAction = {
159159
if (err instanceof ZodError) {
160160
const firstError = fromZodError(err).details[0]
161161
throw new StepError(
162-
`${firstError.message} under set up action`,
162+
`${firstError.message}`,
163163
GenericSolution.ReconfigureInvalidField,
164164
$.step.position,
165165
$.app.name,

packages/backend/src/apps/delay/actions/delay-for/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const action: IRawAction = {
5252
if (isNaN(Number(delayForValue))) {
5353
throw new StepError(
5454
'Invalid delay for value entered',
55-
'Click on set up action and check that the value is a valid number.',
55+
'Check that the value is a valid number.',
5656
$.step.position,
5757
$.app.name,
5858
)

packages/backend/src/apps/delay/actions/delay-until/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const action: IRawAction = {
4747
if (isNaN(delayTimestamp)) {
4848
throw new StepError(
4949
'Invalid timestamp entered',
50-
'Click on set up action and check that the date or time entered is of a valid format.',
50+
'Check that the date or time entered is of a valid format.',
5151
$.step.position,
5252
$.app.name,
5353
)
@@ -56,7 +56,7 @@ const action: IRawAction = {
5656
if (delayTimestamp < DateTime.now().toMillis()) {
5757
throw new StepError(
5858
'Delay until timestamp entered is in the past',
59-
'Click on set up action and check that the date and time entered is not in the past.',
59+
'Check that the date and time entered is not in the past.',
6060
$.step.position,
6161
$.app.name,
6262
)

packages/backend/src/apps/formatter/actions/date-time/transforms/add-subtract-date-time/fields.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const fields: TransformSpec['fields'] = [
4949
{
5050
label: 'Specify the amount of time you want to add or subtract',
5151
key: ensureZodObjectKey(fieldSchema.sourceType(), 'addSubtractDateTimeOps'),
52-
type: 'multirow' as const,
52+
type: 'multirow-multicol' as const,
5353
required: true,
5454
subFields: [
5555
{
@@ -63,13 +63,15 @@ export const fields: TransformSpec['fields'] = [
6363
label: sentenceCase(op),
6464
value: op,
6565
})),
66+
customStyle: { flex: 2 },
6667
},
6768
{
6869
placeholder: 'Amount of time to add or subtract (number)',
6970
key: ensureZodObjectKey(opsSchema, 'timeAmount'),
7071
type: 'string' as const,
7172
required: true,
7273
variables: true,
74+
customStyle: { flex: 4, minWidth: 0, maxWidth: '44%' },
7375
},
7476
{
7577
placeholder: 'Unit of time to add or subtract',
@@ -82,6 +84,7 @@ export const fields: TransformSpec['fields'] = [
8284
label: sentenceCase(unit),
8385
value: unit,
8486
})),
87+
customStyle: { flex: 3 },
8588
},
8689
],
8790
},

packages/backend/src/apps/formatter/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ const app: IApp = {
1313
apiBaseUrl: '',
1414
primaryColor: '000000',
1515
actions,
16-
substepLabels: {
17-
settingsStepLabel: 'Set up formatter',
18-
},
1916
category: 'data',
2017
}
2118

packages/backend/src/apps/formsg/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const app: IApp = {
1717
auth,
1818
triggers,
1919
actions: [],
20-
substepLabels: {
21-
settingsStepLabel: 'Other settings',
22-
},
2320
demoVideoDetails: {
2421
url: 'https://demo.arcade.software/6cWULLTHkTH4XsSB1rs1?embed&show_copy_link=true',
2522
title: 'Setting up FormSG',

0 commit comments

Comments
 (0)