Skip to content

Commit 0179044

Browse files
committed
Real-time collaboration: Improve disconnect dialog (#75970)
* Show reconnect countdown in "Disconnected" dialog * Add "Retry now" link on disconnect dialog, expose reconnect through sync private APIs * Move retry countdown logic into separate hook file * Sync connection modal: Redesign with error-specific actions Redesign the sync disconnection modal to follow the standard Modal pattern with a header title, left-aligned body, and right-aligned footer buttons — replacing the previous centered splash layout. - Use Modal `title` prop instead of hidden header with large icon - Add "Back to {PostType}" button with dynamic post type label - Add manual "Retry" button alongside auto-retry countdown - Promote "Copy Post Content" to primary when Retry is hidden - Add `canRetry` flag to error messages: `authentication-failed` hides Retry (permissions can't be resolved by retrying) - Stabilize useEffect dependencies with primitive values - Replace hardcoded colors with `@wordpress/base-styles` tokens - Add unit tests for `getSyncErrorMessages` Co-Authored-By: Claude Opus 4.6 <[email protected]> * Show "Retrying..." message when a user initiates the action too, tweak retrying display time * Disable "Retry" clicks during an active retry --------- Co-authored-by: alecgeatches <[email protected]> Co-authored-by: dabowman <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: talldan <[email protected]> Co-authored-by: timiwahalahti <[email protected]> Co-authored-by: smithjw1 <[email protected]> Source: WordPress/gutenberg@d4e4afa
1 parent 436e026 commit 0179044

23 files changed

Lines changed: 641 additions & 532 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ This is a duplicate of the [WordPress/Gutenberg](https://github.com/WordPress/gu
55
You are currently viewing the version build from the source:
66

77
* Branch: `wp/7.0`
8-
* Commit: [WordPress/Gutenberg@`dbddb42003c`](https://github.com/WordPress/gutenberg/commit/dbddb42003cf34944b69e4c58725566a96bcddfa), [Browse files](https://github.com/WordPress/gutenberg/tree/dbddb42003cf34944b69e4c58725566a96bcddfa)
8+
* Commit: [WordPress/Gutenberg@`d4e4afa00ac`](https://github.com/WordPress/gutenberg/commit/d4e4afa00aca6b403a14863f5084a444cffec19e), [Browse files](https://github.com/WordPress/gutenberg/tree/d4e4afa00aca6b403a14863f5084a444cffec19e)
99

1010
> [!NOTE]
1111
> This readme file has replaced the original version included in the upstream repository.
1212
>
13-
> The [original `README.md` file](https://github.com/WordPress/gutenberg/blob/dbddb42003cf34944b69e4c58725566a96bcddfa/README.md) file for this commit can be found in the upstream repository.
13+
> The [original `README.md` file](https://github.com/WordPress/gutenberg/blob/d4e4afa00aca6b403a14863f5084a444cffec19e/README.md) file for this commit can be found in the upstream repository.
1414
1515
## Pupose
1616

build/modules/registry.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
'path' => 'interactivity/index',
1313
'asset' => 'interactivity/index.min.asset.php',
1414
),
15+
array(
16+
'id' => '@wordpress/latex-to-mathml',
17+
'path' => 'latex-to-mathml/index',
18+
'asset' => 'latex-to-mathml/index.min.asset.php',
19+
),
20+
array(
21+
'id' => '@wordpress/latex-to-mathml/loader',
22+
'path' => 'latex-to-mathml/loader',
23+
'asset' => 'latex-to-mathml/loader.min.asset.php',
24+
),
1525
array(
1626
'id' => '@wordpress/interactivity-router',
1727
'path' => 'interactivity-router/index',
@@ -23,14 +33,14 @@
2333
'asset' => 'interactivity-router/full-page.min.asset.php',
2434
),
2535
array(
26-
'id' => '@wordpress/latex-to-mathml',
27-
'path' => 'latex-to-mathml/index',
28-
'asset' => 'latex-to-mathml/index.min.asset.php',
36+
'id' => '@wordpress/abilities',
37+
'path' => 'abilities/index',
38+
'asset' => 'abilities/index.min.asset.php',
2939
),
3040
array(
31-
'id' => '@wordpress/latex-to-mathml/loader',
32-
'path' => 'latex-to-mathml/loader',
33-
'asset' => 'latex-to-mathml/loader.min.asset.php',
41+
'id' => '@wordpress/a11y',
42+
'path' => 'a11y/index',
43+
'asset' => 'a11y/index.min.asset.php',
3444
),
3545
array(
3646
'id' => '@wordpress/vips/worker',
@@ -42,16 +52,6 @@
4252
'path' => 'vips/loader',
4353
'asset' => 'vips/loader.min.asset.php',
4454
),
45-
array(
46-
'id' => '@wordpress/a11y',
47-
'path' => 'a11y/index',
48-
'asset' => 'a11y/index.min.asset.php',
49-
),
50-
array(
51-
'id' => '@wordpress/abilities',
52-
'path' => 'abilities/index',
53-
'asset' => 'abilities/index.min.asset.php',
54-
),
5555
array(
5656
'id' => '@wordpress/core-abilities',
5757
'path' => 'core-abilities/index',

build/scripts/core-data/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/scripts/core-data/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-private-apis', 'wp-rich-text', 'wp-sync', 'wp-undo-manager', 'wp-url', 'wp-warning'), 'version' => '0c143303cd44c5f33a31');
1+
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-private-apis', 'wp-rich-text', 'wp-sync', 'wp-undo-manager', 'wp-url', 'wp-warning'), 'version' => '1529188697e8d8f040c9');

build/scripts/core-data/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/scripts/core-data/index.min.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)