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

MWPW-147634 - Add support for a custom Form block endpoint #2291

Closed
wants to merge 19 commits into from

Conversation

elan-tbx
Copy link
Contributor

  • The forms service in Franklin is getting turned off, which means the Form block as it exists right now will become obsolete. This PR adds the ability to include a custom endpoint for the data, so this block can still be used (assuming the author has another forms service they can plug it in to)
  • This is accomplished by simply splitting the cell that includes the input URL, and adding the output URL to the second cell.
288181950-8be89e53-a91f-42c5-b862-77b7426c9fa6

Resolves: MWPW-147634

Test URLs:

@elan-tbx elan-tbx added new-feature New block or other feature needs-verification PR requires E2E testing by a reviewer labels May 10, 2024
Copy link
Contributor

aem-code-sync bot commented May 10, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link
Contributor

aem-code-sync bot commented May 10, 2024

Page Scores Audits Google
/drafts/ebartholomew/elan-form3?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@mokimo
Copy link
Contributor

mokimo commented May 10, 2024

Why not use metadata to read the input & output url? I don't know if the block is already used anywhere, but that way you could roll out the new metadata field to a whole project

Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

libs/blocks/form/form.js Outdated Show resolved Hide resolved
libs/blocks/form/form.js Outdated Show resolved Hide resolved
@overmyheadandbody
Copy link
Contributor

@mokimo - I guess there could be multiple forms per page, maybe?

elan-tbx and others added 11 commits May 14, 2024 10:56
…change (#2248)

Potential fix for bulk publisher issues

Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Sheridan Sunier <[email protected]>
Updating how alt text is used and displayed in preflight

Co-authored-by: Ryan Clayton <[email protected]>
Co-authored-by: Brad Johnson <[email protected]>
Co-authored-by: Sheridan Sunier <[email protected]>
remove role attribute on dd elements

Co-authored-by: Okan Sahin <[email protected]>
…2198)

* MWPW-147158: adds support for footer divider at the collection level

* Updatest unit-test files

* Update windows copy hash

* Update OSX copy hash

* Updates OSX hash again

* Removes console log

* Adds console logs for debbuging

* Removes console logs

* Adds console logs for debbuging again

* Removes console log

* Updates OSX hash

* Adds debuging message to test

* Update os-hash check logic

* trim() generated hash

* Changes the comparison logic for the hash

* Reverts last attempt

* new attempt to fix test

---------

Co-authored-by: Okan Sahin <[email protected]>
…sidekick (#2244)

* Fix for origin always being upper cased

* Update tools/send-to-caas/send-utils.js

changing to const

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
* Stage process improvements

* Remove team reviewers

* Formatting

* Simplify PR bodies

---------

Co-authored-by: Robert Bogos <[email protected]>
Remove label & merge workflows

Co-authored-by: Robert Bogos <[email protected]>
* Initial quiz-entry block with ml field

* MWPW-144810: Quiz Entry - Add option cards and text to the block (#2095)

* Quiz entry block (#2103)

* MWPW-144810: Quiz Entry - Add option cards and text to the block

* MWPW-144810: Add the text to strings.xlsx for title, subtitle, ML field default, card instruction bar and the button

* MWPW-146243 - Quiz entry code optimization (#2121)

* MWPW-146243 - Quiz entry code optimization

* Restores code optimization that was lost in previous PRs

Resolves: [MWPW-146243](https://jira.corp.adobe.com/browse/MWPW-146243)

* Update utils.js

* Update quiz-entry.js

Set button to use string values

* Update quiz-entry.js

Fixed to use new strings object

* MWPW-146034 - Quiz entry block accessibility (#2139)

* resolved accessibility concerns when the ml input is used
* general code refinements for more clarity, specifically for getting string values

Resolves: [MWPW-146034](https://jira.corp.adobe.com/browse/MWPW-146034)

* MWPW-146036 - Rig up quiz entry button (#2190)

* Support for ml filtering
* Debug support using ?debug=quiz-entry
* Store quizState in local storage and redirect to the quiz

Resolves: [MWPW-146036](https://jira.corp.adobe.com/browse/MWPW-146036)

* Quiz entry block (#2204)

* MWPW-144810: Quiz Entry - Add option cards and text to the block

* MWPW-144810: Add the text to strings.xlsx for title, subtitle, ML field default, card instruction bar and the button

* MWPW-147031:Add Analytics for Quiz Entry Block, MWPW-146080: Integrate Auto-Complete for Open Text Field on UAR Exposed Front Door

* fix eslint

* fix code according feedbacks

* MWPW-144022: Quiz entry block (#2227)

* carousel starts

* got buttons working

* MWPW-144022: Prototype carousel refinement, keybord controls updated

* linting fixes

* MWPW-147482 - ML Input Bulletproofing (#2242)

* add support for fallback fi codes
* add lana logging for ml field failures
* fix so the redirect checks for maxQuestions

Resolves: [MWPW-147482](https://jira.corp.adobe.com/browse/MWPW-147482)

**Test URLs:**
- Before: https://main--milo--adobecom.hlx.page/?martech=off
- After: https://<branch>--milo--adobecom.hlx.page/?martech=off

* MWPW-147683 - CSS Cleanup (#2267)

* MWPW-147683 - CSS Cleanup

* Final pass on the css
* Edits to markup where necessary

Resolves: [MWPW-147683](https://jira.corp.adobe.com/browse/MWPW-147683)

* pr feedback for vars and eslint errors

* more PR feedback on icon placement

* pr feedback for button border

* cleaned up the carousel widths so it's consistent it all times as it was previously 8px short.

* pr feedback on the location of the input clear X.

* PR feedback - reduced border on input, fixed a card disable bug, addressed card layout in tablet

* carousel starts

* got buttons working

* MWPW-144022: Prototype carousel refinement, keybord controls updated

* linting fixes

* Tests

* working tests update

* Small font size fixes that design has asked for

* linting

* linting

* Update quiz-entry.js with default vals

* Bring back debug

* debugging debug

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/quiz-entry.test.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/quiz-entry.test.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update test/blocks/quiz-entry/mocks/mock-data.js

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* added quiz-entry to utils.js (#2296)

Co-authored-by: Denys Fedotov <[email protected]>

* MWPW-148206: Update Spectra ML host from cchome-dev to cchome for PROD

---------

Co-authored-by: Jacky Sun <[email protected]>
Co-authored-by: Brad Johnson <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Jacky Sun <[email protected]>
@aem-code-sync aem-code-sync bot temporarily deployed to ebartholomew/MWPW-147634-form-endpoints May 14, 2024 17:05 Inactive
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.63%. Comparing base (03efb0b) to head (2241638).
Report is 10 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2291      +/-   ##
==========================================
+ Coverage   95.61%   95.63%   +0.02%     
==========================================
  Files         172      173       +1     
  Lines       45110    45168      +58     
==========================================
+ Hits        43130    43197      +67     
+ Misses       1980     1971       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aem-code-sync aem-code-sync bot temporarily deployed to ebartholomew/MWPW-147634-form-endpoints May 14, 2024 17:15 Inactive
@aem-code-sync aem-code-sync bot temporarily deployed to ebartholomew/MWPW-147634-form-endpoints May 14, 2024 17:17 Inactive
@elan-tbx elan-tbx marked this pull request as ready for review May 14, 2024 17:17
@aem-code-sync aem-code-sync bot temporarily deployed to ebartholomew/MWPW-147634-form-endpoints May 17, 2024 15:40 Inactive
@aem-code-sync aem-code-sync bot temporarily deployed to ebartholomew/MWPW-147634-form-endpoints May 20, 2024 15:47 Inactive
@aem-code-sync aem-code-sync bot temporarily deployed to ebartholomew/MWPW-147634-form-endpoints May 21, 2024 22:00 Inactive
@elan-tbx elan-tbx requested a review from SilviuLCF May 21, 2024 22:00
Copy link
Contributor

This PR is currently in the needs-verification state. Please assign a QA engineer to verify the changes.

libs/blocks/form/form.js Outdated Show resolved Hide resolved
@elan-tbx
Copy link
Contributor Author

elan-tbx commented Jun 3, 2024

Closing for now while a proper E2E pipeline is figured out, will re-open in the future.

@elan-tbx elan-tbx closed this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-verification PR requires E2E testing by a reviewer new-feature New block or other feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.