Commit df588c1a3d0 for woocommerce

commit df588c1a3d0bda3269086704ffcb69b0c9ccca22
Author: AnnaMag <AnnaMag@users.noreply.github.com>
Date:   Fri Dec 4 16:59:45 2026 +0100

    Say Visible products show once the store is live in coming soon mode (#71843)

    * Say Visible products show once the store is live in coming soon mode

    In coming soon mode, AI shopping warned that AI assistants can't find the
    products, while Product visibility right under it said Visible: 1. The
    Visible card keeps its count, which matches the Products list it links to,
    and adds "Visible once your store is live".

    * Keep the View products links level when Visible has a note

    In coming soon mode the note under the Visible count pushed its link a line below the other two.

diff --git a/plugins/woocommerce/changelog/wooai-1933-visibility-coming-soon b/plugins/woocommerce/changelog/wooai-1933-visibility-coming-soon
new file mode 100644
index 00000000000..3a61274fad9
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooai-1933-visibility-coming-soon
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+Comment: Note on AI shopping product visibility in coming soon mode, for the unreleased AI tools tab.
+
diff --git a/plugins/woocommerce/client/admin/client/sales-readiness/ai-shopping.scss b/plugins/woocommerce/client/admin/client/sales-readiness/ai-shopping.scss
index 7fb6e7b0022..cefa932958b 100644
--- a/plugins/woocommerce/client/admin/client/sales-readiness/ai-shopping.scss
+++ b/plugins/woocommerce/client/admin/client/sales-readiness/ai-shopping.scss
@@ -122,6 +122,11 @@ body.woocommerce_page_wc-settings:has(.wc-ai-shopping) {
 		color: var(--wpds-color-foreground-content-neutral);
 	}

+	// Links share the bottom row when only one column has a note.
+	&__link {
+		margin-block-start: auto;
+	}
+
 	&__info {
 		display: inline-flex;
 		align-items: center;
diff --git a/plugins/woocommerce/client/admin/client/sales-readiness/components/product-visibility.tsx b/plugins/woocommerce/client/admin/client/sales-readiness/components/product-visibility.tsx
index afdd30b7a02..8ca3baf4249 100644
--- a/plugins/woocommerce/client/admin/client/sales-readiness/components/product-visibility.tsx
+++ b/plugins/woocommerce/client/admin/client/sales-readiness/components/product-visibility.tsx
@@ -71,7 +71,18 @@ export const ProductVisibility = ( {
 						>
 							{ count.count }
 						</Text>
-						<Text variant="body-sm">
+						{ count.note && (
+							<Text
+								variant="body-sm"
+								className="wc-sales-readiness__muted"
+							>
+								{ count.note }
+							</Text>
+						) }
+						<Text
+							variant="body-sm"
+							className="wc-ai-shopping-stats__link"
+						>
 							<Link
 								href={ safeHref( count.link.href ) }
 								onClick={ () =>
diff --git a/plugins/woocommerce/client/admin/client/sales-readiness/test/ai-shopping.test.tsx b/plugins/woocommerce/client/admin/client/sales-readiness/test/ai-shopping.test.tsx
index 9bea2ca4f99..389f6664a0a 100644
--- a/plugins/woocommerce/client/admin/client/sales-readiness/test/ai-shopping.test.tsx
+++ b/plugins/woocommerce/client/admin/client/sales-readiness/test/ai-shopping.test.tsx
@@ -88,6 +88,7 @@ const view = ( fields: Partial< ShoppingView > = {} ): ShoppingView => ( {
 				id: 'available',
 				label: 'Visible',
 				count: '8,400',
+				note: '',
 				tip: '',
 				tip_label: '',
 				link: {
@@ -99,6 +100,7 @@ const view = ( fields: Partial< ShoppingView > = {} ): ShoppingView => ( {
 				id: 'hidden',
 				label: 'Hidden',
 				count: '2',
+				note: '',
 				tip: 'Products set to Hidden in Catalog visibility.',
 				tip_label: 'More information about hidden products',
 				link: {
@@ -346,6 +348,26 @@ describe( 'AiShopping', () => {
 		).toBeInTheDocument();
 	} );

+	it( 'shows a count’s note under it, as in coming soon mode', () => {
+		const [ visible, ...rest ] = view().visibility.counts;
+		renderPage(
+			view( {
+				visibility: {
+					...view().visibility,
+					counts: [
+						{ ...visible, note: 'Visible once your store is live' },
+						...rest,
+					],
+				},
+			} )
+		);
+
+		expect( screen.getByText( '8,400' ) ).toBeInTheDocument();
+		expect(
+			screen.getByText( 'Visible once your store is live' )
+		).toBeInTheDocument();
+	} );
+
 	it( 'opens a count’s popover with its text and no heading', async () => {
 		renderPage( view() );

diff --git a/plugins/woocommerce/client/admin/client/sales-readiness/types.ts b/plugins/woocommerce/client/admin/client/sales-readiness/types.ts
index 9ce03079ca9..3303af1dad1 100644
--- a/plugins/woocommerce/client/admin/client/sales-readiness/types.ts
+++ b/plugins/woocommerce/client/admin/client/sales-readiness/types.ts
@@ -164,6 +164,8 @@ export interface ShoppingCount {
 	label: string;
 	/** Already formatted for the store's locale. */
 	count: string;
+	/** Shown under the count, or ''. */
+	note: string;
 	/** What the count means, shown in a popover, or ''. */
 	tip: string;
 	/** The accessible name of the popover's button. */
diff --git a/plugins/woocommerce/src/Internal/AgentReadiness/AgenticCommerceSettingsPage.php b/plugins/woocommerce/src/Internal/AgentReadiness/AgenticCommerceSettingsPage.php
index 41693bc6509..5ebda9dcdbe 100644
--- a/plugins/woocommerce/src/Internal/AgentReadiness/AgenticCommerceSettingsPage.php
+++ b/plugins/woocommerce/src/Internal/AgentReadiness/AgenticCommerceSettingsPage.php
@@ -221,6 +221,7 @@ class AgenticCommerceSettingsPage extends \WC_Settings_Page {
 		$enabled  = UcpUtils::is_enabled();
 		$failing  = $this->store_conditions->failing_required( $checks );
 		$launched = current( array_filter( $checks, static fn( array $check ): bool => 'launched' === $check['id'] ) );
+		$is_live  = ! $launched || $launched['ok'];

 		return array(
 			'parent'      => array(
@@ -250,14 +251,14 @@ class AgenticCommerceSettingsPage extends \WC_Settings_Page {
 				'unsaved'     => __( 'Save your changes to see the updated status.', 'woocommerce' ),
 			),
 			// Agents can't shop a store that isn't live.
-			'coming_soon' => $launched && ! $launched['ok'] ? array(
+			'coming_soon' => ! $is_live ? array(
 				'text' => __( 'Your store is in coming soon mode, so AI assistants can’t find your products yet.', 'woocommerce' ),
 				'link' => array(
 					'href' => $launched['fix_url'],
 					'text' => __( 'Change site visibility', 'woocommerce' ),
 				),
 			) : null,
-			'visibility'  => self::visibility( $report ),
+			'visibility'  => self::visibility( $report, $is_live ),
 			'checklist'   => self::checklist( $checks ),
 			'policies'    => array(
 				'title'       => __( 'Store policies', 'woocommerce' ),
@@ -359,12 +360,13 @@ class AgenticCommerceSettingsPage extends \WC_Settings_Page {

 	/**
 	 * Product visibility: the catalog counts as they stand now, each with a link to those products, or a
-	 * line saying they show after the first check.
+	 * line saying they show after the first check. In coming soon mode, Visible keeps its count and says when it applies.
 	 *
-	 * @param array<string, mixed>|null $report Stored report, or null before the first scan.
-	 * @return array{title:string,description:string,empty:string|null,counts:array<int, array{id:string,label:string,count:string,tip:string,tip_label:string,link:array{href:string,text:string}}>}
+	 * @param array<string, mixed>|null $report  Stored report, or null before the first scan.
+	 * @param bool                      $is_live Whether the store is out of coming soon mode.
+	 * @return array{title:string,description:string,empty:string|null,counts:array<int, array{id:string,label:string,count:string,note:string,tip:string,tip_label:string,link:array{href:string,text:string}}>}
 	 */
-	private static function visibility( ?array $report ): array {
+	private static function visibility( ?array $report, bool $is_live ): array {
 		$counts = array();
 		if ( null !== $report ) {
 			// Counted now: products added, hidden or removed since the last check count, as in the lists the cards link to.
@@ -380,6 +382,7 @@ class AgenticCommerceSettingsPage extends \WC_Settings_Page {
 					'id'        => $card[0],
 					'label'     => $card[1],
 					'count'     => number_format_i18n( $card[2] ),
+					'note'      => ProductScan::COUNT_AVAILABLE === $card[0] && ! $is_live ? __( 'Visible once your store is live', 'woocommerce' ) : '',
 					'tip'       => $card[3],
 					'tip_label' => $card[4],
 					'link'      => array(
diff --git a/plugins/woocommerce/tests/php/src/Internal/AgentReadiness/AgenticCommerceSettingsTest.php b/plugins/woocommerce/tests/php/src/Internal/AgentReadiness/AgenticCommerceSettingsTest.php
index a7861bc3791..1ab928a77ce 100644
--- a/plugins/woocommerce/tests/php/src/Internal/AgentReadiness/AgenticCommerceSettingsTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/AgentReadiness/AgenticCommerceSettingsTest.php
@@ -346,6 +346,12 @@ class AgenticCommerceSettingsTest extends WC_Unit_Test_Case {
 		$counts   = array_column( $shopping['visibility']['counts'], null, 'id' );

 		$this->assertSame( '1', $counts[ ProductScan::COUNT_AVAILABLE ]['count'] );
+		$this->assertSame( 'Visible once your store is live', $counts[ ProductScan::COUNT_AVAILABLE ]['note'], 'Coming soon mode: the count stays, with when it applies' );
+		$this->assertSame( '', $counts[ ProductScan::COUNT_HIDDEN ]['note'] );
+		update_option( 'woocommerce_coming_soon', 'no' );
+		$live = array_column( $this->shopping()['visibility']['counts'], 'note', 'id' );
+		$this->assertSame( '', $live[ ProductScan::COUNT_AVAILABLE ], 'A live store needs no note' );
+		update_option( 'woocommerce_coming_soon', 'yes' );
 		$stored              = get_option( AgentReadiness::REPORT_OPTION );
 		$stored['products']  = ProductScan::PRODUCT_LIMIT;
 		$stored['available'] = 8400;