wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

"Preview & Customize" button does not show up for Twenty Twenty-Four

Open okmttdhr opened this issue 7 months ago • 0 comments

Quick summary

Under specific conditions, the "Preview & Customize" button does not appear for the "Twenty Twenty-Four" theme.

This issue seems to be related to the client side (e.g., redux store) rather than the backend because of the following;

  • Reloading the page fixes the problem
  • The API response appears to be correct: https://public-api.wordpress.com/rest/v1.2/themes/twentytwentyfour?http_envelope=1&locale=en-gb
  • This bug only occurs when clicking the theme card from the search view, not when scrolling directly to the "Twenty Twenty-Four" theme on the /themes page.

Previous Conversations: p1700742791214349-slack-C029FM1EH p1700710027291949-slack-CRWCHQGUB

Steps to reproduce

  • Go to /themes.
  • Search for "Twenty Twenty Four".
  • Click the "Twenty Twenty Four" theme card.
  • Observe the "Demo site" button.
  • Reload the page.
  • Observe the "Preview & Customize" button now appears. Screenshot 2024-06-28 at 14 59 23

What you expected to happen

The "Preview & Customize" button should consistently appear without needing to reload the page.

What actually happened

The "Preview & Customize" button initially does not appear and only shows up after reloading the page.

Impact

Most (> 50%)

Available workarounds?

Yes

Platform (Simple and/or Atomic)

Both

Logs or notes

No response

okmttdhr avatar Jun 28 '24 05:06 okmttdhr