Skip to content
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

Live Preview with Bundle Themes #86274

Open
1 task
okmttdhr opened this issue Jan 11, 2024 · 3 comments
Open
1 task

Live Preview with Bundle Themes #86274

okmttdhr opened this issue Jan 11, 2024 · 3 comments

Comments

@okmttdhr
Copy link
Member

okmttdhr commented Jan 11, 2024

Description

Lego shipped Live Preview in Premium and WooCommerce themes, as detailed in #79223. However, it is currently limited to Premium and Woo themes, while it should be expanded to all Bundle themes that are coming (See #85182 (comment), p6rkRX-75y-p2).

Several changes are required at this moment to facilitate this transition to Bundle themes-applicable. Here are some key areas to consider:

Aligning with the Theme Tiers project paYJgx-4mO-p2 might be necessary, as I saw some code comments. However, I haven't fully explored this aspect yet. Relevant code segments include:

Acceptance Criteria

  • Users are able to live-preview all Bundle themes not limited to Woo themes.

Dev Tasks

TBD

Testing

TBD

Related

  • PT: Live Preview in Premium and WooCommerce themes pbxlJb-4QS-p2

CC: @Automattic/lego @renatho @Automattic/t-rex

@okmttdhr okmttdhr changed the title Task: Live Preview with Bundle themes Jan 11, 2024
@okmttdhr okmttdhr changed the title Live Preview with Bundle themes Live Preview with Bundle Themes Jan 11, 2024
@dsas
Copy link
Contributor

dsas commented Jan 12, 2024

wrt to bundled themes:

For the canUseWooCommerceTheme logic, then no it's not always the same. Only Woo requires the FEATURE_WOOP feature. WOOP is perhaps badly named, I think it means Woo-on-Plans.

For the checkout link - yes, they all need the business plan or higher - "bundled" means "installing this theme will also install some plugins", and plugins are all on the business plan

@dsas
Copy link
Contributor

dsas commented Jan 12, 2024

For theme tiers, then use of theme tiers will simplify/genericise some of this logic, we can just check "the lowest plan necessary to use a theme of this tier", for example.

We're still some weeks away from releasing to customers though and as the live preview is part of the block-editor package it makes it hard to use feature flags inside of the live preview itself.

@rcrdortiz has been doing the work of updating the live preview to work with tiers.

@okmttdhr
Copy link
Member Author

Thank you for providing helpful info, @dsas!

@Automattic/lego
For more context on Bundle themes, please refer to p6rkRX-75y-p2 and #85182 (comment).
This issue is not something that is a top priority, but I believe it'd be beneficial to expand Live Preview with some tweaks.

We're still some weeks away from releasing to customers though and as the live preview is part of the block-editor package it makes it hard to use feature flags inside of the live preview itself.

In light of this, I have decided to move this issue to the Backlog for the time being.

Other resources;

  • p6rkRX-769-p2
  • p6rkRX-76z-p2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants