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

Feature: extract the feature flag for option-based form editor from campaigns domain into the core #7593

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

Conversation

glaubersilva
Copy link
Contributor

@glaubersilva glaubersilva commented Oct 29, 2024

Resolves GIVE-1345

Description

This PR extracts from the campaigns epic branch the feature to enable or disable the Option-Based Form editor. The main goal here is to be able to release this new feature as soon as possible, without the need to wait until the Campaigns project is finished.

This PR adds a new option to the Give > Settings > Advanced page that allows users to enable or disable the Option-Based Form Editor. This new option is enabled by default if the website has any Option-Based forms on DB and disabled by default if it has only Visual Form Builder forms on DB.

Affects

The "Settings" page and the "Switch to Legacy View" button from the "All Forms" page.

Visuals

Demo video:

https://www.loom.com/share/6b1063475387458a9621a24c920b8077?sid=914ffc3f-19a2-4159-be82-ed2868e90eca

Testing Instructions

Go to the Give > Settings > Advanced page to enable or disable the Option-Based Form Editor option and make sure the expected behaviors occur.

Expected behaviors with the legacy editor disabled:

  • Options used only by the legacy editor are hidden.
  • The "Switch to Legacy View" button is hidden on the "All Forms" page.

Expected behaviors with the legacy editor enabled:

  • Options used only by the legacy editor have a helper text icon next to the label.

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@glaubersilva glaubersilva self-assigned this Oct 29, 2024
@glaubersilva glaubersilva changed the title Feature: extract the feature flag from campaigns domain to core Feature: extract the feature flag for option-based form editor from campaigns domain into the core Oct 29, 2024
@glaubersilva glaubersilva marked this pull request as ready for review October 29, 2024 18:00
@glaubersilva
Copy link
Contributor Author

@jonwaldstein Gentle ping here to remind you about the double-check that we talked another day related to the settings options audit that should be visible only when the Option-based form editor is enabled. So, when you have the chance please let me know if we have hidden all necessary v2 options or if something was left behind.

Copy link
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@glaubersilva this is great! I noted some changes to settings that have changed since my last audit 😄

@glaubersilva
Copy link
Contributor Author

@jonwaldstein I implemented the changes based on your last audit. Let me know if there is something else.

assets/src/css/admin/settings.scss Outdated Show resolved Hide resolved
@glaubersilva
Copy link
Contributor Author

@jonwaldstein This is ready for a new review.

Copy link
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! @glaubersilva

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.

2 participants