Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
0a34133
Update Gutenberg
koke Dec 12, 2019
05c245f
Force SPT on demo project for testing. Revert before merge!
koke Dec 12, 2019
eee80b3
Update Gutenberg
koke Dec 13, 2019
0bb3fbe
Update Gutenberg
koke Dec 13, 2019
7bc9ddc
Update Gutenberg
koke Dec 18, 2019
3cd8171
Update Gutenberg and react-native-modal
koke Dec 19, 2019
1716a14
Send extra original url parameter to image full screen preview (iOS …
etoledom Dec 19, 2019
826a564
Update gutenberg ref
etoledom Dec 19, 2019
e7a512c
Update gutenberg ref
etoledom Dec 19, 2019
128d4eb
Update iOS sample app with bridge changes
etoledom Dec 19, 2019
25491dc
Handle empty media selection for file not found case
mkevins Dec 20, 2019
b829f9f
Add very basic "add gallery block" UI test
mkevins Dec 20, 2019
16729d2
Update Gutenberg ref
Dec 23, 2019
580c736
Update Gutenberg ref
Dec 23, 2019
6123c32
Update Gutenberg
koke Dec 23, 2019
d799176
Update Gutenberg
koke Dec 27, 2019
72bfcc3
Merge branch 'develop' into add/spt-template-preview
koke Dec 27, 2019
6f4eb5e
Fix bad merge
koke Dec 27, 2019
0309945
Update Gutenberg
koke Dec 27, 2019
d96af1b
Revert testing changes to src/index.js
koke Dec 27, 2019
c234a5b
Revert update to react-native-modal
koke Dec 27, 2019
be8f445
Update Gutenberg
koke Dec 27, 2019
447afb4
Update Gutenberg
koke Dec 27, 2019
390f020
Update Gutenberg
koke Dec 27, 2019
cba7989
Update Gutenberg ref
Dec 31, 2019
758cc4f
Update Gutenberg ref
Jan 3, 2020
26991db
Update Gutenberg ref
Jan 3, 2020
162116f
Update Gutenberg ref
Jan 3, 2020
4c10cb7
Move DependencyGraph.js so the original file is not left over after the
mchowning Jan 3, 2020
9fe5d8c
Merge branch 'develop' into fix/file-not-found-exception-media-iob-crash
mkevins Jan 7, 2020
9e8196a
Style fixes after navigation merge (#1682)
lukewalczak Jan 7, 2020
884e9ab
Merge pull request #1709 from wordpress-mobile/fix/file-not-found-exc…
malinajirka Jan 7, 2020
df27699
Update Gutenberg ref
Jan 7, 2020
41f9730
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Jan 7, 2020
e709bb3
Merge pull request #1720 from wordpress-mobile/feature/page-template-…
Jan 7, 2020
9ba1ee9
Merge pull request #1732 from wordpress-mobile/yarn_version_cleanup
mchowning Jan 7, 2020
63ed775
Merge branch 'develop' into add/gallery-ui-test
mkevins Jan 8, 2020
4fa74f1
Remove commented code from gallery UI test
mkevins Jan 8, 2020
a461c4b
Merge pull request #1707 from wordpress-mobile/add/gallery-ui-test
mkevins Jan 8, 2020
9f024fd
Merge branch 'develop' into add/spt-template-preview
koke Jan 8, 2020
445d6e3
Update Gutenberg
koke Jan 8, 2020
6344967
Fix - Media Text: media acts like video even if I upload jpg (#1756)
pinarol Jan 9, 2020
28b20a7
Update gutenberg reference
mkevins Jan 10, 2020
4131612
Update gutenberg reference
mkevins Jan 10, 2020
db953c0
Update gutenberg reference
mkevins Jan 10, 2020
690939c
Update gutenberg reference
mkevins Jan 10, 2020
4c5e928
Update gutenberg reference
mkevins Jan 10, 2020
05e6aa4
Merge with spt-template-preview
Jan 10, 2020
3b3ba5a
Update Gutenberg ref
Jan 10, 2020
b28640c
Update gutenberg reference
mkevins Jan 13, 2020
bbebaf1
Update gutenberg reference
mkevins Jan 13, 2020
fd80f48
Update gutenberg reference
mkevins Jan 13, 2020
4b0efec
Update Gutenberg
koke Jan 13, 2020
4a62b9c
Adds missing DOMParser implementation
koke Jan 13, 2020
92f1baf
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Jan 13, 2020
5f99aa6
Point gutenberg ref to latest update of rnmobile/release-v1.20.0-to-m…
Tug Jan 13, 2020
0e05a8d
Adds missing DOMParser implementation
koke Jan 13, 2020
5c53da2
Update gutenberg ref
etoledom Jan 13, 2020
753508d
Merge remote-tracking branch 'origin/develop' into issue/pass-origina…
etoledom Jan 13, 2020
2425113
Add sample Shortcode block to initial html
chipsnyder Jan 13, 2020
3ee19fb
Update gutenberg reference for Shortcode support
chipsnyder Jan 13, 2020
a985305
Add sample Shortcode block to initial html
chipsnyder Jan 13, 2020
d657ec8
Update gutenberg reference for Shortcode support
chipsnyder Jan 13, 2020
e95e14a
Merge branch 'issue/690-shortcode' of github.com:chipsnyder/gutenberg…
chipsnyder Jan 13, 2020
397397b
Add comment on DOMParser
koke Jan 14, 2020
c492c2d
Update Aztec version to 1.15.0
SergioEstevao Jan 14, 2020
cbb2d0b
Update aztec version to 1.15.0
SergioEstevao Jan 14, 2020
7627872
Modify XPath methods to fix failing mobile UI tests
mkevins Jan 14, 2020
65f62ad
Merge branch 'update-master-20200113' of github.com:wordpress-mobile/…
mkevins Jan 14, 2020
fc03918
Merge pull request #1771 from wordpress-mobile/update-master-20200113
Tug Jan 14, 2020
10a1c04
Update gutenberg reference
mkevins Jan 14, 2020
c5933ed
Merge branch 'develop' into fix/gallery-style-issues
mkevins Jan 14, 2020
198aa29
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Jan 14, 2020
5d4ce57
Merge pull request #1766 from wordpress-mobile/fix/gallery-style-issues
mkevins Jan 14, 2020
0d437cf
Update gutenberg ref
mchowning Jan 14, 2020
e6e3936
Merge branch 'develop' into issue/update_aztec_to_1_15.0
SergioEstevao Jan 14, 2020
497d84e
Update gutenberg ref
Tug Jan 14, 2020
3a71bb4
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Jan 14, 2020
6afdfe0
Update Gutenberg commit reference
chipsnyder Jan 14, 2020
49f605f
Merge pull request #1770 from wordpress-mobile/master-to-develop-post…
Tug Jan 14, 2020
af32139
Update Gutenberg
koke Jan 15, 2020
2a74200
Merge branch 'develop' into add/spt-template-preview
koke Jan 15, 2020
a5a6f05
Merge pull request #1676 from wordpress-mobile/add/spt-template-preview
koke Jan 15, 2020
fb7c762
Update GB version.
SergioEstevao Jan 15, 2020
7f4a8d0
Update Gutenberg
chipsnyder Jan 15, 2020
f5d47d9
Merge remote-tracking branch 'upstream/develop' into issue/690-shortcode
chipsnyder Jan 15, 2020
30f518d
Update Release Notes for Shortcode block
chipsnyder Jan 15, 2020
6bdbdd7
Update GB to point to master after merge
SergioEstevao Jan 15, 2020
499c7eb
Merge branch 'develop' into issue/update_aztec_to_1_15.0
SergioEstevao Jan 15, 2020
83d1753
Merge pull request #1778 from wordpress-mobile/issue/fix_focus_issue
SergioEstevao Jan 15, 2020
eac83ca
Update Gutenberg ref
Jan 15, 2020
e5ca0bd
Merge with develop
Jan 15, 2020
cd3323d
Update Gutenberg ref
Jan 15, 2020
a88e9ea
Update Gutenberg ref
Jan 15, 2020
977c00a
Update gutenberg
chipsnyder Jan 15, 2020
edff0cd
Merge remote-tracking branch 'upstream/develop' into issue/690-shortcode
chipsnyder Jan 15, 2020
55bed0c
Merge pull request #1774 from chipsnyder/issue/690-shortcode
Jan 15, 2020
22b6a4e
Update gutenberg reference
mkevins Jan 16, 2020
d847cda
Merge branch 'develop' into fix/select-control-label
mkevins Jan 16, 2020
665a548
Merge pull request #1765 from wordpress-mobile/fix/select-control-label
mkevins Jan 16, 2020
6befc4d
Force padding to 0,0,0,0 on AztecText instance when the view is created
maxme Nov 8, 2019
bda941d
Update metrics for padding and indentation in text blocks.
SergioEstevao Nov 19, 2019
30ec5de
Update Aztec version and set heading_vertical_padding to 0dp for Gute…
maxme Nov 20, 2019
08d89c9
Stop applying default padding in ReactAztecTextShadowNode
mchowning Nov 26, 2019
efc3f50
Remove unneeded/duplicate css variables
mchowning Nov 26, 2019
6dbff28
Remove unused private fields in ReactAztecTextShadowNode
mchowning Jan 10, 2020
2bb0d7b
Create and use fork of ReactTextInputShadow class
mchowning Jan 10, 2020
74a7543
Override construction of dummy EditText in fork of ReactTextInputShad…
mchowning Jan 10, 2020
9ce3efb
Update release notes
mchowning Jan 13, 2020
d4f990c
Update gutenberg ref
mchowning Jan 16, 2020
5b7b896
Merge pull request #1560 from wordpress-mobile/issue/992-remove-extra…
mchowning Jan 16, 2020
f418756
Update Gutenberg ref
Jan 20, 2020
9bc0efc
Update Gutenberg ref
Jan 20, 2020
86e4f7f
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Jan 20, 2020
adda49a
Add @wordpress/warning package symlink (#1784)
lukewalczak Jan 20, 2020
6b236d1
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Jan 20, 2020
aef4964
Update gutenberg ref
etoledom Jan 20, 2020
40ee1e4
Merge remote-tracking branch 'origin/develop' into issue/pass-origina…
etoledom Jan 20, 2020
a33f413
Merge pull request #1730 from wordpress-mobile/add/spt-apply-layout
Jan 20, 2020
cc5e3f0
Update JS Bundles
etoledom Jan 20, 2020
f4a84f4
Merge remote-tracking branch 'origin/develop' into issue/pass-origina…
etoledom Jan 20, 2020
aafa418
Update gutenberg ref
etoledom Jan 20, 2020
38c51b1
trigger ci
etoledom Jan 20, 2020
ac8d2bc
Revert "trigger ci"
etoledom Jan 20, 2020
a722048
Merge pull request #1700 from wordpress-mobile/issue/pass-original-ur…
etoledom Jan 20, 2020
d48fb85
v1.21.0
etoledom Jan 20, 2020
7d66588
Update Aztec to official release
SergioEstevao Jan 21, 2020
85d1141
Merge pull request #1775 from wordpress-mobile/issue/update_aztec_to_…
SergioEstevao Jan 21, 2020
047a8f4
Hardcode Android RN version in react-native-gutenberg-bridge and
mchowning Jan 20, 2020
63c73b2
[iOS] Remove xcworkspace.
etoledom Jan 21, 2020
bc83e25
Merge pull request #1797 from wordpress-mobile/issue/remove-ios-xcwor…
etoledom Jan 22, 2020
f76985d
Merge remote-tracking branch 'origin/master' into release/1.21.0
etoledom Jan 22, 2020
3883992
Update release notes for v1.21.0
etoledom Jan 22, 2020
231511a
Update gutenberg ref
etoledom Jan 22, 2020
dc623b4
Update gutenberg ref
etoledom Jan 22, 2020
4ae5774
Merge pull request #1801 from wordpress-mobile/issue/fix-crash-on-lis…
etoledom Jan 22, 2020
5ef53f8
Update bundles
etoledom Jan 22, 2020
1c1fc51
Update gutenberg reference
mkevins Jan 22, 2020
b8e0f26
Update gutenberg reference
mkevins Jan 23, 2020
1cb2961
Merge pull request #1804 from wordpress-mobile/fix/disable-gallery-si…
mkevins Jan 23, 2020
40f4c19
Update bundles
etoledom Jan 23, 2020
259d4c7
Update RELEASE-NOTES.txt, padding around text blocks was changed in b…
maxme Jan 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
1.21.0
------
* Reduced padding around text on Rich Text based blocks.
* [Android] Improved stability on very long posts.

1.20.0
------
* Fix bug where image placeholders would sometimes not be shown
* Fix crash on undo
* Style fixes on the navigation UI
* [iOS] Fix focus issue
* New block: Shortcode. You can now create and edit Shortcode blocks in the editor.

1.19.0
------
Expand Down
56 changes: 56 additions & 0 deletions __device-tests__/gutenberg-editor-gallery.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* @format
* */

/**
* Internal dependencies
*/
import EditorPage from './pages/editor-page';
import {
setupDriver,
isLocalEnvironment,
stopDriver,
} from './helpers/utils';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;

describe( 'Gutenberg Editor Gallery Block tests', () => {
let driver;
let editorPage;
let allPassed = true;

// Use reporter for setting status for saucelabs Job
if ( ! isLocalEnvironment() ) {
const reporter = {
specDone: async ( result ) => {
allPassed = allPassed && result.status !== 'failed';
},
};

jasmine.getEnv().addReporter( reporter );
}

beforeAll( async () => {
driver = await setupDriver();
editorPage = new EditorPage( driver );
} );

it( 'should be able to see visual editor', async () => {
await expect( editorPage.getBlockList() ).resolves.toBe( true );
} );

it( 'should be able to add a gallery block', async () => {
await editorPage.addNewGalleryBlock();
const galleryBlock = await editorPage.getGalleryBlockAtPosition( 1 );

expect( galleryBlock ).toBeTruthy();
await editorPage.removeGalleryBlockAtPosition( 1 );
} );

afterAll( async () => {
if ( ! isLocalEnvironment() ) {
driver.sauceJobStatus( allPassed );
}
await stopDriver( driver );
} );
} );
29 changes: 21 additions & 8 deletions __device-tests__/pages/editor-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class EditorPage {
listBlockName = 'List';
headingBlockName = 'Heading';
imageBlockName = 'Image';
galleryBlockName = 'Gallery';

// This is needed to adapt to changes in the way accessibility ids are being
// assigned after migrating to AndroidX and React Native 0.60. See:
Expand Down Expand Up @@ -47,7 +48,7 @@ export default class EditorPage {
// and accessibilityId attributes on this object and selects the block
// position uses one based numbering
async getBlockAtPosition( position: number, blockName: string, options: { autoscroll: boolean } = { autoscroll: false } ) {
const blockLocator = `//*[contains(@${ this.accessibilityIdXPathAttrib }, "${ blockName } Block. Row ${ position }.")]`;
const blockLocator = `//*[contains(@${ this.accessibilityIdXPathAttrib }, "${ blockName } Block. Row ${ position }")]`;
const elements = await this.driver.elementsByXPath( blockLocator );
const lastElementFound = elements[ elements.length - 1 ];
if ( elements.length === 0 && options.autoscroll ) {
Expand Down Expand Up @@ -211,14 +212,11 @@ export default class EditorPage {
throw Error( `No Block at position ${ position }` );
}

const parentId = `${ blockName } Block. Row ${ position }.`;
const parentLocator = `//*[contains(@${ this.accessibilityIdXPathAttrib }, "${ parentId }")]`;
let removeBlockLocator = `${ parentLocator }`;
removeBlockLocator += isAndroid() ? '//*' : '//XCUIElementTypeButton';
let removeButtonIdentifier = `Remove block at row ${ position }`;
const buttonElementName = isAndroid() ? '//*' : '//XCUIElementTypeButton';
const removeButtonIdentifier = `Remove block at row ${ position }`;
const removeBlockLocator = `${ buttonElementName }[contains(@${ this.accessibilityIdXPathAttrib }, "${ removeButtonIdentifier }")]`;

if ( isAndroid() ) {
removeButtonIdentifier += `, Double tap to remove the block${ this.accessibilityIdSuffix }`;
const block = await this.getBlockAtPosition( position, blockName );
let checkList = await this.driver.elementsByXPath( removeBlockLocator );
while ( checkList.length === 0 ) {
Expand All @@ -227,7 +225,6 @@ export default class EditorPage {
}
}

removeBlockLocator += `[@${ this.accessibilityIdXPathAttrib }="${ removeButtonIdentifier }"]`;
const removeButton = await this.driver.elementByXPath( removeBlockLocator );
await removeButton.click();
}
Expand Down Expand Up @@ -381,6 +378,22 @@ export default class EditorPage {
return await this.removeBlockAtPosition( position, this.imageBlockName );
}

// =========================
// Gallery Block functions
// =========================

async addNewGalleryBlock() {
await this.addNewBlock( this.galleryBlockName );
}

async getGalleryBlockAtPosition( position: number ) {
return this.getBlockAtPosition( position, this.galleryBlockName );
}

async removeGalleryBlockAtPosition( position: number ) {
return await this.removeBlockAtPosition( position, this.galleryBlockName );
}

// =========================
// Heading Block functions
// =========================
Expand Down
1,905 changes: 955 additions & 950 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions bundle/android/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- translators: accessibility text. Inform about current value. %1$s: Control label %2$s: Current value. -->
<string name="gutenberg_native_1_s_current_value_is_2_s" tools:ignore="UnusedResources">%1$s. Current value is %2$s</string>
<string name="gutenberg_native_add_a_description" tools:ignore="UnusedResources">Add a description</string>
<string name="gutenberg_native_add_a_shortcode" tools:ignore="UnusedResources">Add a shortcode…</string>
<string name="gutenberg_native_add_annotation" tools:ignore="UnusedResources">Add annotation</string>
<string name="gutenberg_native_add_block_here" tools:ignore="UnusedResources">ADD BLOCK HERE</string>
<string name="gutenberg_native_add_image" tools:ignore="UnusedResources">ADD IMAGE</string>
Expand Down Expand Up @@ -30,10 +31,12 @@
<string name="gutenberg_native_double_tap_to_select" tools:ignore="UnusedResources">Double tap to select</string>
<string name="gutenberg_native_double_tap_to_select_a_video" tools:ignore="UnusedResources">Double tap to select a video</string>
<string name="gutenberg_native_double_tap_to_select_an_image" tools:ignore="UnusedResources">Double tap to select an image</string>
<string name="gutenberg_native_double_tap_to_select_layout" tools:ignore="UnusedResources">Double tap to select layout</string>
<!-- translators: accessibility text (hint for switches) -->
<string name="gutenberg_native_double_tap_to_toggle_setting" tools:ignore="UnusedResources">Double tap to toggle setting</string>
<string name="gutenberg_native_double_tap_to_undo_last_change" tools:ignore="UnusedResources">Double tap to undo last change</string>
<string name="gutenberg_native_empty" tools:ignore="UnusedResources">Empty</string>
<string name="gutenberg_native_edit_media" tools:ignore="UnusedResources">Edit media</string>
<string name="gutenberg_native_edit_video" tools:ignore="UnusedResources">Edit video</string>
<string name="gutenberg_native_failed_to_insert_media_please_tap_for_options" tools:ignore="UnusedResources">Failed to insert media.\nPlease tap for options.</string>
<!-- translators: accessibility text. %s: gallery caption. -->
<string name="gutenberg_native_gallery_caption_s" tools:ignore="UnusedResources">Gallery caption. %s</string>
Expand All @@ -42,10 +45,6 @@
<string name="gutenberg_native_hide_keyboard" tools:ignore="UnusedResources">Hide keyboard</string>
<!-- translators: accessibility text. %s: image caption. -->
<string name="gutenberg_native_image_caption_s" tools:ignore="UnusedResources">Image caption. %s</string>
<!-- translators: accessibility text. 1: heading level. 2: heading content. -->
<string name="gutenberg_native_level_1_s_2_s" tools:ignore="UnusedResources">Level %1$s. %2$s</string>
<!-- translators: accessibility text. %s: heading level. -->
<string name="gutenberg_native_level_s_empty" tools:ignore="UnusedResources">Level %s. Empty.</string>
<string name="gutenberg_native_link_inserted" tools:ignore="UnusedResources">Link inserted</string>
<string name="gutenberg_native_link_text" tools:ignore="UnusedResources">Link text</string>
<string name="gutenberg_native_move_block_down" tools:ignore="UnusedResources">Move block down</string>
Expand Down Expand Up @@ -77,9 +76,6 @@
<string name="gutenberg_native_remove_block_at_row_s" tools:ignore="UnusedResources">Remove block at row %s</string>
<string name="gutenberg_native_remove_image" tools:ignore="UnusedResources">Remove Image</string>
<string name="gutenberg_native_reset_block" tools:ignore="UnusedResources">Reset Block</string>
<string name="gutenberg_native_row_d" tools:ignore="UnusedResources">Row %d.</string>
<!-- translators: accessibility text. %s: block name. -->
<string name="gutenberg_native_s_block" tools:ignore="UnusedResources">%s Block</string>
<!-- translators: accessibility text for the media block empty state. %s: media type -->
<string name="gutenberg_native_s_block_empty" tools:ignore="UnusedResources">%s block. Empty</string>
<!-- translators: accessibility text for blocks with invalid content. %d: localized block title -->
Expand All @@ -100,6 +96,8 @@
<string name="gutenberg_native_title" tools:ignore="UnusedResources">Title:</string>
<string name="gutenberg_native_translate" tools:ignore="UnusedResources">Translate</string>
<string name="gutenberg_native_ungroup" tools:ignore="UnusedResources">Ungroup</string>
<!-- translators: accessibility text. %s: video caption. -->
<string name="gutenberg_native_video_caption_s" tools:ignore="UnusedResources">Video caption. %s</string>
<string name="gutenberg_native_we_are_working_hard_to_add_more_blocks_with_each_release_in_the_m" tools:ignore="UnusedResources">We are working hard to add more blocks with each release. In the meantime, you can also edit this post on the web.</string>
<string name="gutenberg_native_wordpress_media_library" tools:ignore="UnusedResources">WordPress Media Library</string>
</resources>
Loading