Skip to content
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(FormSettings/4): add storage mode form activation modal #2939

Merged
merged 15 commits into from
Oct 28, 2021

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Oct 13, 2021

Note that this PR builds on #2891

Problem

This PR adds the check for the form's public-secret keypair validity before allowing the form to be activated.

Extra MSW handlers have been added to allow for the manipulation of form settings (to test the appearance of the storage mode form).

Solution

Breaking Changes

  • Yes - this PR contains breaking changes
    • the publicKey prop is now returned in getSettings for storage mode forms. This is an API change.
  • No - this PR is backwards compatible

Features:

  • feat!: return publicKey in getSettings for storage mode forms
  • add SecretKeyActivationModal component, with logic to
    • validate form's secret key
    • activate form on keypair verification success

Improvements:

  • feat(test): add msw handlers for settings manipulation

Before & After Screenshots

The setting stories have been updated; manipulation of form settings is now possible.

60911f69d4403b0039b266a2-osaubkhjon chromatic com_iframe html_id=pages-adminformpage-settings--storage-mode-settings viewMode=story

Dependencies

  • @opengovsg/formsg-sdk: formsg sdk

@karrui karrui changed the title feat(v2): add storage mode form activation modal feat(FormSettings/4): add storage mode form activation modal Oct 13, 2021
@karrui karrui force-pushed the form-v2/feat/settings/storage-activation-4 branch from 6f6a7b5 to 360b179 Compare October 13, 2021 07:04
@karrui karrui force-pushed the form-v2/feat/settings/email-general-settings-3 branch from b6fd0b9 to a6628f8 Compare October 26, 2021 03:46
@karrui karrui force-pushed the form-v2/feat/settings/storage-activation-4 branch from a80360a to e8a6bee Compare October 26, 2021 03:46
@karrui karrui force-pushed the form-v2/feat/settings/email-general-settings-3 branch from a6628f8 to 2b9a463 Compare October 26, 2021 08:12
@karrui karrui force-pushed the form-v2/feat/settings/storage-activation-4 branch from e8a6bee to bcaed09 Compare October 26, 2021 08:13
@karrui karrui force-pushed the form-v2/feat/settings/email-general-settings-3 branch from 2b9a463 to 704a664 Compare October 28, 2021 08:21
Base automatically changed from form-v2/feat/settings/email-general-settings-3 to form-v2/develop October 28, 2021 08:27
@karrui karrui force-pushed the form-v2/feat/settings/storage-activation-4 branch from bcaed09 to 8245c05 Compare October 28, 2021 08:28
@karrui karrui merged commit 5e9ccb6 into form-v2/develop Oct 28, 2021
@karrui karrui deleted the form-v2/feat/settings/storage-activation-4 branch October 28, 2021 09:41
@justynoh justynoh mentioned this pull request Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant