Automattic / newspack-plugin

An advanced open-source publishing and revenue-generating platform for news organizations.
https://newspack.com
GNU General Public License v2.0
324 stars 48 forks source link

feat: add spinner to registration block submit button #3180

Closed chickenn00dle closed 3 weeks ago

chickenn00dle commented 1 month ago

All Submissions:

Changes proposed in this Pull Request:

Closes https://app.asana.com/0/1207385073694408/1206756862605997/f

The registration block can take a few seconds to complete and the current loading state is not entirely clear for all publishers. This PR adds a loading spinner to the registration form submit button when clicked to make it more clear the form is loading:

https://github.com/Automattic/newspack-plugin/assets/17905991/17048f71-7a3a-456b-be46-dc4ac3adecd5

How to test the changes in this Pull Request:

  1. On a test site, set up a registration wall content gate: https://help.newspack.com/engagement/reader-activation-system/content-gating/#getting-started
  2. Activate the memberships plugin and create a membership plan for all new registrations, restricting all posts to members of this plan
  3. Visit any post on your site as a logged out user and scroll until the registration wall triggers
  4. Enter a valid email address and verify a loading spinner appears within the submit button as shown above

Other information:

matticbot commented 3 weeks ago

:tada: This PR is included in version 4.4.0-alpha.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

matticbot commented 2 weeks ago

:tada: This PR is included in version 4.4.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: