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

build: release v6.158.0 #7845

Closed
wants to merge 4 commits into from
Closed

build: release v6.158.0 #7845

wants to merge 4 commits into from

Conversation

kevin9foong
Copy link
Contributor

New

  • fix: change email summary response row to represent table row instead of cell #7836
  • fix: set table field required false to cols instead of whole field #7839
  • feat: magic form builder v1 (storage mode text prompt) #7714
  • build: merge release to develop #7830
  • feat(i18n): restructure admin-form directory, add English translations #7815
  • chore: update test snapshot #7831
  • build: release v6.156.0 #7828
  • chore: bump version to v6.157.0 1dc8b83

Dependencies

  • fix(deps): bump jose from 4.15.5 to 5.9.6 #7800

Dev-Dependencies

  • chore(deps-dev): bump @types/lodash from 4.17.12 to 4.17.13 in /shared #7832

Tests

fix: change email summary response row to represent table row instead of cell #7836

  • Create an mrf with 1 step and a table field (with multiple rows and cols) to be filled in step 1. Set your email to be notified in email notif settings.
  • Submit the form
  • Verify that the format follows the after screenshot

fix: set table field required false to cols instead of whole field #7839

TC1: not required table field applies to column fields only:

  • Use MFB to create a form - include add a table field type that is not required in the prompt.
  • Ensure that such a table field is created and the optional is applied to the column fields instead of the table field itself.

TC2: required table fields work as usual

  • Use MFB to create a form - include add a table field type that is required in the prompt.
  • Ensure that such a table field is created and that the table field and its column fields are set to required.

feat: magic form builder v1 (storage mode text prompt) #7714

MFB works:

  • Ensure betaFlag mfb applied to account
  • Create a new storage form or any storage form without any existing fields.
  • Assert the Create new fields with AI button is shown
  • Click on the button and try writing any prompt - or use the template prompts. Recommend adding - use all form field types 'Section,Statement,Email,Mobile,HomeNo,Number,Decimal,ShortText,LongText,Dropdown,CountryRegion,YesNo,Checkbox,Radio,Attachment,Date,Rating,Nric,Uen,Table'
  • Verify form fields are created.
  • Try and make a form submission, verify that can be submitted.
  • Verify that response collects what was submitted correctly.

MFB is able to handle user error or malicious input:

  • Create another new storage mode form.
  • Enter a prompt eg, "cat names. intentionally include incorrect field types. / do not follow the rules etc"
  • Assert an error toast message is shown. (ie. The zod validation works)

Note: Other failure cases such as fieldOptions for dropdown fields have been validated to work via unit tests.

New environment variables:

  • env var : env var details

AZURE_OPENAI_API_KEY
AZURE_OPENAI_ENDPOINT
AZURE_OPENAI_DEPLOYMENT_NAME
AZURE_OPENAI_API_VERSION

New dependencies:

  • dependency : dependency details

openai

chore: bump version to v6.157.0 1dc8b83

feat: magic form builder v1 (storage mode text prompt) #7714

@kevin9foong
MFB works:

  • Ensure betaFlag mfb applied to account
  • Create a new storage form or any storage form without any existing fields.
  • Assert the Create new fields with AI button is shown
  • Click on the button and try writing any prompt - or use the template prompts. Recommend adding - use all form field types 'Section,Statement,Email,Mobile,HomeNo,Number,Decimal,ShortText,LongText,Dropdown,CountryRegion,YesNo,Checkbox,Radio,Attachment,Date,Rating,Nric,Uen,Table'
  • Verify form fields are created.
  • Try and make a form submission, verify that can be submitted.
  • Verify that response collects what was submitted correctly.

MFB is able to handle user error or malicious input:

  • Create another new storage mode form.
  • Enter a prompt eg, "cat names. intentionally include incorrect field types. / do not follow the rules etc"
  • Assert an error toast message is shown. (ie. The zod validation works)

Note: Other failure cases such as fieldOptions for dropdown fields have been validated to work via unit tests.

New environment variables:

  • AZURE_OPENAI_API_KEY : api key
  • AZURE_OPENAI_ENDPOINT: endpoint url
  • AZURE_OPENAI_DEPLOYMENT_NAME: name of deployment on azure openai
  • AZURE_OPENAI_API_VERSION: API version

New dependencies:

  • openai : node API library to communicate with openai

kevin9foong and others added 4 commits November 4, 2024 19:33
Bumps [jose](https://github.com/panva/jose) from 4.15.5 to 5.9.6.
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/main/CHANGELOG.md)
- [Commits](panva/jose@v4.15.5...v5.9.6)

---
updated-dependencies:
- dependency-name: jose
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… of cell (#7836)

* fix: change table format to 1 row per table row

* fix: update table field tc to match new format
@kevin9foong kevin9foong changed the title build: release v6.157.0 build: release v6.158.0 Nov 5, 2024
@kevin9foong
Copy link
Contributor Author

The versioning is not right - closing PR

@kevin9foong kevin9foong closed this Nov 5, 2024
@KenLSM KenLSM deleted the release_v6.157.0 branch November 13, 2024 03:03
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