wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Update the account status notification in the toolbar menu #727

Closed marija-nikolic closed 7 months ago

marija-nikolic commented 1 year ago

We would like to update copy and color for the part of the account status notification in the toolbar menu (red box), for the users who are <= 20% of the unconsumed quota.

Details are provided here.

piotrbak commented 8 months ago

Acceptance Criteria:

marija-nikolic commented 8 months ago

Acceptance Criteria:

  • Promo section is not a part of this PR
  • When the user is less or equal to 20% of his quota, we'll update the banners.
  • It's related to Free and Growth users only
  • The View my subscription button will be removed when displaying this banner
  • Copyright for Free and Growth users will be different and it's present in the document.
  • The design and colors are available in the document
  • Links for Free, Growth monthly and Growth Yearly will be different and they're present in the document
  • The banner will be dismissible
  • Once dismissed, the banner won't be displayed until the quota is restarted and going to 20% again (@marija-nikolic or should it be dismissed forever?)

Not forever. As you said until the quota is restarted and going to 20% again.

Tabrisrp commented 8 months ago

Scope a solution ✅

The method managing the display of this section is currently in Imagify_Admin_Ajax_Post:imagify_get_admin_bar_profile_callback().

Looking at what is needed to happen, I think the better approach will be to extract that method to its own class, and create views for it too (right now the HTML is directly in the method).

In addition, we will need to:

Estimate the effort ✅

effort [M]

Miraeld commented 8 months ago

Looks fine to me