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

AI Tiered Plans: Update upgrade button from Usage Panel to support tiered plans #34219

Closed
lhkowalski opened this issue Nov 20, 2023 · 3 comments · Fixed by #34273
Closed

AI Tiered Plans: Update upgrade button from Usage Panel to support tiered plans #34219

lhkowalski opened this issue Nov 20, 2023 · 3 comments · Fixed by #34273
Assignees
Labels
[Extension] AI Assistant Plugin [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/

Comments

@lhkowalski
Copy link
Contributor

lhkowalski commented Nov 20, 2023

Similiar to #33361, but for the upgrade button present on the Usage Panel.

The current state of the button is:

Screenshot 2023-11-20 at 17 48 20

But it needs to mention the next tier available for the site, based on the current one.

Screenshot 2023-11-20 at 18 36 07

It also needs to handle properly the checkout URL for Simple sites.

@lhkowalski lhkowalski added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Extension] AI Assistant Plugin labels Nov 20, 2023
@lhkowalski lhkowalski self-assigned this Nov 22, 2023
@lhkowalski
Copy link
Contributor Author

I checked the Figma files, and the expected labels are:

  • when the current tier is free, "Upgrade"
  • when the current tier is 100, "Get 200 requests"
  • when the current tier is 200, "Get 500 requests"
  • when the current tier is 500, "Get 750 requests" (this is not on the designs, but since we added a few new plans, for inference this is the expected label)
  • when the current tier is 750, "Get 1000 requests" (same as above)
  • when the current tier is 1000 (the last tier), "Get more requests" (1000 is now the last tier instead of 500, so the original expectation for the 500 plan is applied here)

@lhkowalski
Copy link
Contributor Author

The upgrade button text is updated, and now we need to make it point to the right place when running on Simple sites. I am waiting on the approach from #33361 so we can use the same code.

@lhkowalski
Copy link
Contributor Author

#34254 solved the checkout URL issue for Simple sites on the Usage Panel as well.

The last missing part is handling the "Contact Us" call-to-action when the user is on the last tier. This is being handled correctly on Jetpack sites, so we just need to add an extra exception to show the correct call to action on Simple sites as well.

I am working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Extension] AI Assistant Plugin [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant