-
Notifications
You must be signed in to change notification settings - Fork 2k
Add notice for when the granual sync is disabled #105925
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
Add notice for when the granual sync is disabled #105925
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
| ) } | ||
| { shouldDisableGranularSync && ( | ||
| <VStack style={ { marginTop: '20px' } }> | ||
| <Notice density="medium"> |
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.
You will notice the different borders in two notice, please ignore them. I will fix the rounded borders on the WooCommerce notice in another PR
The sharper borders are the correct ones according to the design
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this bit, it can not be done without CSS because there is no disabled + checked style. There is Alternatively, we can hide these checkboxes completely and just tell the user that the full sync be performed to avoid confusion with checkboxes and just display the notice, what do you think? |
|
For the disabled checkbox, see: WordPress/gutenberg#59411 |
I see. Thanks for adding the context. I remembered there was something blocking us here, but couldn't ermember what it was.
Do you think it could be handled using inline CSS only? (without adding extra style file) If yes, I think that could work out well.
I think that if we go this route, we would need to also adjust the notices slightly, e.g. to either update the copy in the database warning (as it currently mentions the checkbox that would be hidden), or add extra line to the notice introduced in this PR. In other words, the approach with CSS adjustment seems cleaner to me. What do you think? |
Nice. If we go the route of adding custom CSS for now, we could then add one more maintenance task to remove the custom CSS once the Gutenberg PR is merged. |
…-notice-when-granular-sync-is-disabled
|
So I looked a bit more into this and this is the result of moving the notice up:
I think even if we mark the checkboxes as disable, this would not look great. I am wondering if instead of showing the files and folders like this with checkboxes, we might hide them completely for this case and add a text/notice about what will be included during the full sync + database warning into the same place. On the top, we could keep the notice about the granular sync being enabled soon. Although this might go further from the design and would result in the two different looks: one for when the File browser is enabled and one for when we hide it which might not be ideal from the UX perspective. What do you think @ivan-ottinger @Marinatsu ? |
Thanks for the exploration, Kat. I think that if we could update that notice message to include what happens during the full sync (as you suggest), I think that hiding the checkboxes completely could work. When it comes to the approach with disabling checkboxes, maybe the look would be better if that Database warning below was hidden as well (considering similar message would be included in the top notice already). Curious to hear what Marina thinks as well. |
|
We likely won't be adding the second notice in this manner so let's close this and we can open a different PR for handling this case once we recieve an updated design. |


Closes DOTCOM-14636
Proposed Changes
This PR adds a notice for when the granular
Syncis disabled (the one in blue on the screenshot):Testing Instructions
/v2/sites/{yourAtomicSiteSyncmodal (you can usePull from stagingoption)Pre-merge Checklist