-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Quote: Rename the align attribute to textAlign #42960
Merged
Merged
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
6edad09
Quote: Rename align attribute to textAlign
carolinan 45a9863
Update deprecated.js
carolinan 746c4fb
Update core__quote__deprecated-2.serialized.html
carolinan 745786e
Merge branch 'trunk' into update/rename-align-attribute
carolinan 976d99f
Add alignments for testing
carolinan 67d16e7
Update fixtures, add align block support to the deprecation
carolinan 11ad22b
Remove left/right/center alignments
carolinan 9112eda
Copy save function to deprecation v4. Combine migrations in deprecati…
carolinan 2def1cc
Merge branch 'trunk' into update/rename-align-attribute
carolinan ef50128
Merge branch 'trunk' into update/rename-align-attribute
carolinan 5fd2a25
Merge branch 'trunk' into update/rename-align-attribute
carolinan a8057ff
Merge branch 'trunk' into update/rename-align-attribute
carolinan 757a999
Merge branch 'trunk' into update/rename-align-attribute
carolinan beb1c9d
Update deprecated.js
carolinan 46a7b01
Merge branch 'trunk' into update/rename-align-attribute
carolinan 686ead6
Merge branch 'trunk' into update/rename-align-attribute
carolinan 6367fe6
Merge branch 'trunk' into update/rename-align-attribute
carolinan 215d6fc
build docs
ntsekouras 51e1813
Merge branch 'trunk' into update/rename-align-attribute
carolinan 547539d
Try removing compose, add isEligible
carolinan 420beba
Update deprecated.js
carolinan 46940c5
Update transforms.native.js.snap
carolinan 2aa7d2e
Update index.native.js
carolinan ac28077
Merge branch 'trunk' into update/rename-align-attribute
carolinan fa4566b
Merge branch 'trunk' into update/rename-align-attribute
carolinan f2f96c5
fix: Paragraphs inherit parent text alignment (#52293)
dcalhoun 48ef842
Merge branch 'trunk' into update/rename-align-attribute
carolinan 844482d
Merge branch 'trunk' into update/rename-align-attribute
carolinan e1d245a
Fixture for version with align attribute
carolinan 54188a1
Revert the block support change
carolinan 92a9b73
Update supoports in the deprecation
carolinan f3ef6e7
Merge branch 'trunk' into update/rename-align-attribute
carolinan 8434f65
Try to fix the migration
carolinan c45e17a
Tests: Remove quote from currentlySupportedBlocks in isContainerRelated
carolinan 6509edd
Merge branch 'trunk' into update/rename-align-attribute
carolinan ecd78fc
Update migration, apply changes requested during review.
carolinan e280bac
Merge branch 'trunk' into update/rename-align-attribute
carolinan f6a6f48
Merge branch 'trunk' into update/rename-align-attribute
carolinan 49d93d5
Merge branch 'trunk' into update/rename-align-attribute
carolinan 79d760c
Merge branch 'trunk' into update/rename-align-attribute
carolinan 57b74b7
Merge branch 'trunk' into update/rename-align-attribute
carolinan 7b1be6f
Merge branch 'trunk' into update/rename-align-attribute
carolinan 6245a17
Merge branch 'trunk' into update/rename-align-attribute
carolinan 1b76aba
Merge branch 'trunk' into update/rename-align-attribute
carolinan 7eae1e8
Merge branch 'trunk' into update/rename-align-attribute
carolinan 737dda7
Merge branch 'trunk' into update/rename-align-attribute
carolinan 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
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
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
2 changes: 1 addition & 1 deletion
2
test/integration/fixtures/blocks/core__quote__deprecated-2.serialized.html
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
5 changes: 5 additions & 0 deletions
5
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.html
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- wp:quote {"align":"right"} --> | ||
<blockquote class="wp-block-quote has-text-align-right"><!-- wp:paragraph --> | ||
<p>Quote with the align attribute. Example: {"align":"right"}</p> | ||
<!-- /wp:paragraph --></blockquote> | ||
<!-- /wp:quote --> |
22 changes: 22 additions & 0 deletions
22
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.json
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"name": "core/quote", | ||
"isValid": true, | ||
"attributes": { | ||
"value": "", | ||
"citation": "", | ||
"textAlign": "right" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"name": "core/paragraph", | ||
"isValid": true, | ||
"attributes": { | ||
"content": "Quote with the align attribute. Example: {\"align\":\"right\"}", | ||
"dropCap": false | ||
}, | ||
"innerBlocks": [] | ||
} | ||
] | ||
} | ||
] |
25 changes: 25 additions & 0 deletions
25
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.parsed.json
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"blockName": "core/quote", | ||
"attrs": { | ||
"align": "right" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"blockName": "core/paragraph", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n<p>Quote with the align attribute. Example: {\"align\":\"right\"}</p>\n", | ||
"innerContent": [ | ||
"\n<p>Quote with the align attribute. Example: {\"align\":\"right\"}</p>\n" | ||
] | ||
} | ||
], | ||
"innerHTML": "\n<blockquote class=\"wp-block-quote has-text-align-right\"></blockquote>\n", | ||
"innerContent": [ | ||
"\n<blockquote class=\"wp-block-quote has-text-align-right\">", | ||
null, | ||
"</blockquote>\n" | ||
] | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.serialized.html
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!-- wp:quote {"textAlign":"right"} --> | ||
<blockquote class="wp-block-quote has-text-align-right"><!-- wp:paragraph --> | ||
<p>Quote with the align attribute. Example: {"align":"right"}</p> | ||
<!-- /wp:paragraph --></blockquote> | ||
<!-- /wp:quote --> |
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.
@carolinan, thinking on this more, I realised we may need to co-ordinate releases to ensure centred quote blocks don't break for app users. Would you be able to hold off from merging until I co-ordinate a release plan with the mobile team? I'll update here when we have something in place. Thank you!
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.
Of course.
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.
@carolinan, thank you for your patience here! The earliest app release we'd be able to get this into is
24.4
, which is set to be released to users on Monday, 18th March. With that in mind, could you merge this after the17.8
Gutenberg release is cut this coming Wednesday? If this is included in the17.9
release (set to be released on March 13th), it'd minimise the number of days it's not available for app users.From my testing, I confirmed that having the change in place on the web but not in the app won't break the site’s content. The only issue I found is that the app's in-editor preview won’t reflect whether a Quote block is centred or right-aligned, which might be confusing. However, this will only be an issue for blocks that are first saved on the web then opened in the app. The in-app alignment buttons will continue to work and correct alignment will still be visible on the site’s front-end.
With the above in mind, we think minimising the number of days that the change is available on one platform but not another is the best option. Let me know if you're okay with delaying merge until after this Wednesday, for the
17.9
release. Thanks!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.
Yes, it can wait.
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.
@carolinan, just to follow up, if you're able to merge this before this coming Thursday, we'll then work to get it into the app's
24.4
release. Thanks again for all your help here!