-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6688 from opengovsg/release_v6.75.0
* feat: % rollout of new storage submission endpoint (#6665) * feat: use new endpoint for storage submissions * fix: answerArray fields hidden error - response.answerArray did not return visibility true * feat: growthbook on frontend * feat: script to set encryptionBoundaryShift to true * feat: default `encryptionBoundaryShift` to true * fix: form server model backend tests - set encryptionBoundaryShift flag for encrypted forms * refactor: setBody -> additionalBodyFields naming * refactor: rename ...FormV2Args -> ...FormClearArgs * fix: tighter typing for answerArray * refactor: create FormDataArgs types * feat: fetch fallback for new storage submission - refactor: use 'clear' instead of 'V2' * fix: add missing dependencies to handleSubmitForm * feat: use db env feature flags for BE * fix: missing args with env feature flags * fix: admin-form.controller tests * fix: IncomingEncryptSubmission tests * feat: script to unset encryptionBoundaryShift flag * feat: rm form-level encryptionBoundaryShift flags * fix: use docker images from edge/main instead * fix: use dl-cdn rather than nl - nl.alpinelinux.org mirror is outdated * fix: typo for dl-cdn * fix: testing instead of main url - font-wqy-zenhei@edge only available on edge/testing (ref: https://repology.org/project/fonts:wqy-zenhei/versions) * fix: update alpinelinux mirror for dev docker * fix: add growthbook to connect src CSP * fix: add more growthbook paths to csp * fix: helmet tests * feat: growthbook reverse proxy api host * feat: use appropriate domains for proxy * revert: changes to add growthbook to CSP * docs: ENCRYPTION_BOUNDARY_SHIFT_ENCRYPTION_VERSION * refactor: isDev for clarity of apiHost * refactor: use constants for link and path - refactor: rm unused formsgSdkMode * feat: unset encryptionBoundaryShift only if present * refactor: mv feature loading to AppRouter * feat: payment security account email check (#6604) * test: add cases for failed whitelisting domain * feat: add agency domain check when connecting stripe account * feat: add feature flag to allow release in dark * test: add cases to test for disabled fetaure flag * chore: update comments for clarity * chore: remove unused imports * refactor: use guard clause for flag checks * refcator: rename defaultvalue to fallback as its is applied during errors * feat: add be to redirect with query params when domain check fails * feat: add fe to show alert when non-whitelisted domain error is returned * chore: fix typo on whitelisting * Update src/app/modules/payments/__tests__/stripe.service.spec.ts Co-authored-by: Lin Huiqing <[email protected]> --------- Co-authored-by: Lin Huiqing <[email protected]> * fix: Find latest successful payment query to sort by completed payment date and constraint query to last 30 days (#6615) * fix: change query sort and add date constraint * test: add cases to test for query sort and date constraint * fix: standardise to use moment * chore: bump version to v6.75.0 * fix: payments params in new storage submission endpoint (#6689) * fix: joi validation for new storage endpoint * fix: pass payments params for new endpoint * chore: bump version to 6.75.1 --------- Co-authored-by: Ken Lee Shu Ming <[email protected]> Co-authored-by: Bryce Goh <[email protected]>
- Loading branch information
Showing
47 changed files
with
926 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { ReactNode } from 'react' | ||
import { GrowthBookProvider as BaseGrowthBookProvider } from '@growthbook/growthbook-react' | ||
|
||
import { createGrowthbookInstance } from '~/growthbook' | ||
|
||
import { useEnv } from '~features/env/queries' | ||
|
||
/** | ||
* Provider component that wraps your app and makes auth object available to any | ||
* child component that calls `useAuth()`. | ||
*/ | ||
export const GrowthBookProvider = ({ children }: { children: ReactNode }) => { | ||
const { data: { growthbookClientKey } = {} } = useEnv() | ||
|
||
return ( | ||
<BaseGrowthBookProvider | ||
growthbook={ | ||
growthbookClientKey | ||
? createGrowthbookInstance(growthbookClientKey) | ||
: undefined | ||
} | ||
> | ||
{children} | ||
</BaseGrowthBookProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.