-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: updated uen validator (ref stdnum) and tests cases #6534
Conversation
Hi @KenLSM , Please have a look at this PR for #5919, thank you. There seem to be a lot of new additions to package-lock.json. I think it might have been the additions generated by my local builds. If its alright, perhaps you can help to review the code first? I'll fix the package-lock file subsequently. Thanks! Hui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hui-jie-lim, firstly thanks for following through with the commitment you have. We appreciate your help here.
I've ran through the first round combing of the changes. I've also triggered the CIs for this branch. But it seems like there are a couple of linting issues lying around that our CI is not capturing as well. Meanwhile, you might want to double check on your linting config.
Cool! Let me work on these changes. Will get back. Thanks for the review btw. I am still quite new to software development so its very helpful to have another person view my code! |
Hey @KenLSM , the code should be cleaned up already - reformatted with prettier and also removed some of the unnecessary changes. Should be all good to go. Please have a look, thanks! |
Hey @KenLSM , i saw that the previous PR failed npm ci because the packages were not in sync. I had a look at the code and notice that it was because i still had jest in shared/package.json. Now that I removed it, could you re-trigger the test again please? Thank you |
Don't worry about the issue from |
hey @KenLSM , was wondering if there's any update on this, and if there's any follow up required on my end. |
Hey @hui-jie-lim apologies for the late response last week. There seems to have some tests failures on (1) linting (due to the linting that we've added for (2a)
Previously, (2b)
|
Hey @KenLSM , I have updated the UEN for the tests and ran the linting scripts. Just a quick question. I notice that I am failing the playwright test for email submissions due to timeouts on my local machine(m1 mba). It shows time out on github too. Is this expected behaviour? |
Yes. Expected albeit not the best way to announce test failures. The timeouts are due to the way the tests were conducted. The test waits until a certain element appears before concluding the tests. This also means that if there is a validation error that prevents the element from showing, the playwright tests would wait until the it timed out and fail. |
Hey @hui-jie-lim the feature changes looks good, and all of the tests have passed. 🎉 However, before we can merge, we'll still have to remove the changes on |
Done! I have removed the changes on |
Merged! Thanks for your contribution @hui-jie-lim 🎉 🎉 |
Awesome! Feels great to be able to contribute :) |
commit 3177870a44730e3fa896ace14cd56101b05ce792 Author: Ken Jin <[email protected]> Date: Tue Jul 25 19:28:18 2023 +0800 feat: MyInfo over sgID (frontend) (#6447) * feat: MyInfo over sgID (frontend) * fix: address review * feat: redesigned settings page * feat: add tag, fix test * fix: address Stacey's design review * feat: aria-labels and fix test again * fix: try to fix tests again * fix: hopefully fix tests... * fix: actually fix tests this time for real * fix: disable children fields as well * chore: revert back to original design * chore: formatting * chore: reduce diff * fix: e2e tests * fix: link to sgID data catalog * fix: inline message * fix: link * fix: closer to Figma * fix: even closer to Figma * fix: design review addressed * fix: UI review round 1.5 * fix: address all remaining design reviews * fix: design add gap in initial sentence and first radio * fix: address review by Huiqing * fix: ensure same typography commit 32868d95e45ec369449dc4ea21771b4c4242273e Author: Lin Huiqing <[email protected]> Date: Tue Jul 25 17:25:01 2023 +0800 chore: rm redundant type assertion in url validation (#6566) * chore: rm redundant type assertion in url validation - chore: remove unused isValidUrl function * chore: backend linting * chore: remove type assertion in useMdComponents * chore: typo in comments commit 712be3d728cd204129472eb7bea7293d76d342fa Author: hui (h-way) <[email protected]> Date: Tue Jul 25 05:57:07 2023 +0100 feat: updated uen validator (ref stdnum) and tests cases (#6534) * uen code * first draft * update * feat. UEN validator added * feat: updated uen validator based on stdnum, along with corresponding tests * Update package.json * refactored code for better readability * updated code for better readibility and removed unnecessary updates * ran prettier on uen-validation.ts and uen-validation.spec.ts * revert package-lock.json * deleted jest.config.js and.patch file * removed jest (unnecessary) from shared/package.json * updated UEN for e2e and frontend test, and ran linting on shared * revert package.json and package-lock.json * revert package-lock.json commit 9afa247a7a64c3845abdc94b3c8c21eed2e13448 Author: Ken Jin <[email protected]> Date: Tue Jul 25 11:31:40 2023 +0800 fix: subtle bugs in MyInfo Child and UI copyedits (#6562) commit 1ba72f75471e69a572a28580e517957479f0bfa6 Author: Lin Huiqing <[email protected]> Date: Tue Jul 25 10:32:46 2023 +0800 feat: react router params validator for mongo ids (#6561) * feat: react router params validator for mongo ids - refactor: rename FORMID_REGEX as MONGODB_ID_REGEX * refactor: isInvalidMongoId check commit 970cbc62eb44c2ae3f03f52b111601231c78412f Merge: 5030a06e8 ef66f79c6 Author: Justyn Oh <[email protected]> Date: Fri Jul 21 10:38:02 2023 +0800 Merge pull request #6559 from opengovsg/release-al2 build: merge v6.67.1 into develop commit ef66f79c6ee6c342a0e7fa9af0e5b87d32f32f93 Merge: 24397d062 b641094d4 Author: Ken Lee Shu Ming <[email protected]> Date: Thu Jul 20 18:00:42 2023 +0800 Merge pull request #6557 from opengovsg/release-v6.67.1 build: release v6.67.1 commit 5030a06e816af7c05fd386942847865ad9be67a7 Author: Ken Jin <[email protected]> Date: Thu Jul 20 17:16:12 2023 +0800 fix: github warning about unused import (#6558) commit b641094d40a67a888e3a8ac967a43f9d1732bd49 Author: Ken <[email protected]> Date: Thu Jul 20 16:28:23 2023 +0800 chore: bump version to 6.67.1 commit ad3b7502cc5fd62b575773f7d450beebc9cb6aa5 Author: Ken Lee Shu Ming <[email protected]> Date: Thu Jul 20 16:25:55 2023 +0800 fix: paynow payout being ignored (#6556) * test: add cases for payout.paid types * fix: include payment type when processing payouts commit 24397d062808fcde11691ad53c8c67d828c9dde9 Merge: fb55ba041 6ca03c68c Author: wanlingt <[email protected]> Date: Thu Jul 20 14:42:16 2023 +0800 Merge pull request #6555 from opengovsg/release_v6.67.0 build: release v6.67.0 commit 6ca03c68cb162a4ae3af01f172425b3305742ae0 Author: Justyn Oh <[email protected]> Date: Thu Jul 20 13:46:03 2023 +0800 chore: bump version to v6.67.0 commit b762985c839f165c6e6da2893ba66e4db37e73f4 Author: Justyn Oh <[email protected]> Date: Thu Jul 20 13:43:42 2023 +0800 feat: experimental login integration with SGID (#6552) * feat: initial integration * feat: use actual user work email scope * chore: update scope name * fix: use frontend redirect for login flow * fix: prevent useEffect re-renders * fix: add back data argument * fix: redirect to backend route flow, UI and code cleanup * test: update test env * fix: add null nonce explicitly * test: update sgid service tests * fix: handle error cases by passing status via params * test: update sgid tests * fix: reduce query params sent to redirected frontend * chore: fix nits * chore: revert packages * test: fix sgid tests * chore: remove toast message for 200s * fix: change frontend route to /ogp-login * chore: fix nits commit d15661de630e829b7f6bf740f9c343e8b0a4bd39 Merge: f748008dd fb55ba041 Author: Lin Huiqing <[email protected]> Date: Thu Jul 20 08:09:24 2023 +0800 Merge pull request #6554 from opengovsg/release-al2 build: merge v6.66.0 into develop commit f748008dde2b82e20e3c3a7fa0d8109adfedea72 Author: wanlingt <[email protected]> Date: Thu Jul 20 08:02:37 2023 +0800 fix: change instances of invoice to proof of payment (#6553) fix: change instances of invoice to proof of payment" commit fb55ba0413368b9d02d78293d857f97b2eab31c6 Merge: 5780a9d5d 0233ba801 Author: wanlingt <[email protected]> Date: Thu Jul 20 07:04:34 2023 +0800 Merge pull request #6550 from opengovsg/release_v6.66.0 build: release v6.66.0 commit 6e3f690fc01980271fec112df8a1931d74952d2c Author: Ken Jin <[email protected]> Date: Wed Jul 19 18:41:21 2023 +0800 feat: MyInfo Children compound fields beta (#6523) * feat: MyInfo Children compound fields beta * chore: bump myinfo-gov-client to 4.1.1 commit 23cb4c9ea5b0aa5a8ee05d35b8eb2bb06c3fa37f Author: Lin Huiqing <[email protected]> Date: Wed Jul 19 16:41:53 2023 +0800 ci: adjust timeouts for playwright pipe (#6551) commit 0233ba8018532d4978d13717fac065f81e2eb515 Author: LinHuiqing <[email protected]> Date: Wed Jul 19 15:10:42 2023 +0800 chore: bump version to v6.66.0 commit 18c7e8a54a0c98a711076c3b38f248b23721c592 Author: wanlingt <[email protected]> Date: Wed Jul 19 15:09:31 2023 +0800 fix: use proof-of-payment for payment receipt/invoice (#6549) * feat: use receipt instead of invoice when not gst-applicable * fix: use proof of payment in thank you page * fix: use proof of payment in email * fix: rename convertToInvoiceFormat to convertToProofOfPaymentFormat * test: fix test * fix: rename file as proofofpayment commit 01f2612cb9189668d32017332c29c0f2eb5acdae Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jul 19 03:18:02 2023 +0000 build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 in /frontend (#6548) Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit c05a01e5870557b3d4d6825417a76d73b6ebdf4b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jul 19 02:51:03 2023 +0000 fix(deps): bump word-wrap from 1.2.3 to 1.2.4 (#6547) Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit c95f1e4b742b9932e464fe69fe72bdfc3a870611 Author: Lin Huiqing <[email protected]> Date: Wed Jul 19 10:23:28 2023 +0800 build(deps): bump winston-cloudwatch to v6.2.0 (#6545) * revert: build(deps): bump winston-cloudwatch version to 6.2.0 (#6542) This reverts commit 004adc48eb762687f94d817ddfd72c6e8a7ffaea. * build(deps): bump winston-cloudwatch to v6.2.0 - build(deps): add ip package commit 6d03b5663c03731b6727f0e67bf6209335b3c861 Author: Yuan Ruo <[email protected]> Date: Tue Jul 18 16:25:56 2023 +0800 fix(deps): [Snyk] Security upgrade mongoose from 5.13.15 to 5.13.20 (#6541) * fix: package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MONGOOSE-5777721 * build: update package-lock.json --------- Co-authored-by: snyk-bot <[email protected]> Co-authored-by: Justyn Oh <[email protected]> commit 8b6905026057b3cc077401f38a9c1c3f909e1afe Author: wanlingt <[email protected]> Date: Tue Jul 18 16:15:54 2023 +0800 feat: indicate if GST has been applied to a payment transaction (#6538) * feat: add gst_enabled flag to form definition * feat: add gst_enabled flag to payment model * feat: add validation check for gst_enabled flag when updating payment * feat: add gstEnabled field when a new payment is created * feat: modify invoice according to whether GST is enabled * fix: edit invoice format * test: add gstEnabled to payments tests * test: fix more tests * feat: add datafix script * docs: refine description of script * feat: add GST toggle to payment settings page * fix: remove GST Reg No and Business Address descriptions * fix: UI changes * fix: set gst_enabled default in form model to true * fix: update test * fix: update db script commit 922a1de29fb0e3e5fa8126f5ebc01c90f6b1060e Author: Ken Lee Shu Ming <[email protected]> Date: Tue Jul 18 16:07:45 2023 +0800 chore: reduce max payment limit (#6543) * chore: lower max payment amount cents to 200k * fix: variable amounts to draw max payment amount from env commit 590f2557eddc687bb0ae85a189c18f8e56f2c228 Author: sebastianwzq <[email protected]> Date: Tue Jul 18 16:04:35 2023 +0800 fix: updating csp to fix bypass (#6535) * removed gtm and gstatic from csp headers * removed gtm and gstatic from csp headers * loading specific files for recaptcha * corrected path * corrected path * test defer * add tags * reverted hardcoded tracking id * reverted changes to gtm * added gtm * updated csp * added comments * updated comments commit 004adc48eb762687f94d817ddfd72c6e8a7ffaea Author: Lin Huiqing <[email protected]> Date: Tue Jul 18 12:22:00 2023 +0800 build(deps): bump winston-cloudwatch version to "6.2.0" (#6542) commit 0409f5050af0c24367b3d53e97d76395d59800c4 Author: mayying <[email protected]> Date: Mon Jul 17 13:28:05 2023 +0800 feat: add description to form issue modal (#6536) * feat: add description to form issue modal * update based on figma change * Remove fullstop as requested commit b1f40ca73af8e33bad8e23b7b0b14b783282653f Author: mayying <[email protected]> Date: Thu Jul 13 09:11:27 2023 +0800 fix: presub remove additional underscore (#6533) commit f24f72faab4238da8ef1c362e10c5961aaa024d9 Author: mayying <[email protected]> Date: Wed Jul 12 17:38:33 2023 +0800 feat: presub-change-icon-to-help (#6532) feat/presub-change-icon-to-help commit bf230bb7b38ff8c948455cde6fbfe8f88440ef6a Merge: 801f32868 5780a9d5d Author: Foo Chi Fa <[email protected]> Date: Wed Jul 12 11:40:23 2023 +0800 Merge pull request #6531 from opengovsg/release-al2 build: merge v6.65.0 into develop commit 5780a9d5db62a7f0ff9f61a21ceda65308d11450 Merge: 1d7419846 c1afac1d0 Author: tshuli <[email protected]> Date: Wed Jul 12 10:28:35 2023 +0800 Merge pull request #6528 from opengovsg/release_v6.65.0 build: release v6.65.0 commit c1afac1d08d52958e42ac09249852f764c99ea1f Author: tshuli <[email protected]> Date: Wed Jul 12 09:58:17 2023 +0800 fix: add FE validation rule that email domains must be non empty (#6529) fix: add FE validation rule that email domains must be non empty if enabled commit 3ca3ca76a7d347953ea5b4153de4575c2f4be3c0 Author: tshuli <[email protected]> Date: Tue Jul 11 11:52:30 2023 +0800 chore: bump version to v6.65.0 commit 801f32868b8900b8df3d6c71fccf8201b21f3ec9 Author: mayying <[email protected]> Date: Tue Jul 11 11:49:48 2023 +0800 fix: issue report icon for mobile (#6527) commit ae325f64907b45a0ff332722cdaf7e987af88149 Author: mayying <[email protected]> Date: Tue Jul 11 11:15:41 2023 +0800 feat: Create issue feedback UI on public form interface (#6452) * Add pre submission feedback modal * update required * Add todo * Rename from presubmission feedback to issue feedback * fix storybook error * lint * remove unnecessary usage of portal * Remove container, and fix bugs * Remove unused import * Add missing type * connect to backend * remove unused declaration * Add missing file * add default value to modal and reset upon success and in preview * Remove contact number * Do not show presub feedback button once form is submitted --------- Co-authored-by: Lin Huiqing <[email protected]> commit d596769694954e4ce6c28daceb584ab3ecb1905c Author: Ken Lee Shu Ming <[email protected]> Date: Tue Jul 11 10:55:51 2023 +0800 chore: variable payments UI review changes (#6524) * chore: update validation maximum error label * fix: payment invoice text not rendered as markdown * chore: update copy for min max ammount * fix: min max invalid errors not showing red borders * fix: name not showing red borders when there are errors * fix: additional copy on empty min max values * fix: unintended gaps when there is no payment name and description * feat: allow description to be left empty * fix: payment type not disabled when form is not in encryptmode * fix: payment validator not handling undefined monetary values * feat: add placeholder preview for payment preview when in build and create mode * fix: remove description on paymentpreview commit 3630378838c7e4b20c169410a12c66f7ea49332f Author: mayying <[email protected]> Date: Tue Jul 11 10:45:20 2023 +0800 feat: issue feedback admin page (#6517) * feat/issue-feedback-admin-page * add storybook * change issue to issues * pluralise issue * use shorthand and remove div * update UI according to stacey feedback * update as according to design requirement * change button to icon button in mobile view for export commit 60e3ceabaec7157a409b244dafd367eeefbcf974 Author: mayying <[email protected]> Date: Tue Jul 11 10:39:07 2023 +0800 feat: issue feedback post api service (#6492) * feat: Add formIssue schema * feat/create post form issue api * add api comment * do not insert email when it is empty or undefined * use object shorthand * Use ResultAsync instead of Promise commit 53e1d2793f2daeb7421b89c3990ed77852432c93 Author: Timothee Groleau <[email protected]> Date: Tue Jul 11 10:29:58 2023 +0800 fix: disallow path traversal when proxying static assets (#6513) * fix: disallow path traversal when proxying static assets * fix: test for forward and backward slashes in url tokens commit 375f7e3fa7456492271abda74af410e63e9a6b30 Author: mayying <[email protected]> Date: Tue Jul 11 09:27:48 2023 +0800 fix: mishandling stripe callback when user clicks return to form (#6522) * fix: mishandling stripe callback when user clicks return to form * fix broken test * remove undefined commit 4d59fba1ef2f5d848bfbbd648b678a8080783f22 Author: Foo Chi Fa <[email protected]> Date: Mon Jul 10 15:06:43 2023 +0800 feat: migrate payment enablement from toggle to delete button (#6511) * feat: add delete payment field mutation * feat: remove enable toggle from input panel * feat: add delete payment modal disclosure to context * feat: update payment field preview with delete and drawer buttons * feat: add delete payment modal * feat: remove enable toggle from variable payment * fix: loosen validation for update payment when payment is disabled * fix: disable all payments field when stripe is unconnected or email mode * feat: only show button group if payment field is created * refactor: use guard clause over conditional rendering * chore: remove unneeded true cast * chore: remove hard cast of payments field type * chore: fixed typing of payment delete defaults commit c4c0d94d0cb35809f0e1647e246609b2344561ff Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun Jul 9 19:52:20 2023 +0000 fix(deps): bump type-fest from 3.12.0 to 3.13.0 in /shared (#6521) Bumps [type-fest](https://github.com/sindresorhus/type-fest) from 3.12.0 to 3.13.0. - [Release notes](https://github.com/sindresorhus/type-fest/releases) - [Commits](https://github.com/sindresorhus/type-fest/compare/v3.12.0...v3.13.0) --- updated-dependencies: - dependency-name: type-fest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6ca65002e342e01a2b55abe27cb5714cc589653a Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat Jul 8 00:54:42 2023 +0000 fix(deps): bump protobufjs from 7.1.2 to 7.2.4 (#6519) Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 7.1.2 to 7.2.4. - [Release notes](https://github.com/protobufjs/protobuf.js/releases) - [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.1.2...protobufjs-v7.2.4) --- updated-dependencies: - dependency-name: protobufjs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 0dc07722870e0bb3e5ca19292830401d42e19813 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat Jul 8 00:47:41 2023 +0000 chore(deps): bump tough-cookie from 4.1.2 to 4.1.3 in /frontend (#6518) Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/salesforce/tough-cookie/releases) - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md) - [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: tough-cookie dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 87561c802f073aab71f0e7109485bc974111a979 Author: mayying <[email protected]> Date: Fri Jul 7 17:19:44 2023 +0800 feat: create get api for listing and downloading issues (#6516) * feat: create get api for listing and downloading issues * fix some nits * fix failed tests commit 3c502a9bd7166b073262cdbec03f030d903bd4ac Author: Ken Lee Shu Ming <[email protected]> Date: Fri Jul 7 16:58:22 2023 +0800 feat: payment dashboard (#6504) * feat: add reconciliation info * fix: paid amount not showing if payout is not available * chore: update payout text to Pending for not yet paidout * feat: add fees, email * fix: payment fields should only show for payment forms * fix: findSingleMetadata not converting id into ObjectId, test cases missing null payment * refactor: move submission metadata construction to common func * test: add cases for submission routes * refactor: extract response table * refactor: extract common function * fix: test cases incorrect expectation * test: add more cases for getnetamount commit 4bc2c0c591e2462da7d015d8da0ffc65504add73 Author: sebastianwzq <[email protected]> Date: Fri Jul 7 14:25:55 2023 +0800 fix: set decompress to false (#6515) * set decompress to false since we are not using the response body * updated test cases * updated based on review feedback commit a75f1fafcc69811366d667cf18b67d1193e2ad65 Author: sebastianwzq <[email protected]> Date: Thu Jul 6 11:33:49 2023 +0800 refactor: Fix backwards compatibility issues with Turnstile integration (#6502) * fixing lint comments * fixed github lint comments * updated test cases * fixed test cases * rebased against develop and corrected error msgs * fix rebase errors * added share types for backend and frontend * set default to false * addressed review feedback * addressed review feedback * addressed review feedback * addressed review feedback commit 1ae46e932758334a5b882fb5afc1478fe98c9245 Author: tshuli <[email protected]> Date: Wed Jul 5 10:44:46 2023 +0800 feat: decouple otp validation and restrict email domain (#6497) * feat(frontend): decouple restrict domain from OTP validation * feat(frontend): frontend validation for allowed email domain * feat(backend): enable domain validation even if not verified email * chore: add backend tests * feat: add model level validation * chore: remove unused var * feat: additional model level check for non-empty allowedEmailDomains if hasAllowedEmailDomains * chore: add DB migration script * lint: remove unused import commit f292cc87ab4bcc3e82cd48ea4d0a03f05cc0cb5d Merge: ac05f3e19 1d7419846 Author: Foo Chi Fa <[email protected]> Date: Tue Jul 4 18:11:24 2023 +0800 Merge pull request #6512 from opengovsg/release-al2 build: merge v6.64.0 into develop commit 1d74198465f8f8a887de107317c4b51a2e29c312 Merge: bc4ca3d4c d920e7599 Author: tshuli <[email protected]> Date: Tue Jul 4 16:53:50 2023 +0800 Merge pull request #6509 from opengovsg/release_v6.64.0 build: release v6.64.0 commit d920e7599d98b8b887e0804904e97f5c360753e3 Author: Ken Lee Shu Ming <[email protected]> Date: Tue Jul 4 15:33:22 2023 +0800 chore: fix typo maxmium -> maximum (#6510) commit ac05f3e192a4bd7a3ae7eb5c228ad5f15c81db23 Author: Foo Chi Fa <[email protected]> Date: Tue Jul 4 12:49:33 2023 +0800 feat: deep link myinfo settings message in builder (#6503) * feat: deep link myinfo message in builder * chore: use const settings sub routes commit b3df2df69910e1a44f0a3abb47a7c9b7f37e8d21 Author: tshuli <[email protected]> Date: Tue Jul 4 11:25:12 2023 +0800 chore: bump version to v6.64.0 commit 98589c9414da6df821f692966cb190bbbdb38bf5 Merge: 97c8789f9 bc4ca3d4c Author: Foo Chi Fa <[email protected]> Date: Tue Jul 4 10:18:45 2023 +0800 Merge pull request #6508 from opengovsg/release-al2 build: merge v6.63.0 into develop commit 97c8789f98b72b79576e49fe607f2356c418926b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Jul 3 20:17:29 2023 +0000 chore(deps-dev): bump @typescript-eslint/parser from 5.60.1 to 5.61.0 in /shared (#6506) chore(deps-dev): bump @typescript-eslint/parser in /shared Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.60.1 to 5.61.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.61.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit b72b3695f95947d51fc9e21e722c7f8ec0802bb5 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Jul 3 19:46:48 2023 +0000 chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.60.1 to 5.61.0 in /shared (#6505) chore(deps-dev): bump @typescript-eslint/eslint-plugin in /shared Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.60.1 to 5.61.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.61.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 92c61dc28c5954f5e6f3e353d4675a6d9a65844c Author: Ken Lee Shu Ming <[email protected]> Date: Mon Jul 3 19:18:44 2023 +0800 feat: payment variable (#6463) * refactor: cleanup FE payments folder * feat: add PaymentItemDescription component, refactor: payment amount validator to sharable hooks * refactor: rename paymentIsEnabled to isUsingPayment * feat: add VariablePaymentItemDetailBlock * feat: split payment name and description fields * refactor: createEncryptedSubmissionData to pass by object params * feat: create PI with variable amount from responder * feat: add FE payment input error message * feat: extend usePaymentFieldValidation to support min-max value overrides * feat: add field component for admin to configure variable min-max value * feat: add admin save action for variable payments * fix: check if payment fields are valid before access * chore: update payment validation copy * feat: add payee amount validation * fix: default test cases * fix: check for payment type before datafield access * feat: add itemheight override in SingleSelect component * feat: add admin selector for payment types * fix: remove unused imports * fix: PaymentBlock ts issue * fix: update UI padding/borders on VariablePaymentDetailBlock * refactor: rename modal paymentType to payment_type, remove LegacyPaymentType * feat: add db paymenttype migration script * tests: refactor payment service * chore: copy changesto PaymentType selector * feat: fullwith dropdown * chore: show both payment amount limit errors, add payment type label, add textarea to payment description * fix: payment item name on dedicated payment page * fix: tests failures due to improper imports * tests: add admin-form.payments test cases, rename files from payment to payments * fix: add boundary checks for improper min/max amount for variable payments * test: add cases for Variable amounts * tests: add payment controller cases * refactor: remove unused SingleSelectProvider properties * test: fix missing betaflag insertion in test helpers * fix: min_amount, max_amount, amount_cents should be consistent in update validation * fix: payment fields name and description should be trimmed * refactor: extract usePaymentFieldValidation hook to hooks folder * refactor: consolidate related Payment UI Components types together * test: add cases for getPaymentAmount * fix: add stronger Joi guarantee on payment input * refactor: update payment type * chore: update payment invoice guide link to go.gov link * chore: rename confusing FixedPaymentItemDetailsBlock to PaymentItemDetailsBlock * fix: move min/max amount check to encrypt-submission's joi * refactor: db script to use batching * refactor: terser queries, remove duplicate query fields commit 4a92e313b9668a954d4f4e07a1743738cdd6f2d3 Author: sebastianwzq <[email protected]> Date: Fri Jun 30 17:02:08 2023 +0800 fix: separated captcha and turnstile error tracking (#6494) * separated captcha and turnstile error tracking * Added error cases for email submission * edited error response codes commit ef21c799347ca9638c71ee43b5fb6ee21605204b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jun 28 19:36:14 2023 +0000 fix(deps): bump libphonenumber-js from 1.10.36 to 1.10.37 in /shared (#6496) Bumps [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js) from 1.10.36 to 1.10.37. - [Changelog](https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/CHANGELOG.md) - [Commits](https://gitlab.com/catamphetamine/libphonenumber-js/compare/v1.10.36...v1.10.37) --- updated-dependencies: - dependency-name: libphonenumber-js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit bc4ca3d4c12bb35b399cb29f1eaa924fdeff880e Merge: 7998b7c9a b474dc76f Author: Ken Lee Shu Ming <[email protected]> Date: Wed Jun 28 14:55:32 2023 +0800 Merge pull request #6493 from opengovsg/release_v6.63.0 build: release v6.63.0 commit b474dc76f426ddbb101ba73c50f16e507b51a437 Author: Timothee Groleau <[email protected]> Date: Wed Jun 28 11:34:56 2023 +0800 chore: bump version to v6.63.0 commit a6d2bf77a15a2e7cd79401c53270b6b1ed46f8db Author: mayying <[email protected]> Date: Wed Jun 28 10:16:31 2023 +0800 feat: Declare formIssue schema (#6476) * feat: Add formIssue schema * Remove repeated field commit 59e927d59c9d1c9ff0b17a4d3f3b4093c329056c Author: Ken Lee Shu Ming <[email protected]> Date: Wed Jun 28 10:06:52 2023 +0800 fix: handle and wrap stripe fetches in neverthrow (#6491) * fix: handle and wrap stripe fetches in neverthrow * test: add cases when axios fails commit ead49cbc33c67b9b93d6ac66f6fe906dedd8a642 Author: sebastianwzq <[email protected]> Date: Tue Jun 27 18:02:42 2023 +0800 feat: Implemented turnstile integration for email and stored submission (#6483) * Implemented turnstile feature for email and stored submission * fixed lint comments on github * removed unnecessary comments * updated test * staging test * adding staging logs * modified env creation script * fixed lint comments on github * amended according to review feedback commit 7af0d97b7c6372acb6b0292119b1ed3317cd6b3e Merge: 9a41a28df 7998b7c9a Author: wanlingt <[email protected]> Date: Tue Jun 27 10:21:32 2023 +0800 Merge pull request #6486 from opengovsg/release-al2 build: merge v6.62.0 into develop commit 9a41a28df80109293548eca0abf467ac902bb2ba Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Jun 26 20:32:49 2023 +0000 chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.60.0 to 5.60.1 in /shared (#6487) chore(deps-dev): bump @typescript-eslint/eslint-plugin in /shared Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.60.0 to 5.60.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit e4d9c659dd5aa4188dc69cd879f6212f922d6015 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Jun 26 20:32:22 2023 +0000 chore(deps-dev): bump @typescript-eslint/parser from 5.60.0 to 5.60.1 in /shared (#6488) chore(deps-dev): bump @typescript-eslint/parser in /shared Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.60.0 to 5.60.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 7998b7c9a0a6ec964691ab976cc94ab204ac4161 Merge: c7b88d4d9 b5ab2e0d1 Author: Foo Chi Fa <[email protected]> Date: Mon Jun 26 16:21:53 2023 +0800 Merge pull request #6484 from opengovsg/release_v6.62.0 build: release v6.62.0 commit b5ab2e0d1615a5e9b0ed1829adcaf040ef700adc Author: Ken <[email protected]> Date: Mon Jun 26 15:37:07 2023 +0800 chore: bump version to v6.62.0 commit b8efc26eb7692f46341116dcb2259de8c8d4ed4c Author: Foo Chi Fa <[email protected]> Date: Mon Jun 26 15:33:21 2023 +0800 fix: admin feedback capturing wrong local storage value (#6485) * exp: test isloading rerenders * exp: add isLoading to showadminfeedback * fix: feedback gaps and localstorage prefix * Update WorkspacePage.tsx * fix: refactor out admin feedback logic to own container * fix: textbox to thumbsup margin commit c4af3d2e2f47cb3dd4791866291d8576217104f3 Author: Timothee Groleau <[email protected]> Date: Mon Jun 26 10:00:19 2023 +0800 fix: escape form title in payment invoice's html content (#6482) * fix: escape form title in payment invoice's html content * fix: close the br tag * fix: use he.encode() rather than lodash.escape() commit 1db99dcf3ed95ea6fb28d96da4546668f191e7fc Author: Foo Chi Fa <[email protected]> Date: Fri Jun 23 18:37:12 2023 +0800 feat: admin feedback modal (#6465) * feat: set up basic modal * feat: add states and content to feedback modal * feat: add last feedback seen time to local storage * feat: add eligibility check to sessionStorage and display logic * doc: explanation for memoising time * fix: display eligibility * feat: create logic for eligibility cases * fix: leftover lints * feat: add services and mutation for create and update feedback * feat: integrate modal interaction and api calls * feat: use env vars for display frequency and field threshold * fix: Comment box content size * fix: wrap modal header and close button * fix: don't send mutation if comment is empty * fix: mobile view for comment modal * doc: correct spelling errors * feat: link feedback history to specific user * feat: remove session eligibility on logout * fix: hard remove session storage * chore: fix spelling/case errors * fix: use enum for typing on feedback rating * feat: refactor admin feedback to use flex instead of modal * chore: change name of feedback from modal to box * chore: refactor names with modal to box * fix: temporarily remove placeholder * chore: update typing of mutation and service * feat: add thumbs down flow * chore: remove default true from testing * chore: set z-index of feedback box and rounded borders * fix: disable feedback from showing on mobile and added todo comment * fix: use useRef instead of memo for current time * refactor: abstracted large if case to make flow more readable commit 3a8d2145adc961e0c63b1e40e23093e9588ff206 Author: mayying <[email protected]> Date: Fri Jun 23 17:52:09 2023 +0800 fix: potential html script injection (#6481) * fix: potential html script injection * add separate paragraph after regards * remove cwd log * update markdown * Use regards instead of thank you commit f7c9ebcce313eff76b242dc9c21870c51b0c022c Merge: d929663ca c7b88d4d9 Author: Ken Lee Shu Ming <[email protected]> Date: Thu Jun 22 18:20:25 2023 +0800 Merge pull request #6480 from opengovsg/release-al2 build: merge v6.61.1 into develop commit c7b88d4d94ccdf9a65177bfb12878e0ddce43c5d Author: Ken <[email protected]> Date: Thu Jun 22 17:39:58 2023 +0800 chore: bump version to v6.60.1 commit ce96883bad81c00b9a895ab400ed45b6feeecb59 Author: Ken <[email protected]> Date: Thu Jun 22 17:22:08 2023 +0800 fix: initialize payoutProcessError with default value commit d929663ca32606378c4265b4861ec200b4da4dbf Author: Justyn Oh <[email protected]> Date: Thu Jun 22 15:40:02 2023 +0800 chore: delete deprecated angular routes (#6442) * chore: delete /v2/submissions routes * chore: delete /auth routes * chore: remove /verifications routes * test: update test auth setup with new routes * chore: delete /adminform routes * chore: delete /examples routes and module * chore: delete examples from src/types --------- Co-authored-by: Timothee Groleau <[email protected]> commit dd75693b459bff8d87b38e188c1a076ea536cc91 Author: mayying <[email protected]> Date: Thu Jun 22 13:50:34 2023 +0800 chore: update issue feedback mail html (#6478) commit 482d87ea77f89c106f09fa5bddcadd20486ea8bd Merge: 224d1e4b4 86bf1a54e Author: wanlingt <[email protected]> Date: Thu Jun 22 12:01:59 2023 +0800 Merge pull request #6477 from opengovsg/release-al2 build: merge v6.61.0 into develop commit 224d1e4b4c5c1d1ea61a44fa3312554f01e3a99a Author: wanlingt <[email protected]> Date: Thu Jun 22 11:40:33 2023 +0800 fix: account for undefined response code when tracking webhook dd stats (#6475) * fix: account for undefined response status and add isRetryEnabled * fix: use regexp.test * fix: update regexp syntax Co-authored-by: Timothee Groleau <[email protected]> --------- Co-authored-by: Timothee Groleau <[email protected]> commit 86bf1a54e0b11a54882040fa7f9782aa3f1e75db Merge: 8cd7ee0ae 0ebf7932e Author: Timothee Groleau <[email protected]> Date: Thu Jun 22 11:31:24 2023 +0800 Merge pull request #6473 from opengovsg/release_v6.61.0 undefined commit 0ebf7932eefe031bbc1d535afbf2f02e1863f4fd Author: Timothee Groleau <[email protected]> Date: Thu Jun 22 08:51:40 2023 +0800 chore: bump version to v6.61.0 commit 648deec8dede0dd6e4f36e169ad9e8bee30c2b18 Author: mayying <[email protected]> Date: Wed Jun 21 09:59:51 2023 +0800 feat: Add getStartOfDay function (#6467) * Add getStartOfDay function * support timezone param in the function * use UTCHours in test * add more UT * Mock system time to reduce flaky test * Mock timezone and time to avoid flaky test * Add negative timezone for UT * use iso time commit cdc85fb9771dbbac91e5fea78c1c9544bad1aaac Author: wanlingt <[email protected]> Date: Tue Jun 20 16:53:29 2023 +0800 feat: track webhook metrics in DataDog (#6469) commit ad3efb46a42b9ebf434bb53e7e18cd3bbf7b85ff Author: mayying <[email protected]> Date: Tue Jun 20 14:19:37 2023 +0800 chore: Send issue reported notification email to admin (#6468) * feat: Send issue reported notification email to admin * remove duplicated log and add formId in sendEmail meta * send formid meta as string instead of object id * add UT commit b09358215a4806b29ae2a5a479e328b0d42ce950 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Jun 19 21:04:49 2023 +0000 chore(deps-dev): bump @typescript-eslint/parser from 5.59.11 to 5.60.0 in /shared (#6470) chore(deps-dev): bump @typescript-eslint/parser in /shared Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.59.11 to 5.60.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 522d35579d82520384b2b1734620ab90c8a2b6e0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Jun 19 20:33:56 2023 +0000 chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.59.11 to 5.60.0 in /shared (#6471) chore(deps-dev): bump @typescript-eslint/eslint-plugin in /shared Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.59.11 to 5.60.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6b91b64232c15ac008c4430b2e1ee4a83907a4b6 Author: Lin Huiqing <[email protected]> Date: Mon Jun 19 17:24:50 2023 +0800 feat: email onboarding and help center of payments landing page (#6462) * feat: payments help center * fix: rm extra line for payment cfm email * feat: endpoint for payment onboarding email * feat: main payment onboarding card - adds style props to pass into email fields * feat: replace CTA at the end with onboarding email * feat: use separate link for guide (for tracking) * fix: vertically stack bottom CTA when isMobile * feat: link to scroll to bottom CTA * fix: add missing otpPrefix in mail service tests * test: sendPaymentOnboardingEmail in mail service * test: sendPaymentConfirmationEmail in mail service * style: change help center bg color * style: update invalid email domain error message * test: sendOnboardingEmailIfEligible in payment service * fix: mock resolved value once for test case * ref: use mock rejected for sendMail * fix: improve error logging for MailSendError * test: handleSendOnboardingEmail in payment controller * fix: comments for payment onboarding BE * ref: move public payments guide link to shared * ref: email sign off to use `appName` team Co-authored-by: wanlingt <[email protected]> * fix: email needs appName arg passed in * ref: payments landing page components - add comments for duplicated email fields * test: add generate expected args to mail spy * feat: feature banners direct to payments landing * fix: add placeholder for email input * ref: use LANDING_PAYMENTS_ROUTE --------- Co-authored-by: wanlingt <[email protected]> commit 8534a2f91b6086c2294d1c3694922c73acb2ce40 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jun 15 20:27:54 2023 +0000 fix(deps): bump libphonenumber-js from 1.10.34 to 1.10.36 in /shared (#6466) Bumps [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js) from 1.10.34 to 1.10.36. - [Changelog](https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/CHANGELOG.md) - [Commits](https://gitlab.com/catamphetamine/libphonenumber-js/compare/v1.10.34...v1.10.36) --- updated-dependencies: - dependency-name: libphonenumber-js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 2eaf349f897d0b674ef2a07d6c856f3bcbee5b7f Merge: fe1a43e16 ef1877480 Author: Ken Lee Shu Ming <[email protected]> Date: Thu Jun 15 14:28:31 2023 +0800 Merge pull request #6436 from opengovsg/fix/webhooks-not-ending fix: payout webhooks not returning OK commit fe1a43e1699d8045cee043218e3857030648919e Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed Jun 14 20:24:49 2023 +0000 fix(deps): bump type-fest from 3.11.1 to 3.12.0 in /shared (#6464) Bumps [type-fest](https://github.com/sindresorhus/type-fest) from 3.11.1 to 3.12.0. - [Release notes](https://github.com/sindresorhus/type-fest/releases) - [Commits](https://github.com/sindresorhus/type-fest/compare/v3.11.1...v3.12.0) --- updated-dependencies: - dependency-name: type-fest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit ef18774805de9e2f0cd879440d29b9a6e57ea402 Author: Ken <[email protected]> Date: Wed Jun 14 23:40:11 2023 +0800 refactor: use mapErr to handle errors in neverthrow chain commit 9867ae2af54bef7398a3de61bbf9bae589ac93c4 Author: Foo Chi Fa <[email protected]> Date: Wed Jun 14 17:42:18 2023 +0800 feat: (BE) create and update admin feedback (#6454) * feat: set up admin form collection * feat: add route to create admin feedback * chore: shift insertAdminFeedback to feedback service * chore: update route and controller docs * feat: add static to update admin feedback * feat: add route to update admin feedback * fix: generalise create admin feedback to include optional comment * fix: userId param of IAdminFeedback * chore: change metric name for admin feedback * test: admin feedback server model tests * feat: remove updateAdminFeedback static replace with default findByIdAndUpdate method * feat: check userId when updating admin feedback * test: insert and update tests * chore: change return name of feedback in controller * test: add test case for routes * chore: change name of collection to camel case * test: refactor format of params to standardise * refactor: admin feedback into its own module * chore: remove unneeded typecast * chore: revert feedback module changes * chore: remove unneeded space * feat: use updateOne to atomically find and update feedback * test: update test cases * chore: update casing of test param * doc: fix documentation errors * test: ensure that update is not called when no rating and comment commit ee2fbb1454dd697528365909d5dcd3deb5f3052d Author: Ken <[email protected]> Date: Thu Jun 8 11:00:37 2023 +0800 chore: add logs when processStripeEvent failed commit a5a06bebe35d2f9c9d819997fa172baeb0c26190 Author: Ken <[email protected]> Date: Thu Jun 8 10:24:15 2023 +0800 test: add tests for getMetadataPaymentId, cleanup test cases commit b91942053d3f36cf6793bdb7fae9e03f6c0de92b Author: Ken <[email protected]> Date: Thu Jun 8 10:23:04 2023 +0800 test: add missing chained mock commit e376011b72937e00754db68a6cd672e202285b47 Author: Ken Lee Shu Ming <[email protected]> Date: Thu Jun 8 09:44:29 2023 +0800 test: remove redundant and misleading mock Co-authored-by: Lin Huiqing <[email protected]> commit 4c125dab088e78804fca9f55ba524aeee3e935f4 Author: Ken <[email protected]> Date: Wed Jun 7 22:57:07 2023 +0800 fix: remove cyclic promise in payout webhooks commit d0eb2d4f5ec741ffa9faa2742a713c9e2e7100b1 Author: Ken <[email protected]> Date: Wed Jun 7 22:48:17 2023 +0800 test: add payout cases Merge branch 'develop' into form-v2/jia1-country-field
Note: just put the issue number directly without the square brackets to trigger automations! Will close the issue manually this time 👍 |
Manual tests:
|
Problem
Closes [#5919]
Solution
Breaking Changes
Features:
Tests
Test comprises 2 happy and 1 unhappy test cases. Happy test cases are based on UEN codes that are known to be valid issued by ACRA and Other entities. Unhappy test case checks if uen-validator captures the checksum accurately for all types if UEN. (5XXX, 2XXX, ROC, ROB, T and S entities.) See shared/utils/tests/uen-validation.spec.ts
May run as a check
npm run test:backend shared
Deploy Notes