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
InlineHelp: Add admin help sections data #43790
Conversation
icon: 'domains', | ||
}, | ||
{ | ||
title: translate( 'Change my site address' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 20 times:
translate( 'Change your site's address' )
ES Score: 7
See 1 additional suggestions in the PR translation status page
icon: 'cog', | ||
}, | ||
{ | ||
title: translate( "Change my site's theme" ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 20 times:
translate( 'Change your site's address' )
ES Score: 7
icon: 'plans', | ||
}, | ||
{ | ||
title: translate( 'Cancel my plan' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 29 times:
translate( 'Can I cancel my plan?' )
ES Score: 8
icon: 'plans', | ||
}, | ||
{ | ||
title: translate( 'Upgrade my plan' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 27 times:
translate( 'Can I upgrade my plan later?' )
ES Score: 7
icon: 'plans', | ||
}, | ||
{ | ||
title: translate( 'Renew my plan' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 24 times:
translate( 'Does my plan auto-renew?' )
ES Score: 7
icon: 'user', | ||
}, | ||
{ | ||
title: translate( "Change my site's timezone" ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 20 times:
translate( 'Change your site's address' )
ES Score: 6
icon: 'cog', | ||
}, | ||
{ | ||
title: translate( 'Update my profile' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 23 times:
translate( 'Update my profile picture' )
ES Score: 8
See 1 additional suggestions in the PR translation status page
{ | ||
title: translate( 'Switch the interface language' ), | ||
description: translate( | ||
'Update the language of the interface you see across WordPress.com as a whole.' |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 37 times:
translate( 'This is the language of the interface you see across WordPress.com as a whole.' )
ES Score: 7
icon: 'cog', | ||
}, | ||
{ | ||
title: translate( 'Close my account permanently' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 33 times:
translate( 'Close your account permanently' )
ES Score: 7
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
9694693
to
1735a16
Compare
Suggest the translation suggestions get fixed in another PR. |
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.
Thanks for getting this prepared and for the new tests. Really great to see! 👍
I've run the tests and they all pass. However, I feel they are providing us with a false confidence about the function of getAdminSectionsResults
because they rely on testing the implementation details rather than the public API of the function.
If we can rework the tests to
- focus on the
getAdminSectionsResults
method's public API. - move tests for
filterListBySearchTerm
into a separate test file to isolate them.
...then we'll have tests which provide more confidence in our software and are more resilient to change.
Thanks again for all your work on this.
Let me change the location of some files as well as change tests. Moving to in progress. |
c4151e7
to
bc268dd
Compare
Wondering why did you move it back to the review state. Not a biggie at all, just curious. |
715ac13
to
c04f3b4
Compare
@getdave I've updated the PR and it's ready for a new review round. |
Based on your comment earlier where you said
|
yes, well... I moved it back, did and pushed some changes to finally moved it forward again. Thanks for answering. 👍 |
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.
This PR is looking pretty straight forward.
I noticed an opportunity to send users to the applicable open sections in the Customizer and added those suggestions.
Co-authored-by: Konstantin Obenland <obenland@gmx.de>
Co-authored-by: Konstantin Obenland <obenland@gmx.de>
Co-authored-by: Konstantin Obenland <obenland@gmx.de>
Co-authored-by: Dave Smith <getdavemail@gmail.com>
Co-authored-by: Dave Smith <getdavemail@gmail.com>
ac818eb
to
b964f15
Compare
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/4022501 Hi @retrofox, could you please edit the description of this PR and add a screenshot for our translators? Ideally it'd include all of the following strings:
Thank you in advance! |
Nice work @retrofox! This is working as expected. For the design, can we please just remove the chevron like the mockup here. I don't think they add any value and can be confusing in pages that display a "Back" button. Can we also make the icon color different from the link color: Normal:
|
Additional feedback:
Thanks @retrofox! This is looking really good. |
thanks @jancavan for your review. Almost all issues have been addressed, less
Agree. I've done a few a little research a few days ago and I'm afraid it deserves a dedicated PR. Guessing it isn't a big deal but it's kind of out of the scope of this PR.
I couldn't reproduce this visual issue. 🤷 |
Thanks, @jancavan. Going to create a PR for this. |
@retrofox No need to create one :) Already about to push out a PR. |
@retrofox Not sure how much would this would entail, but do you know if this is out of scope just for this PR, or out of scope for the project itself? |
My first assumption is for this PR. :-) |
Also noting that we need to update the e2e tests to cover the new admin results. |
I've created an issue for this. #44025 |
Translation for this Pull Request has now been finished. |
}, | ||
{ | ||
title: translate( 'Manage my blog posts' ), | ||
link: '/posts/${ siteSlug }', |
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.
Seems like this should have been a string literal. Fix is in #45539.
Changes proposed in this Pull Request
This PR adds the help admin sections data to the inline help component. It's part of the process to restore the help admin section for the InlineHelp and HelpSearch cards.
The way to access the data is through of a state selector, named
getAdminHelpResults()
.Testing instructions
admin-sections.js
file. Check typos, descriptions, synonyms, etc.All tests should pass.
Fixes #43464