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

Gutenblock: Jetpack Subscription Form #7769

Merged
merged 12 commits into from
Sep 16, 2017

Conversation

georgestephanis
Copy link
Member

@georgestephanis georgestephanis commented Sep 8, 2017

Initial once through for creating a Gutenberg Block based on the Jetpack Subscription Form.

The js should probably get yanked to its own file and done in es6, but this works for now and saves an additional file to sync and transpile.

CheckboxControl doesn't seem to update. I may be missing something there.

Apart from that, seems to work.

@georgestephanis georgestephanis added the [Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. label Sep 8, 2017
@georgestephanis georgestephanis self-assigned this Sep 8, 2017
@georgestephanis georgestephanis requested a review from a team as a code owner September 8, 2017 21:29
@georgestephanis georgestephanis changed the base branch from master to add/gutenblocks September 13, 2017 18:56
@lamosty lamosty force-pushed the gutenberg/subscription-block branch 4 times, most recently from 8400704 to 2dde4bf Compare September 16, 2017 00:39
George Stephanis and others added 12 commits September 15, 2017 17:43
… Form.

Gutenblooooock

Pull it out to an external js file.

Dummy jsx file to start with.

Unit tests: if `register_block_type` isn't defined

Just quit out, they don't have Gutenberg installed.
Fixed it! Happy GM!

Subscription form block - updated styles

Subscription form block - minor style changes
Add source to title and subscribe_text attrs
Ran prettier on the block.jsx file

Make the subscribe_text into textarea so it's editable

Refactor the variables to be camelCase

Add Editable to subscribeText

Add "show total number of subscribers" setting to sidebar

Add Subscribe Button and Success Message TextControl(s)

Use SSR to render the subscription form

Remove 'shortcode' lib dependency

Disable the email field and submit button
Use textarea for the subscribe_text

Content of Editable can't be saved as JSON and used with SSR.
@lamosty lamosty merged commit ff720e8 into add/gutenblocks Sep 16, 2017
@jeherve jeherve added this to Done in Gutenberg Sep 20, 2017
@Viper007Bond Viper007Bond deleted the gutenberg/subscription-block branch January 29, 2018 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Subscriptions All subscription-related things such as paid and unpaid, user management, and newsletter settings. [Type] Feature Request
Projects
No open projects
Gutenberg
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants