Skip to content

Commit

Permalink
Merge pull request #6423 from opengovsg/release_v6.58.0
Browse files Browse the repository at this point in the history
build: release v6.58.0
  • Loading branch information
LinHuiqing authored Jun 5, 2023
2 parents 8544ff6 + 7f4460d commit 78c5a12
Show file tree
Hide file tree
Showing 453 changed files with 3,047 additions and 48,802 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
filters: |
frontend:
- __tests__/**
- shared/**
- frontend/**
backend:
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
legacy-peer-deps=true
unsafe-perm=true
legacy-peer-deps=true
5 changes: 1 addition & 4 deletions .sentryignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
.gitignore
webpack.common.js
webpack.dev.js
webpack.prod.js
node_modules/
node_modules/
8 changes: 0 additions & 8 deletions .stylelintrc.js

This file was deleted.

3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript", "typescript"],
"editor.formatOnSave": true,
Expand Down
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,28 @@ 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.58.0](https://github.com/opengovsg/FormSG/compare/v6.57.0...v6.58.0)

- fix: learn more link for what's new drawer [`#6422`](https://github.com/opengovsg/FormSG/pull/6422)
- feat: GoGov link shortener [`#6369`](https://github.com/opengovsg/FormSG/pull/6369)
- fix: add payment field to numVisibleFields [`#6414`](https://github.com/opengovsg/FormSG/pull/6414)
- chore: remove support for legacy stripe metadata [`#6415`](https://github.com/opengovsg/FormSG/pull/6415)
- chore: delete angular [`#6344`](https://github.com/opengovsg/FormSG/pull/6344)
- feat: restricting days date validation [`#5136`](https://github.com/opengovsg/FormSG/pull/5136)
- feat: add debit card to copy and dashboard banner for payments [`#6416`](https://github.com/opengovsg/FormSG/pull/6416)
- style: Use S$ instead of SGD [`#6417`](https://github.com/opengovsg/FormSG/pull/6417)
- fix(deps): bump libphonenumber-js from 1.10.31 to 1.10.33 in /shared [`#6421`](https://github.com/opengovsg/FormSG/pull/6421)
- build: merge v6.57.0 into develop [`#6413`](https://github.com/opengovsg/FormSG/pull/6413)
- build: release v6.57.0 [`#6412`](https://github.com/opengovsg/FormSG/pull/6412)

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

> 31 May 2023

- build: merge v6.56.0 into develop [`#6410`](https://github.com/opengovsg/FormSG/pull/6410)
- feat: add a call-to-action for info modals [`#6411`](https://github.com/opengovsg/FormSG/pull/6411)
- build: release v6.56.0 [`#6409`](https://github.com/opengovsg/FormSG/pull/6409)
- chore: bump version to v6.57.0 [`24d1c73`](https://github.com/opengovsg/FormSG/commit/24d1c73e38e227f4da688e3bc43e82587e8a5cb3)

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

Expand Down Expand Up @@ -202,7 +219,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix: only return previous payment id [`#6210`](https://github.com/opengovsg/FormSG/pull/6210)
- build: merge release v6.45.0 to develop [`#6205`](https://github.com/opengovsg/FormSG/pull/6205)
- build: release v6.45.0 [`#6200`](https://github.com/opengovsg/FormSG/pull/6200)
- chore: bump version to v6.46.0 [`767e7e5`](https://github.com/opengovsg/FormSG/commit/767e7e55c3e8f058963e890b1c249704d6db1459)
- chore: bump version to v6.46.0 [`87fda0e`](https://github.com/opengovsg/FormSG/commit/87fda0e0ec4c937350ebd013a4a9762f4acee802)

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

Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,20 @@ to install node modules and Localstack locally to be able to run tests. Note tha
npm run test
```

will build the backend and run both our backend and frontend unit tests. The tests are located at
[`__tests__/unit/frontend`](./__tests__/unit/frontend) and
[`__tests__/unit/backend`](./__tests__/unit/backend).
will build the backend and run our backend unit tests. The tests are located at [`__tests__/unit/backend`](./__tests__/unit/backend).

If the backend is already built, you can run

```bash
npm run test-ci
```

Frontend tests are located at [`frontend/__tests__`](./frontend/__tests__). They can be run with

```bash
npm run test:frontend
```

#### End-to-end tests

```bash
Expand Down
7 changes: 7 additions & 0 deletions __tests__/unit/backend/helpers/generate-form-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
IAttachmentFieldSchema,
IAttachmentResponse,
ICheckboxFieldSchema,
IDateFieldSchema,
IDecimalFieldSchema,
IDropdownFieldSchema,
IHomenoFieldSchema,
Expand Down Expand Up @@ -149,6 +150,12 @@ export const generateDefaultField = (
},
...customParams,
} as IRatingFieldSchema
case BasicField.Date:
return {
...defaultParams,
invalidDays: [],
...customParams,
} as IDateFieldSchema
default:
return {
...defaultParams,
Expand Down
8 changes: 0 additions & 8 deletions __tests__/unit/frontend/.eslintrc

This file was deleted.

Loading

0 comments on commit 78c5a12

Please sign in to comment.