Skip to content

Commit

Permalink
Merge pull request #7228 from opengovsg/release-al2
Browse files Browse the repository at this point in the history
build: merge release v6.114.1 back to develop
  • Loading branch information
KenLSM authored Apr 3, 2024
2 parents d3ab1e2 + bcd965d commit 6fc3153
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 19 deletions.
66 changes: 62 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,72 @@ All notable changes to this project will be documented in this file. Dates are d

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

#### [v6.113.0](https://github.com/opengovsg/FormSG/compare/v6.113.0...v6.113.0)

- chore: package cleanup [`#7141`](https://github.com/opengovsg/FormSG/pull/7141)
#### [v6.114.1](https://github.com/opengovsg/FormSG/compare/v6.114.0...v6.114.1)

- build: release v6.114.0 [`#7226`](https://github.com/opengovsg/FormSG/pull/7226)
- fix: correcting submission button bug for MRF [`7342138`](https://github.com/opengovsg/FormSG/commit/73421387daf8f3a33c0030a43c81bb11190ee198)
- ref: genericize EndPageBlock [`017cfb3`](https://github.com/opengovsg/FormSG/commit/017cfb36457cbe293360c963f3d66257e5172907)

#### [v6.114.0](https://github.com/opengovsg/FormSG/compare/v6.113.0...v6.114.0)

> 2 April 2024

- fix: prefill myinfo dropdown field options when faking sample submission data [`#7225`](https://github.com/opengovsg/FormSG/pull/7225)
- feat(mrf): attachments [`#7181`](https://github.com/opengovsg/FormSG/pull/7181)
- fix(mrf): design review add workflow page [`#7218`](https://github.com/opengovsg/FormSG/pull/7218)
- fix(mrf): skip verifying OTP signatures on decryption for export [`#7192`](https://github.com/opengovsg/FormSG/pull/7192)
- chore: update mrf copy on create-page [`#7217`](https://github.com/opengovsg/FormSG/pull/7217)
- refactor: move override code closer to other overrides [`#7216`](https://github.com/opengovsg/FormSG/pull/7216)
- fix(mrf): remove any response limits for MRF [`#7214`](https://github.com/opengovsg/FormSG/pull/7214)
- chore(mrf): prevent form activation if email confirmation is present [`#7201`](https://github.com/opengovsg/FormSG/pull/7201)
- fix(deps): bump mongodb-memory-server-core from 9.1.6 to 9.1.7 [`#7211`](https://github.com/opengovsg/FormSG/pull/7211)
- fix(deps): bump aws-sdk from 2.1354.0 to 2.1585.0 [`#7209`](https://github.com/opengovsg/FormSG/pull/7209)
- fix(deps): bump neverthrow from 6.0.0 to 6.1.0 [`#7208`](https://github.com/opengovsg/FormSG/pull/7208)
- chore(deps-dev): bump @babel/core from 7.23.9 to 7.24.3 [`#7206`](https://github.com/opengovsg/FormSG/pull/7206)
- fix(deps): bump @babel/runtime from 7.22.3 to 7.24.1 [`#7207`](https://github.com/opengovsg/FormSG/pull/7207)
- fix(deps): bump libphonenumber-js from 1.10.49 to 1.10.59 [`#7204`](https://github.com/opengovsg/FormSG/pull/7204)
- fix(deps): bump http-status-codes from 2.2.0 to 2.3.0 [`#7203`](https://github.com/opengovsg/FormSG/pull/7203)
- chore(deps-dev): bump eslint-plugin-playwright from 0.12.0 to 1.5.4 [`#7189`](https://github.com/opengovsg/FormSG/pull/7189)
- feat: Disabling MRF for Forms with SingPass [`#7200`](https://github.com/opengovsg/FormSG/pull/7200)
- fix(deps): bump express from 4.18.2 to 4.19.2 [`#7199`](https://github.com/opengovsg/FormSG/pull/7199)
- chore(deps-dev): bump express from 4.18.2 to 4.19.2 in /frontend [`#7198`](https://github.com/opengovsg/FormSG/pull/7198)
- fix(deps): bump libphonenumber-js from 1.10.58 to 1.10.59 in /shared [`#7195`](https://github.com/opengovsg/FormSG/pull/7195)
- feat(mrf): backend validation for field locking [`#7143`](https://github.com/opengovsg/FormSG/pull/7143)
- chore: switch advertising for checkpoint to mrf [`#7191`](https://github.com/opengovsg/FormSG/pull/7191)
- feat: disabling submit another response button (MRF) [`#7186`](https://github.com/opengovsg/FormSG/pull/7186)
- chore: remove unused deps #2 [`#7150`](https://github.com/opengovsg/FormSG/pull/7150)
- fix(deps): bump type-fest from 4.13.1 to 4.14.0 in /shared [`#7190`](https://github.com/opengovsg/FormSG/pull/7190)
- chore(deps-dev): bump rimraf from 4.4.0 to 5.0.5 [`#7173`](https://github.com/opengovsg/FormSG/pull/7173)
- build: merge release v6.113.0 back to develop [`#7149`](https://github.com/opengovsg/FormSG/pull/7149)
- feat: disabling response limit toggle for MRF [`#7180`](https://github.com/opengovsg/FormSG/pull/7180)
- revert: "chore(deps-dev): bump jest-mock-axios from 4.7.2 to 4.7.3" [`#7179`](https://github.com/opengovsg/FormSG/pull/7179)
- chore(deps): Upgrade bson from 5.4.0 to 5.5.1 [`#7152`](https://github.com/opengovsg/FormSG/pull/7152)
- fix(deps): bump type-fest from 4.8.3 to 4.13.1 in /shared [`#7178`](https://github.com/opengovsg/FormSG/pull/7178)
- chore(deps-dev): bump @types/convict from 6.1.1 to 6.1.6 [`#7176`](https://github.com/opengovsg/FormSG/pull/7176)
- fix(deps): bump celebrate from 15.0.1 to 15.0.3 [`#7175`](https://github.com/opengovsg/FormSG/pull/7175)
- fix(deps): bump zod from 3.22.3 to 3.22.4 [`#7174`](https://github.com/opengovsg/FormSG/pull/7174)
- chore(deps-dev): bump ts-node from 10.9.1 to 10.9.2 [`#7172`](https://github.com/opengovsg/FormSG/pull/7172)
- fix: remove number and decimal scrolling [`#7171`](https://github.com/opengovsg/FormSG/pull/7171)
- fix(deps): bump libphonenumber-js from 1.10.52 to 1.10.58 in /shared [`#7168`](https://github.com/opengovsg/FormSG/pull/7168)
- chore(deps-dev): bump @types/lodash from 4.14.202 to 4.17.0 in /shared [`#7169`](https://github.com/opengovsg/FormSG/pull/7169)
- chore(deps-dev): bump @types/uuid from 9.0.0 to 9.0.8 [`#7165`](https://github.com/opengovsg/FormSG/pull/7165)
- chore(deps-dev): bump @types/cookie-parser from 1.4.3 to 1.4.7 [`#7163`](https://github.com/opengovsg/FormSG/pull/7163)
- fix(deps): bump @faker-js/faker from 8.0.2 to 8.4.1 [`#7161`](https://github.com/opengovsg/FormSG/pull/7161)
- chore(deps-dev): bump @opengovsg/mockpass from 4.0.8 to 4.1.0 [`#7160`](https://github.com/opengovsg/FormSG/pull/7160)
- chore(deps-dev): bump @types/html-escaper from 3.0.0 to 3.0.2 [`#7159`](https://github.com/opengovsg/FormSG/pull/7159)
- fix(deps): bump ts-essentials from 9.3.1 to 9.4.1 [`#7158`](https://github.com/opengovsg/FormSG/pull/7158)
- chore(deps-dev): bump @types/busboy from 1.5.0 to 1.5.3 [`#7157`](https://github.com/opengovsg/FormSG/pull/7157)
- chore(deps-dev): bump jest-mock-axios from 4.7.2 to 4.7.3 [`#7154`](https://github.com/opengovsg/FormSG/pull/7154)
- fix(deps): bump the npm_and_yarn group group with 2 updates [`#7151`](https://github.com/opengovsg/FormSG/pull/7151)
- chore(deps): bump fast-xml-parser, @aws-sdk/client-secrets-manager and @aws-sdk/client-ssm in /functions/form-payment-reconciliation [`#6490`](https://github.com/opengovsg/FormSG/pull/6490)
- build: release v6.113.0 [`#7148`](https://github.com/opengovsg/FormSG/pull/7148)
- chore: bump version to v6.114.0 [`993e31e`](https://github.com/opengovsg/FormSG/commit/993e31eabdcd9884933cab15d9fd46acc8705aec)

#### [v6.113.0](https://github.com/opengovsg/FormSG/compare/v6.112.0...v6.113.0)

> 19 March 2024

- chore: package cleanup [`#7141`](https://github.com/opengovsg/FormSG/pull/7141)
- refactor(logic): consolidate logic functions into shared [`#7136`](https://github.com/opengovsg/FormSG/pull/7136)
- chore: Security upgrade nodemailer from 6.9.1 to 6.9.9 [`#7057`](https://github.com/opengovsg/FormSG/pull/7057)
- chore(dd): link source code to dd [`#7120`](https://github.com/opengovsg/FormSG/pull/7120)
Expand All @@ -25,7 +83,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix(deps): bump jose from 4.14.4 to 4.15.5 [`#7130`](https://github.com/opengovsg/FormSG/pull/7130)
- build: merge release v6.112.0 into develop [`#7127`](https://github.com/opengovsg/FormSG/pull/7127)
- build: release v6.112.0 [`#7126`](https://github.com/opengovsg/FormSG/pull/7126)
- chore: bump version to v6.113.0 [`67821dc`](https://github.com/opengovsg/FormSG/commit/67821dcd7787b2c48920e706e87357245972459b)
- chore: bump version to v6.113.0 [`50ff75b`](https://github.com/opengovsg/FormSG/commit/50ff75be48273526825cc596931b94c88be41fc2)

#### [v6.112.0](https://github.com/opengovsg/FormSG/compare/v6.111.0...v6.112.0)

Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-frontend",
"version": "6.113.0",
"version": "6.114.1",
"homepage": ".",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Container, Flex, Stack, StackDivider } from '@chakra-ui/react'

import { FormColorTheme, FormDto } from '~shared/types/form'

import { SubmissionData } from '~features/public-form/PublicFormContext'
import {
SubmissionData,
usePublicFormContext,
} from '~features/public-form/PublicFormContext'

import { EndPageBlock } from './components/EndPageBlock'
import { FeedbackBlock, FeedbackFormInput } from './components/FeedbackBlock'
Expand All @@ -23,6 +26,8 @@ export const FormEndPage = ({
colorTheme,
...endPageProps
}: FormEndPageProps): JSX.Element => {
const { previousSubmissionId } = usePublicFormContext()

return (
<Container w="42.5rem" maxW="100%" p={0}>
<Flex flexDir="column" align="center">
Expand All @@ -39,6 +44,7 @@ export const FormEndPage = ({
focusOnMount
{...endPageProps}
colorTheme={colorTheme}
isButtonHidden={!!previousSubmissionId}
/>
{isFeedbackSectionHidden ? null : (
<FeedbackBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ import { useMdComponents } from '~hooks/useMdComponents'
import Button from '~components/Button'
import { MarkdownText } from '~components/MarkdownText'

import {
SubmissionData,
usePublicFormContext,
} from '~features/public-form/PublicFormContext'
import { SubmissionData } from '~features/public-form/PublicFormContext'

export interface EndPageBlockProps {
formTitle: FormDto['title'] | undefined
endPage: FormDto['endPage']
submissionData: SubmissionData
colorTheme?: FormColorTheme
focusOnMount?: boolean
isButtonHidden?: boolean
}

export const EndPageBlock = ({
Expand All @@ -27,6 +25,7 @@ export const EndPageBlock = ({
submissionData,
colorTheme = FormColorTheme.Blue,
focusOnMount,
isButtonHidden,
}: EndPageBlockProps): JSX.Element => {
const focusRef = useRef<HTMLDivElement>(null)
useEffect(() => {
Expand Down Expand Up @@ -56,9 +55,6 @@ export const EndPageBlock = ({
return 'You have successfully submitted your response.'
}, [formTitle])

const { previousSubmissionId } = usePublicFormContext()
const disableSubmitResponseButton = !!previousSubmissionId //disable for MRF 2nd respondent onwards

return (
<>
<Box ref={focusRef}>
Expand Down Expand Up @@ -86,7 +82,7 @@ export const EndPageBlock = ({
</Text>
</Box>
<Box mt="2.25rem">
{disableSubmitResponseButton || (
{isButtonHidden || (
<Button
as="a"
href={endPage.buttonLink || window.location.href}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "FormSG",
"description": "Form Manager for Government",
"version": "6.113.0",
"version": "6.114.1",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <[email protected]>"
Expand Down

0 comments on commit 6fc3153

Please sign in to comment.