Automattic / wc-calypso-bridge

20 stars 4 forks source link

[LYS] Implement dual-mode private link #1499

Closed ilyasfoo closed 2 weeks ago

ilyasfoo commented 1 month ago

Issue description

P2: pfwcF5-Cs-p2

Both WPCOM's and LYS private link should work independently.

For WPCOM share link to be usable in LYS coming soon mode, we could use this code as an example.

Since WPCOM's coming soon is bypassed in this issue, we don't need to implement additional check for LYS's private link.

LYS' site visibility settings (WooCommerce > Settings > Site visibility):

Image

WPCOM's site privacy (https://wordpress.com/settings/general/SITE_URL)

Image

Acceptance criteria

  1. When LYS private link is turned on, LYS private link should bypass coming soon mode.
  2. When WPCOM private link is turned on, WPCOM private link should bypass coming soon mode.