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: mfb v1.1 accept-deny re-prompt #7959

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from
Open

Conversation

kevin9foong
Copy link
Contributor

@kevin9foong kevin9foong commented Nov 29, 2024

Problem

With MFB v1.0, admins are unable to re-try a prompt if they do not like the results from the initial prompt without recreating a new form or deleting all fields.

This is since when a form is generated using MFB prompt, the fields are created and MFB button disappears as it does not show up when fields exist for a form.

Closes FRM-1925

Solution

Allow admins to accept or reject proposed changes generated by Magic Form Builder.

Breaking Changes

No - this PR is backwards compatible

Before & After Screenshots

BEFORE:

AFTER:

image

New MFB button placement

image

New popover prompt

image

Fields generated indicated in bounding box and accept/deny popover

Tests

@datadog-opengovsg
Copy link

datadog-opengovsg bot commented Dec 23, 2024

Datadog Report

Branch report: feat/mfb-v1.1
Commit report: 37e0940
Test service: formsg

✅ 0 Failed, 119 Passed, 0 Skipped, 27.84s Total duration (6m 32.39s time saved)

@kevin9foong kevin9foong self-assigned this Dec 24, 2024
Copy link

linear bot commented Dec 30, 2024

@kevin9foong kevin9foong requested a review from KenLSM December 30, 2024 06:27
@kevin9foong
Copy link
Contributor Author

kevin9foong commented Dec 30, 2024

Pending unit test for:

  • assistance to return the field ids provided by createFormFields ✅
  • new delete fields by id on controller / service layer ✅

Pending chromatic story for:

  • new popover (for prompt & accept/deny) ✅
  • new search bar mfb button to right (need to enable for test env) ✅

note: did not write chromatic stories for the highlighted fields indicating accept/deny pending due to difficulties providing decorators for contexts/providers around the component.

@kevin9foong kevin9foong marked this pull request as ready for review December 30, 2024 17:33
@kevin9foong
Copy link
Contributor Author

Since can re-prompt, update form metadata to store # of prompts made per form to track volume of usage

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