-
Notifications
You must be signed in to change notification settings - Fork 74
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
Extension version text on Extensions page #1122
Conversation
Current coverage is 37.93% (diff: 100%)@@ master #1122 diff @@
==========================================
Files 31 31
Lines 2151 2151
Methods 256 256
Messages 0 0
Branches 0 0
==========================================
Hits 816 816
Misses 1335 1335
Partials 0 0
|
Thanks @dashaluna, big improvement. Could you drop a screenshot of what it looks like, want to check the new wording feels right in-situ. |
@willmot styling question: Is there default WP admin styling class that can be adjusted so that we have more space for plugin version area. So that they are on 2 lines instead of 3? Current styling seems to come from |
The original design intention of this page was to mimic the design of the add plugins screen in wp-admin (seen here: It looks like they no longer even show the version so we could actually just drop that completely from plugins which aren't installed or which don't have an update available. For extensions which are installed and which need updating, let's replace the installed button with an update button. Something like: We should also change the titles to |
It would obviously be much nicer if we could have much shorter descriptions as well as the cards are all too long and look messy. |
…on statuses to mimic WP plugin card functionality: Update now, Active, Activate, Buy Now
@willmot I've tried to mimic the WP plugin card functionality button as much as possible. So now we have buttons:
Couple of questions:
|
@willmot I can see that rule in the WP native CSS. The icons don't look stretched for me. Are you viewing on big screen? Not sure how to correctly remove this. |
Awesome!
I'm not actually sure how the extension page functions when BackUpWordPress is Network Activated, something we should test. In Multisite setups the main backup wp-admin page moves to Network Settings so the Extensions page should too and Extensions should then also be Network Activated, let's leave that for a separate ticket though.
Good catch, we should do the same 👍 |
Could you also start a ticket for simplifying the descriptions. I think we could probably get them all down to a single paragraph or so. Update |
@willmot is it a good idea to display sale stats per extension similar to WP ratings? Don't know if it's something we can pull out. |
…date now, Active, Activate, etc)
@willmot I'm a little bit stuck with |
Yeah good call, we could just add the disabled attribute to the button when the license is invalid. |
@willmot I can't figure out how can I check a license status per extension in the main BWP plugin code. Could you give me a hand with that please? |
I don't think we want to start checking licenses in the main BackUpWordPress plugin |
@pdewouters then there is no way to disable the "Update Now" button if we don't know the license status. And we don't disable it for expired / invalid license when you click the button it says the plugin is up to date, but the button is still displayed. Also, in the case of expired/invalid license we can notify a user and give a choice to purchase it. |
@willmot re I will fix the Azure logo and we should push this to review & merge for the next release. Also, apologies for a mammoth PR, I know it's over the original description, but seemed to make sense to bundle up related functionality. I tried to make every commit as atomic as possible, so you could review each commit for related functionality. Apologies about that! |
Awesome Dasha!
Agreed 👍
Great, I think we should do a release next week, we've a few things done now.
No problem, great to see so much stuff improved! |
re Azure image - fixed. I made sure to increase the canvas size to 512x512 as per other logos. Updated on the main site and old log is deleted |
namespace HM\BackUpWordPress; | ||
|
||
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you're including this because we need access to one of the functions it contains? If so, I think it's best practise to include it just before you use the function and add a docblock comment explaining what it's being included for.
That way future developers will know why it's here and whether it's safe to remove or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
@willmot ready for review & merge |
@dashaluna I'm out today but let's try to release tomorrow. |
Fixes #1098
TODO
Update Now
button on Extensions page when no/expired licence. Add note that update needs a valid licence. (NB it might be good to add a note to Plugins WP admin page - to notify user and provide a choice to get a licence). NB: Added separate issue for this: Extensions page: add note for Update Now functionality when license is expired #1130