Commit 0179044
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@d4e4afa1 parent 436e026 commit 0179044
23 files changed
Lines changed: 641 additions & 532 deletions
File tree
- build
- modules
- scripts
- core-data
- editor
- sync
- styles
- editor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| |||
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments