Staging Sites: Move the database warning to the top in the sync modal - #105448
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
@ivan-ottinger and @Automattic/yolo I am adding this as a solution that we discussed in Linear but we can also review this in practice in this PR and make further modifications based on how this feels. This is pretty much open to suggestions 👀 |
ivan-ottinger
left a comment
There was a problem hiding this comment.
@ivan-ottinger and @Automattic/yolo I am adding this as a solution that we discussed in Linear but we can also review this in practice in this PR and make further modifications based on how this feels. This is pretty much open to suggestions 👀
Thank you for the updates, Kat! I think this solution works well. Even though the notice isn't displayed right next to the checkbox, it is clear to me it is related.
Curious to hear what others think.
Screen.Capture.on.2025-09-01.at.10-37-35.mp4
Screen.Capture.on.2025-09-01.at.10-40-21.mp4
|
One more thing: There are still cases when the notice isn't visible, e.g. when the tree is opened up quite a lot. 🤔 Screen.Capture.on.2025-09-01.at.10-49-24.mp4 |
I also don't remember this but let me take a look at what this might look like. I feel that when we put it either below or above, we will sort of run into the same problem that you are showing on your screenshot with the tree fully expanded. Let's try this approach and see 👀 I will add some screenshots in the comments once I am done experimenting with this |
There was a problem hiding this comment.
One more thing: There are still cases when the notice isn't visible, e.g. when the tree is opened up quite a lot. 🤔
I am not sure if we discussed this anywhere already, but what if we displayed the notice in the modal's footer - above the domain verification field?
![]()
I agree with Ivan and I think the warning makes more sense in the footer, that way we make sure it's visible even if the files tree is expanded.
It would be great if we can make the message shorter in that case, to avoid taking too much space. Specially when displaying the generic and WooCommerce warnings. Maybe we can merge the message into one.
Selecting this option will overwrite the site database ...
I also think that this option can be a bit confusing since the warning is far from the database checkbox.
|
@ivan-ottinger and @sejas - I have made now moved the notice to the footer. I had to change the positioning of the footer from
|
I am not sure this is necessarily a bad experience. The user still has a scrollbar in that case, no? And in any case, I think it is good that they might need to scroll to the very bottom to read carefully all the information they are selecting in the tree. Also, I am finding the footer blocking too much of the tree when it has |
I agree with @sejas here (also in the thanks to Kat! 😄) as I think hiding the action buttons when the tree becomes very tall is not a good UX, I would be interested in others' opinions, and the view of a designer too. An additional point of view by ChatGPT can be found here, the suggestion is to leave the buttons fixed at the bottom, it also mentions things like:
|
|
Okay if the majority is voting for the sticky buttons at the bottom, I am going to re-adjust the PR based on that 👍 |
Thanks for the review @gcsecsey ! I found one small edge case with spacing and WooCommerce warning so I am going to tweak it a bit more first and either merge or re-request the review. |
|
I made some changes again based on the feedback:
I tried other positioning e.g. Let me know what you think! |
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
ivan-ottinger
left a comment
There was a problem hiding this comment.
Great work, Kat! The result looks good to me. The warnings are now displayed right there without hiding from user. 👌🏼
I noticed only one edge-case issue when the screen is very short. In those circumstances the user may get into a trap when they cannot uncheck the Database checkbox:
Screen.Capture.on.2025-09-08.at.15-18-40.mp4
Maybe we could add a little bit more height there.
I checked this but I could only reproduce this when I resized the screen to a smaller size manually while the modal was already open. It is likely because the modal does not have space to expand anymore as it expands slightly automatically when one of the warnings opens. I tested a bit more on smaller screens such as ipads and the issue was not visible there:
I would consider this an edge case and would just leave as is. On another note, I believe that we should revise the design on this in the new dashboard. While these changes work, there is a bunch of CSS that we are doing for this and it seems to be too much for something that can be solved on the design level. What do you think @ivan-ottinger ? |
Thanks, Kat. Yeah, in my tests the screen was fairly small. So let's leave the things as they are.
Yes, that sounds good to me. I will create a separate task where we can discuss it with Marina. |
sejas
left a comment
There was a problem hiding this comment.
@katinthehatsite Great work! I debugged Ivan's case, and I agree it's a corner case. However, I suggest solving it, as I believe it's a symptom of unnecessary CSS rules.
|
@sejas I addressed all your comments. The functionality and look should be as they were before I added the suggestions for refactoring so I will proceed with merging. |








Closes DOTCOM-14185
Proposed Changes
This PR moves the warning for database changes and for WooCommerce above the FileTree component in the Sync modal so that user's attention is immediately drawn to it.
Without warnings
With regular warning and WooCommerce warning
Only with regular warning
Testing Instructions
/sites/{yourAtomicSite}Syncbutton and choosePull from StagingDatabasecheckboxSyncbutton and choosePush from StagingPre-merge Checklist