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

Improve the license UI and messaging. #2507

Merged
merged 8 commits into from
Nov 5, 2018

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Nov 2, 2018

Bug

Fixes: NuGet/Home#7462, part of NuGet/Home#7467
Regression: No
If Regression then when did it last work:
If Regression then how are we preventing it in future:

Fix

Details:
Some strings changes based on the feedback from Karan.

Earlier in 15.8 in the details pane for the license field we showed a clickable license url. Per Karan's feedback, changing that to View License, which is the equivalent of what we do for embedded files.
The benefit is that an ugly url is not shown there. The con is that you don't know the exact link.

From NuGet/Home#7467 the following are fixed.

The whitespace issues with license expressions are fixed.
The weight of the header is the same as the text on the left in the same row.
The license file window appears at the middle of the screen.
The hyperlinks display a tooltip.

viewlicense
fixedmargins
tooltip

//cc @karann-msft @rrelyea @anangaur

Testing/Validation

Tests Added: No
Reason for not adding tests: Strings changes.
Validation done:

@nkolev92 nkolev92 changed the title Improve the license warning/ Improve the license UI and messaging. Nov 2, 2018
@anangaur
Copy link
Member

anangaur commented Nov 2, 2018

Nit: “View License” and not “ViewLicense”

@nkolev92
Copy link
Member Author

nkolev92 commented Nov 2, 2018

@anangaur It is "View License" in the code, I just missed the space in the description :)
🤣

@@ -140,7 +141,7 @@
<comment>0 - the license expression, 1 further details</comment>
</data>
<data name="InvalidLicenseExpressionVersion" xml:space="preserve">
<value>The version string '{0}' for the License Expression is invalid.</value>
<value>The version string '{0}' PackageLicenseExpressionVersion is invalid.</value>
Copy link
Contributor

@jainaashish jainaashish Nov 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PackageLicenseExpressionVersion '{0}' version string is invalid.

@nkolev92 nkolev92 force-pushed the dev-nkolev92-licenseFeedback branch from e8603d0 to c7544f6 Compare November 2, 2018 19:27
@nkolev92 nkolev92 force-pushed the dev-nkolev92-licenseFeedback branch from c7544f6 to 626ccac Compare November 2, 2018 20:54
@nkolev92 nkolev92 changed the base branch from dev to release-4.9.0-rtm November 2, 2018 20:56
@@ -130,7 +130,8 @@
<comment>{0} is the file being packed.</comment>
</data>
<data name="InvalidLicenseCombination" xml:space="preserve">
<value>Invalid metadata. Cannot specify both a License Expression and a License File.</value>
<value>Invalid metadata. Cannot specify both a PackageLicenseExpression and a PackageLicenseFile.</value>
<comment>Please don't localize PackageLicenseUrl, PackageLicenseFile and PackageLicenseExpression.</comment>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: PackageLicenseUrl is not used in this string, remove it from the comment.

<data name="DefaultError_NoMatchInAllowList" xml:space="preserve">
<value>The package signature certificate fingerprint does not match any certificate fingerprint in the allow list.</value>
<data name="NuGetLicenseExpression_NonStandardIdentifier" xml:space="preserve">
<value>The license identifier(s) {0} is(are) not recognized by the current toolset.</value>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: '{0}'

@nkolev92 nkolev92 merged commit 8490630 into release-4.9.0-rtm Nov 5, 2018
@nkolev92 nkolev92 deleted the dev-nkolev92-licenseFeedback branch November 5, 2018 05:52
nkolev92 added a commit that referenced this pull request Nov 5, 2018
uGet.Core/NuGet.Build.Tasks.Pack/Strings.resx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants