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

fix: license text modified overlaps license name #2603

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

mstykow
Copy link
Member

@mstykow mstykow commented Mar 13, 2024

Summary of changes

  • always show license text input
  • display default license text as placeholder when a default license name is selected

image

Context and reason for change

closes #2529

How can the changes be tested

Check out the license text field when

  • creating a new attribution
  • modifying an attribution with/without license text
  • looking at a signal with/without license

@mstykow mstykow requested a review from alexzurbonsen March 14, 2024 08:17
@alexzurbonsen
Copy link
Contributor

I like the approach.

I am just wondering if it might be more convenient to who an option to expand the license text instead of showing it whenever it is present? I have the feeling that the small text field might be too small for longer texts.

@mstykow
Copy link
Member Author

mstykow commented Mar 14, 2024

I like the approach.

I am just wondering if it might be more convenient to who an option to expand the license text instead of showing it whenever it is present? I have the feeling that the small text field might be too small for longer texts.

I guess the same argument could be made for copyright and comment?

@mstykow mstykow force-pushed the fix-license-text-overlap branch from a85861c to 5d0fe83 Compare March 14, 2024 12:32
@mstykow
Copy link
Member Author

mstykow commented Mar 14, 2024

I like the approach.

I am just wondering if it might be more convenient to who an option to expand the license text instead of showing it whenever it is present? I have the feeling that the small text field might be too small for longer texts.

I've changed the maxRows for license to 10 again.

@mstykow mstykow force-pushed the fix-license-text-overlap branch 2 times, most recently from 133c4dc to a1fbb82 Compare March 20, 2024 07:52
licenseText: 'License Text',
useCustomLicenseText: 'Use custom license text',
useCustomLicenseTextHint:
'Specify a custom license text if your license does not match one of the common licenses from the list above.',
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure I entirely understand the tooltip. Is the license text input filled automatically if I select a common license? I thought not?

Copy link
Contributor

Choose a reason for hiding this comment

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

And I agree, as we discussed before, I might make sense to drop the expandable approach entirely and just always show the field.

Copy link
Member Author

Choose a reason for hiding this comment

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

tried an approach where we always show the license text input now.

@mstykow mstykow force-pushed the fix-license-text-overlap branch from 7e01cc2 to a1fbb82 Compare March 20, 2024 10:00
- always show license text input
- display default license text as placeholder when a default license name is selected

closes #2529

Signed-off-by: Maxim Stykow <maxim.stykow@tngtech.com>
@mstykow mstykow force-pushed the fix-license-text-overlap branch from a1fbb82 to 4609ba9 Compare March 21, 2024 14:12
@mstykow mstykow requested a review from alexzurbonsen March 21, 2024 14:12
Copy link
Contributor

@alexzurbonsen alexzurbonsen left a comment

Choose a reason for hiding this comment

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

I think that is a good solution. We might need to communicate that the palceholder is something that shows the real license text, that is associated with the attribution, instead of some "real" placeholder that won't affect the output file. But I think that is okay.

@mstykow mstykow merged commit f6cd498 into main Mar 23, 2024
5 checks passed
@mstykow mstykow deleted the fix-license-text-overlap branch March 23, 2024 15:19
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.

"License text modified" overlaps with license name on smaller screens
2 participants