Skip to content

Commit 2098f31

Browse files
authored
Merge pull request #8832 from opengovsg/release_v6.262.0
build: release v6.262.0
2 parents df81439 + c01cbf6 commit 2098f31

21 files changed

+415
-55
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v6.262.0](https://github.com/opengovsg/FormSG/compare/v6.261.0...v6.262.0)
8+
9+
- feat: submission email redact [`#8825`](https://github.com/opengovsg/FormSG/pull/8825)
10+
- build: merge release v6.261.0 to develop [`#8830`](https://github.com/opengovsg/FormSG/pull/8830)
11+
- build: release v6.261.0 [`#8829`](https://github.com/opengovsg/FormSG/pull/8829)
12+
713
#### [v6.261.0](https://github.com/opengovsg/FormSG/compare/v6.260.0...v6.261.0)
814

15+
> 21 October 2025
16+
917
- feat: update save draft toast and admin toggle copy [`#8828`](https://github.com/opengovsg/FormSG/pull/8828)
1018
- build: merge release v6.260.0 to develop [`#8824`](https://github.com/opengovsg/FormSG/pull/8824)
1119
- build: release v6.260.0 [`#8823`](https://github.com/opengovsg/FormSG/pull/8823)
20+
- chore: bump version to v6.261.0 [`faa03ef`](https://github.com/opengovsg/FormSG/commit/faa03ef0a3b90e74daec06be0343e0f22c322ca4)
1221

1322
#### [v6.260.0](https://github.com/opengovsg/FormSG/compare/v6.259.0...v6.260.0)
1423

frontend/package-lock.json

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

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "form-frontend",
3-
"version": "6.261.0",
3+
"version": "6.262.0",
44
"homepage": ".",
55
"type": "module",
66
"private": true,

frontend/src/features/public-form/PublicFormContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from 'react'
99
import { UseQueryResult } from 'react-query'
1010

11-
import { FormFieldDto, MultirespondentSubmissionDto } from '~shared/types'
11+
import { FormFieldDto, PublicMultirespondentSubmissionDto } from '~shared/types'
1212
import { PublicFormViewDto } from '~shared/types/form'
1313

1414
import { FormFieldValues } from '~templates/Field'
@@ -85,7 +85,7 @@ export interface PublicFormContextProps
8585
setHasSingleSubmissionValidationError?: Dispatch<SetStateAction<boolean>>
8686
hasRespondentNotWhitelistedError: boolean
8787

88-
encryptedPreviousSubmission?: MultirespondentSubmissionDto
88+
encryptedPreviousSubmission?: PublicMultirespondentSubmissionDto
8989
previousSubmission?: ReturnType<typeof decryptSubmission>
9090
previousAttachments?: Record<string, ArrayBuffer>
9191
setPreviousSubmission?: (

frontend/src/features/public-form/PublicFormPage.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,6 @@ WithMultiRespondentFormStep1TableFieldAdditionalRows.parameters = {
16201620
_id: 'step-0',
16211621
edit: ['table-field-for-test-id'],
16221622
workflow_type: WorkflowType.Static,
1623-
emails: [],
16241623
},
16251624
],
16261625
form_fields: [TABLE_FIELD_ADDITIONAL_ROWS_FIELD],

frontend/src/features/public-form/PublicFormPageMrfSubsequentSteps.stories.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,11 @@ WithMultiRespondentFormStep2NonEditableTableFieldAdditionalRows.parameters = {
8181
_id: 'step-0',
8282
edit: ['table-field-for-test-id'],
8383
workflow_type: WorkflowType.Static,
84-
emails: [],
8584
},
8685
{
8786
_id: 'step-1',
8887
edit: [],
8988
workflow_type: WorkflowType.Static,
90-
emails: [],
9189
},
9290
],
9391
form_fields: [TABLE_FIELD_ADDITIONAL_ROWS_FIELD],
@@ -118,13 +116,11 @@ WithMultiRespondentFormStep2EditableTableFieldLessThanMinimumRows.parameters = {
118116
_id: 'step-0',
119117
edit: ['table-field-for-test-id'],
120118
workflow_type: WorkflowType.Static,
121-
emails: [],
122119
},
123120
{
124121
_id: 'step-1',
125122
edit: ['table-field-for-test-id'],
126123
workflow_type: WorkflowType.Static,
127-
emails: [],
128124
},
129125
],
130126
form_fields: [TABLE_FIELD_ADDITIONAL_ROWS_FIELD],
@@ -191,13 +187,11 @@ WithMultiRespondentFormStep2NonEditableTableFieldAdditionalRowsWithSaveDraft.par
191187
_id: 'step-0',
192188
edit: ['table-field-for-test-id'],
193189
workflow_type: WorkflowType.Static,
194-
emails: [],
195190
},
196191
{
197192
_id: 'step-1',
198193
edit: [],
199194
workflow_type: WorkflowType.Static,
200-
emails: [],
201195
},
202196
],
203197
form_fields: [TABLE_FIELD_ADDITIONAL_ROWS_FIELD],
@@ -286,13 +280,11 @@ WithMultiRespondentFormStep2EditableTableFieldAdditionalRowsWithSaveDraft.parame
286280
_id: 'step-0',
287281
edit: ['table-field-for-test-id'],
288282
workflow_type: WorkflowType.Static,
289-
emails: [],
290283
},
291284
{
292285
_id: 'step-1',
293286
edit: ['table-field-for-test-id'],
294287
workflow_type: WorkflowType.Static,
295-
emails: [],
296288
},
297289
],
298290
form_fields: [TABLE_FIELD_ADDITIONAL_ROWS_FIELD],

frontend/src/features/public-form/PublicFormService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
PublicFormViewDto,
2626
} from '~shared/types/form/form'
2727
import {
28-
MultirespondentSubmissionDto,
28+
PublicMultirespondentSubmissionDto,
2929
ResponseMetadata,
3030
SubmissionResponseDto,
3131
} from '~shared/types/submission'
@@ -46,7 +46,7 @@ import {
4646
} from './utils/createSubmission'
4747
import { convertEncryptedAttachmentToFileContent } from './utils/decryptSubmission'
4848
import { filterHiddenInputs } from './utils/filterHiddenInputs'
49-
import { MultirespondentSubmissionDtoWithAttachments } from './types'
49+
import { PublicMultirespondentSubmissionDtoWithAttachments } from './types'
5050

5151
export const PUBLIC_FORMS_ENDPOINT = '/forms'
5252

@@ -122,11 +122,11 @@ export const getMultirespondentSubmissionById = async ({
122122
}: {
123123
formId: string
124124
submissionId: string
125-
}): Promise<MultirespondentSubmissionDtoWithAttachments> => {
126-
return ApiService.get<MultirespondentSubmissionDto>(
125+
}): Promise<PublicMultirespondentSubmissionDtoWithAttachments> => {
126+
return ApiService.get<PublicMultirespondentSubmissionDto>(
127127
`${PUBLIC_FORMS_ENDPOINT}/${formId}/submissions/${submissionId}`,
128128
).then(async ({ data }) => {
129-
const encryptedAttachments: MultirespondentSubmissionDtoWithAttachments['encryptedAttachments'] =
129+
const encryptedAttachments: PublicMultirespondentSubmissionDtoWithAttachments['encryptedAttachments'] =
130130
{}
131131
const downloadTasks = Object.keys(data.attachmentMetadata).map(
132132
async (id) => {

frontend/src/features/public-form/components/FormFields/FormFields.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { FormFieldDto } from '~shared/types/field'
1010
import {
1111
FormColorTheme,
1212
FormResponseMode,
13-
FormWorkflowStepDto,
1413
LogicDto,
14+
StrippedFormWorkflowStepDto,
1515
} from '~shared/types/form'
1616

1717
import InlineMessage from '~components/InlineMessage'
@@ -32,7 +32,7 @@ export interface FormFieldsProps {
3232
previousAttachments?: Record<string, ArrayBuffer>
3333
formFields: FormFieldDto[]
3434
formLogics: LogicDto[]
35-
workflowStep?: FormWorkflowStepDto
35+
workflowStep?: StrippedFormWorkflowStepDto
3636
colorTheme: FormColorTheme
3737
onSubmit: SubmitHandler<FormFieldValues> | undefined
3838
}

frontend/src/features/public-form/components/FormFields/VisibleFormFields.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Control, useWatch } from 'react-hook-form'
33

44
import {
55
FormColorTheme,
6-
FormWorkflowStepDto,
76
LogicDto,
7+
StrippedFormWorkflowStepDto,
88
} from '~shared/types/form'
99

1010
import { FormFieldValues } from '~templates/Field'
@@ -24,7 +24,7 @@ interface VisibleFormFieldsProps {
2424
control: Control<FormFieldValues>
2525
formFields: FormFieldWithQuestionNo[]
2626
formLogics: LogicDto[]
27-
workflowStep?: FormWorkflowStepDto
27+
workflowStep?: StrippedFormWorkflowStepDto
2828
colorTheme: FormColorTheme
2929
fieldPrefillMap: PrefillMap
3030
}

frontend/src/features/public-form/queries.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
getMultirespondentSubmissionById,
1212
getPublicFormView,
1313
} from './PublicFormService'
14-
import { MultirespondentSubmissionDtoWithAttachments } from './types'
14+
import { PublicMultirespondentSubmissionDtoWithAttachments } from './types'
1515

1616
export const publicFormKeys = {
1717
// All keys map to either an array or function returning an array for
@@ -46,7 +46,10 @@ export const useEncryptedSubmission = (
4646
submissionId?: string,
4747
/** Extra override to determine whether query is enabled */
4848
enabled = true,
49-
): UseQueryResult<MultirespondentSubmissionDtoWithAttachments, ApiError> => {
49+
): UseQueryResult<
50+
PublicMultirespondentSubmissionDtoWithAttachments,
51+
ApiError
52+
> => {
5053
return useQuery(
5154
publicFormKeys.submission(formId, submissionId),
5255
() =>

0 commit comments

Comments
 (0)