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

Coming soon section flow revamp #706

Merged
merged 4 commits into from
Oct 6, 2023
Merged

Conversation

wpalani
Copy link
Member

@wpalani wpalani commented Oct 4, 2023

Proposed changes

  • In the SectionContent component, we are adding a new optional id prop.

  • In the SectionContent component, we are tracking url params and looking for target.

  • If the value of the target param matches the passed value in the id prop, we'll temporarily add a blink animation.

  • We are also updating the coming soon section title as per this ticket: https://jira.newfold.com/projects/PRESS1/issues/PRESS1-161

  • We still need to push an update to the coming soon / ecomm modules to update the referrer link to include the URL params.

Demo

Bluehost-Plugin.-.mp4

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

- In the `SectionContent` component, we are adding a new optional `id` prop.

- In the `SectionContent` component, we are tracking url params and looking for `target`.

- If the value of the target param matches the passed value in the `id` prop, we'll temporarily add a blink animation.

- We are also updating the coming soon section title as per this ticket: https://jira.newfold.com/projects/PRESS1/issues/PRESS1-161
Accidentally pushed my local's cypress configs
@wpalani wpalani changed the title Update coming soon parameter Coming soon section flow revamp Oct 4, 2023
@replay-io
Copy link

replay-io bot commented Oct 4, 2023

1 replays were recorded for 58d39b8.

image 1 Failed
  • vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon.cy.js
    1. Coming Soon Toggle Functions
      AssertionError: Timed out retrying after 4000ms: Expected to find content: 'Maintenance Mode' within the element: <div#coming-soon-section.wppbh-app-section-content.nfd-p-8.nfd-pb-0.wppbh-app-settings-coming-soon> and with the selector: 'h3' but never did.
          at Context.eval (webpack:///./vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon.cy.js:21:50)
    2. Coming Soon Toggle Functions
      AssertionError: Timed out retrying after 4000ms: Expected to find content: 'Maintenance Mode' within the element: <div#coming-soon-section.wppbh-app-section-content.nfd-p-8.nfd-pb-0.wppbh-app-settings-coming-soon> and with the selector: 'h3' but never did.
          at Context.eval (webpack:///./vendor/newfold-labs/wp-module-coming-soon/tests/cypress/integration/coming-soon.cy.js:21:50)
    3. Displays Coming Soon in Site Status Admin Toolbar
    4. Has Coming Soon Section on Home
    5. Displays admin coming soon notice
    6. Displays Coming Soon on Frontend
    7. Launching launches site
image 0 Passed

View test run on Replay ↗︎

wpalani added a commit to newfold-labs/wp-module-coming-soon that referenced this pull request Oct 4, 2023
This is part of this PR: bluehost/bluehost-wordpress-plugin#706

We are changing the coming soon section title from 'Maintenance Mode' to 'Site Status: ${status}'.
@wpalani
Copy link
Member Author

wpalani commented Oct 4, 2023

Coming Soon Module PR: newfold-labs/wp-module-coming-soon#13
E-commerce Module PR: newfold-labs/wp-module-ecommerce#146

Copy link
Member

@circlecube circlecube left a comment

Choose a reason for hiding this comment

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

I think the blink is a bit much/long. I counted 6 flashes when the page loaded. Each blink animation transitions the color twice and then we repeat 3 times. I think we could just keyframe one animation and repeat that 3 times.

@wpalani wpalani merged commit 83fd4cd into develop Oct 6, 2023
@wpalani wpalani deleted the update-coming-soon-paramater branch October 6, 2023 00:39
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