-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add Gutenberg prepublish panel to Autotweet post #44
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
1d87568
Set up Gutberg app
johnwatkins0 4a9ec24
Merge branch 'develop' into feature/publish-panel
johnwatkins0 c8654ee
Autotweet prepublish panel
johnwatkins0 b7686af
Merge branch 'feature/tweet-image' into feature/publish-panel
johnwatkins0 62a69b7
Set autotweet status from REST field so it will update on save post
johnwatkins0 1978e54
Typo fix
johnwatkins0 4ad5577
Build external via wp-cli
johnwatkins0 02a7f94
Re-set api-fetch version
johnwatkins0 9d8b68f
Clarify comment
johnwatkins0 f12183e
Add webpack config option to watch script
johnwatkins0 5d1f416
Replace console log with proper error handling
johnwatkins0 c9d0665
Remove irrelevant comment
johnwatkins0 997855e
Make function name and comment more accurate
johnwatkins0 08750e3
Fix typo
johnwatkins0 0330f00
Merge branch 'feature/tweet-image' into feature/publish-panel
johnwatkins0 113a6e5
Convert functional components using hooks to class components
johnwatkins0 907722b
Fix spacing in tests file
johnwatkins0 7d50769
Build externals with separate NPM script
johnwatkins0 3ae0f68
Merge branch 'develop' of https://github.com/10up/autotweet into develop
johnwatkins0 301c3f1
Merge branch 'develop' into feature/publish-panel
johnwatkins0 ce1dd62
Improve warning for tweet length, and truncate tweets that are too long
johnwatkins0 16c3e37
Copy post status info as postpublish panel
johnwatkins0 223c5c9
Remove -js from autotweet pot file
johnwatkins0 dcdc50b
CSS style fixes
johnwatkins0 8579c54
Restore whitespace line
johnwatkins0 bb44262
Convert ellipsis to …
johnwatkins0 b86952c
Change orange to darkorange
johnwatkins0 76b6d61
Initialize state in componentDidMount
johnwatkins0 69c378b
Use for space separating two spans
johnwatkins0 9cd68de
Remove global when setting apiFetch on wp object
johnwatkins0 90eae3e
Restore ellipsis
johnwatkins0 8c01085
Merge branch 'develop' of https://github.com/10up/autotweet into develop
johnwatkins0 f10021a
Merge branch 'develop' into feature/publish-panel
johnwatkins0 db8cbac
Update includes/utils.php
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"presets": ["@babel/env", "@babel/preset-react"] | ||
"presets": ["@babel/env", "@babel/preset-react"], | ||
"plugins": [ | ||
[ | ||
"@wordpress/babel-plugin-makepot", | ||
{ | ||
"output": "languages/autotweet.pot", | ||
} | ||
], | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! When you tested before adding this logic, was the featured image not yet saved/set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, exactly. See https://core.trac.wordpress.org/ticket/45114 The REST_REQUEST solution is noted in that ticket.