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

Add classification column to "Signals per Sources" table in project statistics popup #2819

Open
wants to merge 1 commit into
base: feat/move-criticality-display
Choose a base branch
from

Conversation

PhilippMa
Copy link
Contributor

Summary of changes

Added a new column to the "Signals per Sources" table in the project statistics popup for displaying the classification of each license.

Context and reason for change

see #2804

How can the changes be tested

Check that classification information is shown correctly in the project statistics popup.

closes #2804

@PhilippMa PhilippMa linked an issue Feb 26, 2025 that may be closed by this pull request
@PhilippMa PhilippMa changed the base branch from main to feat/move-criticality-display February 26, 2025 16:49
@abraemer abraemer self-assigned this Feb 27, 2025
Copy link
Contributor

@abraemer abraemer left a comment

Choose a reason for hiding this comment

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

very nice and minimal changes

>
<span>
{licenseClassification
? (classifications[licenseClassification] ?? '-')
Copy link
Contributor

Choose a reason for hiding this comment

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

please use UNKNOWN_SOURCE_PLACEHOLDER for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand why you would want to use a text constant here, but since UNKNOWN_SOURCE_PLACEHOLDER has quite a specific name that doesn't really apply here, how about introducing a new text constant in text.ts and using it here instead?

Copy link
Contributor

@vasily-pozdnyakov vasily-pozdnyakov left a comment

Choose a reason for hiding this comment

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

I also think that the titles of the extra columns (criticality and classification) have very similar (the same) style as sources columns, which is a bit misleading. Can we think about a way how to better separate them, e.g. by vertical line between license info columns and sources? or having a merged header cell "License info" with sub-columns Name, Criticality, Classification.

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.

Add classification column to signals per sources table
3 participants