Skip to content

Add Grunion Editor View.#6685

Closed
georgestephanis wants to merge 1499 commits intomasterfrom
contact-form/visual-shortcode
Closed

Add Grunion Editor View.#6685
georgestephanis wants to merge 1499 commits intomasterfrom
contact-form/visual-shortcode

Conversation

@georgestephanis
Copy link
Copy Markdown
Contributor

@georgestephanis georgestephanis commented Mar 16, 2017

Related: #2065

contact-form

This is currently just adding the overrides -- I'm intentionally not removing the old legacy code yet, to ease the transition on any users that prefer the old method. They can just disable the new include line, and the old way will be back again.

Props @MichaelArestad @azaozz and @georgestephanis for building this at the 2016 a8c GM.

Changes proposed in this Pull Request:

  • Add a visual interface for Contact Forms.

Testing instructions:

  • Add a contact form to a post.
  • Edit an existing contact form in a post.
  • Switch to the html editor. Back again!
  • Add a second or third contact form to a post.
  • Open multiple forms to editing mode at the same time.

Proposed changelog entry for your changes:

  • Added a new inline preview and editing interface for Contact Forms.

@georgestephanis georgestephanis added [Feature] Forms Enhancement Changes to an existing feature — removing, adding, or changing parts of it labels Mar 16, 2017
@georgestephanis georgestephanis self-assigned this Mar 16, 2017
@georgestephanis
Copy link
Copy Markdown
Contributor Author

Probably will need RTL and min assets generated.

@georgestephanis
Copy link
Copy Markdown
Contributor Author

We're also moving the "Add Contact Form" button directly into the TinyMCE Toolbar.

@georgestephanis
Copy link
Copy Markdown
Contributor Author

This was developed originally at https://github.com/Automattic/gm2016-grunion-editor -- so it has the full history there.

@MichaelArestad
Copy link
Copy Markdown
Contributor

I would like to dramatically overhaul the styles here. I'm not sure that's doable in time for this release considering all the things we're wrangling in settings land. Can we plan for this to be in the following release to give us a little time to polish it?

@georgestephanis
Copy link
Copy Markdown
Contributor Author

@MichaelArestad There is no target for merge, so no rush.

@jeherve
Copy link
Copy Markdown
Member

jeherve commented Mar 17, 2017

Fixes #1849
Fixes #1055
Fixes #642
Fixes #604
Fixes #254

Once this is merged, we should also retest the following issues and see if it helps:
#3109
#663

@jeherve
Copy link
Copy Markdown
Member

jeherve commented Apr 27, 2017

Fixes #7063

dereksmart and others added 14 commits May 26, 2017 14:13
Publicize: fix notice when $pages is set to false.
This fixes an issue when we were showing the wrong text on personal plan.  It also re-writes the logic to show the content to make it more readable.

It also fixes an issue where we were not showing the `set up` button on professional plans if scan was not enabled for some reason.
When SEO plugins like Yoast SEO or All in one SEO are installed on
Jetpack site, SEO Tools should stop modifying the meta tags.
…wpcom-1495046933

WPCOM REST API: Do Not Return Early From /comments POST
Contact Form: Send all emails through wrapper to ensure consistency
lezama and others added 13 commits July 5, 2017 18:53
Sync: Fix `jetpack_sync_add_term` and `jetpack_sync_save_term` being sent together
Since `jetpack.com` and all other URLs we're referencing have `https`
versions.
Removes a pre-WP 4.7 hack needed to handle a core bug with the REST API on sites using a particular permalink structure.
* Updates unit test to account for new core behavior

* Updates unit test to account for new core behavior

* Updates unit test to account for new core behavior

* Updates unit test to account for new core behavior
Update version to next alpha and packages
Protect: Stop showing multisite network activation warning on beta installs
#7455)

* Jetpack Sync: Adding name of importer to sync details for activity log

* Moving get importer functionality to its own method

* Moving get importer functionality to its own method

* Adding dummy change to see if it somehow resolves Travis issue

* Removing whitespace added to see if pushing again somehow impacted Travis issue.
See 69-gh-wp-calypso

The REST API settings endpoint includes a property `jetpack_relatedposts_enabled`, which is true if the Related Posts plugin will display related posts. The value from this endpoint is incorrect, however, when a site has not modified their settings. This is because the `Jetpack_RelatedPosts` plugin defaults the setting to be enabled if it is not set.

This change modifies the endpoint to use the same logic: if the setting is not set, it will default to reporting `jetpack_relatedposts_enabled` as true.

Some sites (VIP and Jetpack) default this setting to `false` instead, but the way this is accomplished is that when the plugin is loaded by `wp-content/mu-plugins/related-posts.php`, it actively changes the option to `false`. Since that loader should still be used by the REST API, that should mean that such sites will continue to have `jetpack_relatedposts_enabled` reported correctly.

This commit syncs r159322-wpcom.
…m-1500391197

REST API: Settings: fix `jetpack_relatedposts_enabled`
@georgestephanis
Copy link
Copy Markdown
Contributor Author

The diff to implement this on wpcom is at D6457

'[contact-field label="' . __( 'Message', 'jetpack' ) . '" type="textarea" /]',
'labels' => array(
'submit_button_text' => __( 'Submit', 'jetpack' ),
'required_field_text' => apply_filters( 'jetpack_required_field_text', __( '(required)', 'jetpack' ) ),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This needs a phpdoc so it's collected by our inline doc parser.

@georgestephanis
Copy link
Copy Markdown
Contributor Author

The prior mentioned phabricator diff has been updated with the latest changes.

@georgestephanis
Copy link
Copy Markdown
Contributor Author

Well, rebasing made this messier than expected.

@jeherve jeherve deleted the contact-form/visual-shortcode branch September 6, 2017 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Forms [Pri] Normal Touches WP.com Files

Projects

None yet

Development

Successfully merging this pull request may close these issues.